The problem is that the JVM is crashing. The JVM crash log typically has a name like hs_err_pid*.log and is created in the JVM's working directory.
In case of OpenJDK the crash logs could look like
/tmp/jvm-*/hs_error.log
## There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 134217728 bytes for AllocateHeap
# Possible reasons:
# The system is out of physical RAM or swap space
# In 32 bit mode, the process size limit was hit
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
# Use 64 bit Java on a 64 bit OS
# Decrease Java heap size (-Xmx/-Xms)
# Decrease number of Java threads
# Decrease Java thread stack sizes (-Xss)
# Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
# Out of Memory Error (allocation.inline.hpp:64), pid=20123, tid=139649106921216
#
# JRE version: (7.0_111-b01) (build )
# Java VM: OpenJDK 64-Bit Server VM (24.111-b01 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 2.6.7
# Distribution: CentOS Linux release 7.2.1511 (Core) , package rhel-2.6.7.2.el7_2-x86_64 u111-b01
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
........................
--------------- S Y S T E M ---------------
OS:CentOS Linux release 7.2.1511 (Core)
uname:Linux 4.5.5-x86_64 #3 SMP Fri May 20 15:25:13 EDT 2016 x86_64
libc:glibc 2.17 NPTL 2.17
rlimit: STACK 8192k, CORE 0k, NPROC 7982, NOFILE 4096, AS infinity
load average:0.01 0.07 0.08
/proc/meminfo:
MemTotal: 2047352 kB
MemFree: 25084 kB
MemAvailable: 100388 kB
[root@myvps /]# free -m
total used free shared buff/cache available
Mem: 1999 1888 20 2 90 44
Swap: 255 255 0
The problem is that there is not enough ram memory. The only solution is to add more RAM for a total of 4GB. My VPS needed an update!
0 comments:
Post a Comment