Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/341.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
未知进程Openfire Java运行时错误-可能内存泄漏?_Java_Jvm_Openfire - Fatal编程技术网

未知进程Openfire Java运行时错误-可能内存泄漏?

未知进程Openfire Java运行时错误-可能内存泄漏?,java,jvm,openfire,Java,Jvm,Openfire,我的根文件夹中有未知错误日志,即 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 byt

我的根文件夹中有未知错误日志,即

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.8GB的内存


OPENFIRE_OPTS=“-Xms2048m-Xmx2650m”

您可以发布JVM参数以获取更多信息OPENFIRE_OPTS=“-Xms2048m-Xmx2650m”您是否尝试过日志文件中出现的可行解决方案?就个人而言,在某些情况下,我不得不使用“减少Java线程堆栈大小(-Xss)”参数。如果您的应用程序管理了大量线程,那么它可能会对您有所帮助,但真正的问题似乎是它不断地重新启动,并出现错误“捕获异常:字符串无法解析为XML”