TestMemoryPressureReactionDecommit.java fails with Out Of Memory

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P1
    • 9
    • Affects Version/s: 9
    • Component/s: hotspot
    • gc

      TestMemoryPressureReactionDecommit is supposed to test that the heap is decommitted when heap memory is released. In this case it fails with an OOME while allocating the data it is later supposed to release. There is plenty of free RAM on the machines and the test doesn't really require a huge heap.

      Max memory for test: 128.0 MiB
      Will allocate 8738 small objects of size = 10.0 kB and 10 humongous objects of size = 2.0 MB
      initial values: MinHeapFreeRatio = 40 MaxHeapFreeRatio = 70
      [Before setting 0 pressure] init: 16.0 MiB, used: 1.0 MiB, comm: 16.0 MiB, freeRatio ~= 93.8%
      [After setting 0 pressure] init: 16.0 MiB, used: 2.0 MiB, comm: 16.0 MiB, freeRatio ~= 87.5%
      ----------System.err:(17/1100)----------
      java.lang.OutOfMemoryError: Java heap space
      at TestMemoryPressureReactionDecommit.allocateList(TestMemoryPressureReactionDecommit.java:86)
      at TestMemoryPressureReactionDecommit.allocate(TestMemoryPressureReactionDecommit.java:67)
      at TestMemoryPressureReactionDecommit.test(TestMemoryPressureReactionDecommit.java:47)
      at TestMemoryPressureReactionBase.run(TestMemoryPressureReactionBase.java:82)
      at TestMemoryPressureReactionDecommit.main(TestMemoryPressureReactionDecommit.java:39)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:745)

            Assignee:
            Dmitry Fazunenko (Inactive)
            Reporter:
            Jesper Wilhelmsson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: