0
我们正面临以下异常。请不就是我们下面配置了JVM(32位)交换空间
-Xms1024m -Xmx3076m -Xmn1024m -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis -XX:MaxGCPauseMillis=400 -XX:GCPauseIntervalMillis=8000
-XX:PermSize=256m
-XX:MaxPermSize=512m
我们使用的是32位Solaris机器。
#
# A fatal error has been detected by the Java Runtime Environment:
#
# java.lang.OutOfMemoryError: requested 98304 bytes for char in /BUILD_AREA/jdk6_23/hotspot/src/share/vm/gc_implementation/g1/sparsePRT.cpp. Out of swap space?
#
# Internal Error (allocation.inline.hpp:39), pid=7285, tid=32
# Error: char in /BUILD_AREA/jdk6_23/hotspot/src/share/vm/gc_implementation/g1/sparsePRT.cpp
任何帮助是这方面将高度赞赏。
@downvoter你能请注明理由反对投票? – Jabir 2013-04-04 10:42:45
我从来没有遇到这样的问题,但是这可能帮助:http://javaeesupportpatterns.blogspot.ch/2012/03/outofmemoryerror-out-of-swap-space.html – 2013-04-04 10:49:01
减少你-Xmx 2.5或2G,因为如果你使用3G,你不会留下任何空间用于JVM本机内存使用,并且很有可能因为JVM本机内存耗尽而导致内存不足。 – 2013-05-08 16:45:17