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

heap tuning documentation typo; 1/3 and 2/3 reversed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 7, 7u25
    • docs
    • windows_8

      A DESCRIPTION OF THE PROBLEM :
      By default, the Application Server is invoked with the Java HotSpot Server JVM. The default NewRatio for the Server JVM is 2: the ***old*** generation occupies 2/3 of the heap while the ***new*** generation occupies 1/3.

      This line is wrong I think. old and new have been flipped.
      As you can see from the previous line in the documentation, there is a contradiction between the two lines.

      For example, setting -XX:NewRatio=3 means that the ratio between the old and young generation is 1:3, the combined size of eden and the survivor spaces will be fourth of the heap.



      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      By default, the Application Server is invoked with the Java HotSpot Server JVM. The default NewRatio for the Server JVM is 2: the new generation occupies 2/3 of the heap while the old generation occupies 1/3.
      ACTUAL -
      By default, the Application Server is invoked with the Java HotSpot Server JVM. The default NewRatio for the Server JVM is 2: the ***old*** generation occupies 2/3 of the heap while the ***new*** generation occupies 1/3.

      URL OF FAULTY DOCUMENTATION :
      http://docs.oracle.com/cd/E19528-01/819-4742/abeik/index.html

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: