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

Allow for an unbounded maximum heap size

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 5.0, 6
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • CPU:
      x86
    • OS:
      linux, windows_xp

      Description

      A DESCRIPTION OF THE REQUEST :
      Allow Java the ability to expand the heap as much as necessary, instead of being limited by an artificial maximum value.

      JUSTIFICATION :
      Currently the user/developer must set the maximum heap size prior to an application's launch. However, knowing how much memory an application will require beforehand is not always an easy, or even possible, task. In cases where the memory requirements are dependent on user input or data files, neither the user nor the developer can accurately guess the memory necessary for an application to run.

      An easy fix would be to set an option to disable the initial resource check and force the VM to check the system's current available memory (including virtual) before allocating more. Currently the VM will refuse to start if the maximum heap size is too large, so the developer cannot specify a large enough value without knowing anything about the user's system requirements. Removing this limitation would allow the user to set an unrealistically large heap size without needing to worry about the user's system.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jssunw Jitender S (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: