JVM crashes from OOME with many semaphores

Solution In Progress - Updated -

Issue

  • # There is insufficient memory for the Java Runtime Environment to continue.
    # Native memory allocation (malloc) failed to allocate 24 bytes for CHeapObj-new
    # Possible reasons:
    #   The system is out of physical RAM or swap space
    #   In 32 bit mode, the process size limit was hit
    # Possible solutions:
    #   Reduce memory load on the system
    #   Increase physical memory or swap space
    #   Check if swap backing store is full
    #   Use 64 bit Java on a 64 bit OS
    #   Decrease Java heap size (-Xmx/-Xms)
    #   Decrease number of Java threads
    #   Decrease Java thread stack sizes (-Xss)
    #   Set larger code cache with -XX:ReservedCodeCacheSize=
    # This output file may be truncated or incomplete.
    #
    #  Out of Memory Error (allocation.inline.hpp:58), pid=8553, tid=140503415797504
    #
    # JRE version: 7.0_04-b20
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.0-b21 mixed mode linux-amd64 compressed oops)
    # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
    #
    
    ---------------  T H R E A D  ---------------
    
    Current thread (0x00007fc9b023a800):  VMThread [stack: 0x00007fc980203000,0x00007fc980304000] [id=8566]
    
    Stack: [0x00007fc980203000,0x00007fc980304000],  sp=0x00007fc980302550,  free space=1021k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V  [libjvm.so+0x8a034a]
    V  [libjvm.so+0x408e9b]
    V  [libjvm.so+0x22a48b]
    V  [libjvm.so+0x633d1a]
    V  [libjvm.so+0x63ae4d]
    V  [libjvm.so+0x63d100]
    V  [libjvm.so+0x637bdd]
    V  [libjvm.so+0x8a929c]
    V  [libjvm.so+0x8a7cb0]
    V  [libjvm.so+0x8a8236]
    V  [libjvm.so+0x8a88d0]
    V  [libjvm.so+0x741ff0]
    
    VM_Operation (0x00007fc972573140): HeapWalkOperation, mode: safepoint, requested by thread 0x00007fc96c0eb800
    ...
    7fc8ed1af000-7fc8ed1b0000 rw-s 00000000 00:0f 181749069                  /dev/shm/sem.nNE3WE (deleted)
    7fc8ed1b0000-7fc8ed1b1000 rw-s 00000000 00:0f 181749068                  /dev/shm/sem.UkBbju (deleted)
    7fc8ed1b1000-7fc8ed1b2000 rw-s 00000000 00:0f 181749067                  /dev/shm/sem.SgilFj (deleted)
    7fc8ed1b2000-7fc8ed1b3000 rw-s 00000000 00:0f 181749066                  /dev/shm/sem.Cnaw18 (deleted)
    7fc8ed1b3000-7fc8ed1b4000 rw-s 00000000 00:0f 181749065                  /dev/shm/sem.ZibInY (deleted)
    

Environment

  • Java

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.