我的根文件夹中有一个未知的错误日志,即
hs_err_pidxxx.log
在里面我有以下我不知道如何解决这个问题或哪个服务实际上正在做日志。我认为它的 java VM 错误,我将 openfire 作为服务运行,这可能是原因,
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 32756 bytes for ChunkPool::allocate
# 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.cpp:211), pid=15471, tid=2920495984
#
# JRE version: 6.0_41-b02
# Java VM: Java HotSpot(TM) Server VM (20.14-b01 mixed mode linux-x86 )
--------------- T H R E A D ---------------
Current thread (0xf67e8c00): VMThread [stack: 0xae0b3000,0xae134000] [id=15487]
Stack: [0xae0b3000,0xae134000], sp=0xae1328a0, free space=510k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x727990]
有谁知道如何解决这个问题?我已经为 JVM heapsize 分配了大约 2GB 内存,为 java 线程大小分配了 2.8 GB ..
OPENFIRE_OPTS="-Xms2048m -Xmx2650m"