Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6911273

[TESTBUG] G1: java.lang.OutOfMemoryError when heap appears nearly empty

XMLWordPrintable

    • generic
    • generic

      Running jni008 from the nightly runs (with PrintGCDetails turned on) I
      see (snippet at end) the last GC (a System.GC) shows a nearly
      empty heap 130K->110K(128M and is followed by the OOM.

      [Full GC 122M->122M(128M), 0.0850348 secs]
       [Times: user=0.08 sys=0.00, real=0.09 secs]
      [Full GC 122M->122M(128M), 0.0757598 secs]
       [Times: user=0.07 sys=0.00, real=0.08 secs]
      [Full GC 122M->110K(128M), 0.0685899 secs]
       [Times: user=0.07 sys=0.00, real=0.07 secs]
      [Full GC (System.gc()) 130K->110K(128M), 0.0728189 secs]
       [Times: user=0.07 sys=0.00, real=0.07 secs]
      Exception in thread "Thread-1" java.lang.OutOfMemoryError: Java heap space
      FATAL ERROR in native method: heapFull(): cannot get field ID
      TEST FAILURE: exception occured in java code:
      TEST FAILED: attachingThread: heap is not exhausted after 120 attempts
      TEST FAILED: waitForFullHeap: heap is still not full after 120 attempts
      Current thread is 1
      Dumping core ...
      Abort - core dumped

            dsimms David Simms
            jmasa Jon Masamitsu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: