JVM crash in libc.so with large heap size > 128 G when using the CMS collector
Issue
- Using OpenJDK1.6 with concurrent GC, heap size specified works with 128GB, but would abort if you specify a 300GB heap size. JVM crashes at memset+0x40 with the following exception
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000003fcc67ae40, pid=8452, tid=1080600896
#
# JRE version: 6.0_17-b17
# Java VM: OpenJDK 64-Bit Server VM (14.0-b16 mixed mode linux-amd64 )
# Derivative: IcedTea6 1.7.5
# Distribution: Custom build (Tue Oct 12 00:18:31 EDT 2010)
# Problematic frame:
# C [libc.so.6+0x7ae40] memset+0x40
.. ..
VM Arguments: jvm_args: -Xms307200m -Xmx307200m -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31
- We are getting a segmentation violation when we try to run a java process with a heap size of more than 128 GB on RHEL 5.9. Works with 128 heap size GB but fails with below error with 129 GB heap or larger. System has 256 GB of physical RAM.
# JRE version: 6.0_45-b06
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.45-b01 mixed mode linux-amd64 )
# Problematic frame:
# C [libc.so.6+0x7a050] unsigned long+0x40
#
# An error report file with more information is saved as:
# /app/log/error/hs_err_pid9240.log
.. .. ..
Java Options:
JavaOpts=" d64 -Xms130g -Xmx130g
-XX:CompileThreshold=8000 -XX:NewSize=384m -XX:MaxNewSize=384m -XX:PermSize=256m -XX:MaxPermSize=256m
-XX:SurvivorRatio=128 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:MaxTenuringThreshold=0 -XX:CMSInitiatingOccupancyFraction=94
-verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Xloggc:$ApplHome/logs/crt-gc-`date '+%Y%m%d%H%M%S'`.log -XX:-TraceClassUnloading
- JVM crashes with for large heap size when using the Concurrent Mark Sweep (CMS) collector
Environment
- Red Hat Enterprise Linux (RHEL) 5, 5.6, 5.9
- Java
- Oracle JDK 1.6.0 update 45
- OpenJDK JRE version: 6.0_17-b17 (IcedTea6 1.7.5)
- Concurrent Mark Sweep (CMS) Collector
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
