Friday, April 6, 2012

Java Crash Report for JDK 1.6.0_13

Encountered the following error when using JVM Option

bbconfig.jvm.heaps.extra.tomcat=-XX:StackShadowPages=20 -XX:NewSize=300m -XX:MaxNewSize=300m -XX:SurvivorRatio=4 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+UseTLAB -XX:ParallelCMSThreads=2 -XX:ParallelGCThreads=2 -XX:+UseCompressedOops -XX:+PrintVMOptions -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCTaskTimeStamps -XX:+PrintCommandLineFlags -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime -XX:+DisableExplicitGC


running JDK 1.6.0_13

INFO   | jvm 5    | 2012/04/03 17:33:26 | -XX:+DisableExplicitGC -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/usr/local/blackboard/logs/tomcat -XX:+ManagementServer -XX:MaxHeapSize=4041211904 -XX:MaxNewSize=314572800 -XX:MaxPermSize=268435456 -XX:NewSize=314572800 -XX:ParallelCMSThreads=2 -XX:ParallelGCThreads=2 -XX:+PrintCommandLineFlags -XX:+PrintGC -XX:+PrintGCApplicationConcurrentTime -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCTaskTimeStamps -XX:+PrintGCTimeStamps -XX:+PrintVMOptions -XX:StackShadowPages=5 -XX:SurvivorRatio=4 -XX:ThreadStackSize=512 -XX:+TraceClassUnloading -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+UseTLAB
INFO   | jvm 5    | 2012/04/03 17:33:26 | #
INFO   | jvm 5    | 2012/04/03 17:33:26 | # An unexpected error has been detected by Java Runtime Environment:
INFO   | jvm 5    | 2012/04/03 17:33:26 | #
INFO   | jvm 5    | 2012/04/03 17:33:26 | #  Internal Error (os_solaris.cpp:4677), pid=6869, tid=2
INFO   | jvm 5    | 2012/04/03 17:33:26 | #  Error: guarantee((Solaris::min_stack_allowed >= (StackYellowPages+StackRedPages+StackShadowPages+BytesPerWord +1) * page_size),"need to increase Solaris::min_stack_allowed on this platform")
INFO   | jvm 5    | 2012/04/03 17:33:26 | #
INFO   | jvm 5    | 2012/04/03 17:33:26 | # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode solaris-sparc)
INFO   | jvm 5    | 2012/04/03 17:33:26 | # An error report file with more information is saved as:
INFO   | jvm 5    | 2012/04/03 17:33:26 | # /usr/local/blackboard/apps/service-wrapper/bin/hs_err_pid6869.log
INFO   | jvm 5    | 2012/04/03 17:33:26 | #
INFO   | jvm 5    | 2012/04/03 17:33:26 | # If you would like to submit a bug report, please visit:
INFO   | jvm 5    | 2012/04/03 17:33:26 | #   http://java.sun.com/webapps/bugreport/crash.jsp


Solution

Upgrade to JDK 1.6.0_31
In addition, set the stacksize to 512k.
i.e. bbconfig.max.stacksize.tomcat=512k

+UseCompressedOops is supported from JDK 1.6.0_14 onwards.



No comments:

Post a Comment