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

Attribute max-heap-size is not used as expected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 7-pool
    • 6u14
    • deploy
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.6.0_14"
      Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
      Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      I defined in my JNLP file, initial value for heap size and maximum value of heap size. This is my syntax:
      <j2se initial-heap-size="512m" max-heap-size="512m" version="1.6+"/>
      When I open my GUI, I checked the runtime heap size in the java web start console (press m), and I see that the maximum heap size exceeds 512 up to 1024.




      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Define <j2se initial-heap-size="512m" max-heap-size="512m" version="1.6+"/>
      - Open GUI and see that it exceeds 512

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      GUI maximum heap should be 512m
      ACTUAL -
      GUI reaches giga

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      <j2se initial-heap-size="512m" max-heap-size="512m" version="1.6+"/>

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      I used '-Xms' and '-Xmx' instead:
      <j2se java-vm-args="Xms512m -Xmx1024m" version="1.6+"/>

            herrick Andy Herrick (Inactive)
            igor Igor Nekrestyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: