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

TestShrinkDefragmentedHeap.java could use less memory

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 9
    • hotspot
    • None
    • gc

      When fixing JDK-8129590, -Xmx256m was added to avoid running out of memory. The reason for running out of memory was that the server only had 512mb ram and the max heap size was ergonomically set to the same as the initial heap size. The test need somewhat more memory than the initial heap size and therefor runs OOM.

      The test specifies an initial heap size and a new generation size already and seems to have good notion of how much memory is really used. To allow the test to run on smaller servers it would be nice if the test could use less memory but still test what it should.

            Unassigned Unassigned
            sjohanss Stefan Johansson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: