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

[NEWTEST] Test that VM doesn't start if -Xmx (MaxHeapSize) is less than 2m

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • 9, 11
    • hotspot
    • gc

      Required a new regression test for minimal Xmx.

      Quoting: https://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html

      -Xmxsize

          Specifies the maximum size (in bytes) of the memory allocation pool in bytes. This value must be a multiple of 1024 and greater than 2 MB.

      The test should check:
      - VM doesn't start if Max Heap Size < 2m
      - VM starts if Max Heap Size == 2m (the value of maxHeapSize must be >= 2m)

            Unassigned Unassigned
            dfazunen Dmitry Fazunenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: