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