Java crash on Sun JDK with both survivor spaces occupied or empty

Solution Verified - Updated -

Issue

  • JVM crash
  • Fatal error log shows SIGSEGV in libjvm.so with current thread GCTaskThread:
    #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    #  SIGSEGV (0xb) at pc=0xffffffff7e33ffe4, pid=23748, tid=4
    #
    # JRE version: 6.0_20-b02
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (16.3-b01 mixed mode solaris-sparc compressed oops)
    # Problematic frame:
    # V  [libjvm.so+0x73ffe4]
    #
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    #
    
    ---------------  T H R E A D  ---------------
    
    Current thread (0x0000000100171000):  GCTaskThread [stack: 0x0000000000000000,0x0000000000000000] [id=4]
    
  • Fatal error log shows both survivor spaces occupied (low pause collector):
    Heap
     par new generation   total 1348224K, used 1348224K [0xfffffffdc5010000, 0xfffffffe25010000, 0xfffffffe25010000)
      eden space 1123584K, 100% used [0xfffffffdc5010000, 0xfffffffe09950000, 0xfffffffe09950000)
      from space 224640K, 100% used [0xfffffffe174b0000, 0xfffffffe25010000, 0xfffffffe25010000)
      to   space 224640K,  85% used [0xfffffffe09950000, 0xfffffffe15430540, 0xfffffffe174b0000)
     concurrent mark-sweep generation total 4718592K, used 1141609K [0xfffffffe25010000, 0xffffffff45010000, 0xffffffff45010000)
     concurrent-mark-sweep perm gen total 786432K, used 373562K [0xffffffff45010000, 0xffffffff75010000, 0xffffffff75010000)
    
  • Fatal error log shows both survivor spaces occupied (throughput collector):
    Heap
     PSYoungGen      total 304576K, used 275225K [0x0000002ad7190000, 0x0000002aec6e0000, 0x0000002aec6e0000)
      eden space 264320K, 100% used [0x0000002ad7190000,0x0000002ae73b0000,0x0000002ae73b0000)
      from space 40256K, 27% used [0x0000002ae73b0000,0x0000002ae7e564a8,0x0000002ae9b00000)
      to   space 38848K, 31% used [0x0000002aea0f0000,0x0000002aead0dc10,0x0000002aec6e0000)
     PSOldGen        total 699072K, used 283405K [0x0000002aac6e0000, 0x0000002ad7190000, 0x0000002ad7190000)
      object space 699072K, 40% used [0x0000002aac6e0000,0x0000002abdba3580,0x0000002ad7190000)
     PSPermGen       total 147968K, used 147799K [0x0000002a9c6e0000, 0x0000002aa5760000, 0x0000002aac6e0000)
      object space 147968K, 99% used [0x0000002a9c6e0000,0x0000002aa5735d20,0x0000002aa5760000)
    
  • Fatal error log shows both survivor spaces empty:
    Heap
     par new generation   total 42496K, used 42432K [0x0000002a9c6e0000, 0x0000002a9f070000, 0x0000002a9f070000)
      eden space 42432K, 100% used [0x0000002a9c6e0000, 0x0000002a9f050000, 0x0000002a9f050000)
      from space 64K,   0% used [0x0000002a9f060000, 0x0000002a9f060000, 0x0000002a9f070000)
      to   space 64K,   0% used [0x0000002a9f050000, 0x0000002a9f050000, 0x0000002a9f060000)
     concurrent mark-sweep generation total 4151744K, used 413994K [0x0000002a9f070000, 0x0000002b9c6e0000, 0x0000002b9c6e0000)
     concurrent-mark-sweep perm gen total 262144K, used 155105K [0x0000002b9c6e0000, 0x0000002bac6e0000, 0x0000002bac6e0000)
    

Environment

  • Sun JDK 1.6 update 20 on Solaris 10 3/05 s10_74L2a SPARC:
    1. uname: SunOS 5.10 Generic_138888-08 sun4u  (T2 libthread)
    2. vm_info: Java HotSpot(TM) 64-Bit Server VM (16.3-b01) for solaris-sparc JRE (1.6.0_20-b02), built on Apr 12 2010 14:18:12 by "" with Workshop 5.8
  • Sun JDK 1.6 update 20 on SuSE Linux
    1. uname:Linux 2.6.18-164.6.1.el5 #1 SMP Tue Oct 27 11:28:30 EDT 2009 x86_64
    2. vm_info:  Java HotSpot(TM) 64-Bit Server VM (16.3-b01) for linux-amd64 JRE  (1.6.0_20-b02), built on Apr 12 2010 13:57:11 by "java_re" with gcc  3.2.2 (SuSE Linux)
  • Sun JDK 1.6 update 18 on OpenSUSE 11:
    1. uname:Linux 2.6.32.3-grsec #3 SMP Sun Jan 24 15:33:58 CET 2010 x86_64
    2. vm_info: Java HotSpot(TM) 64-Bit Server VM (16.0-b13) for linux-amd64 JRE (1.6.0_18-b07), built on Dec 17 2009 13:42:22 by "java_re" with gcc 3.2.2 (SuSE Linux)
  • Sun JDK 1.5 update 17 on Red Hat Enterprise Linux (RHEL) AS release 4 (Nahant Update 6):
  1. uname:Linux 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:56:44 EST 2007 x86_64
  2. vm_info: Java HotSpot(TM) 64-Bit Server VM (1.5.0_17-b04) for linux-amd64, built on Nov 10 2008 01:04:27 by java_re with gcc 3.2.2 (SuSE Linux)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In