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

Tunable Heap settings (e.g. -Xmx) should be tunable after startup.

    Details

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

      Description

      A DESCRIPTION OF THE REQUEST :
      Tuning memory for Java is a time consuming issue, and for some applications it's mostly trial-and-error guesswork. You should be able to change the -Xmx, the garbage collection algorithm, the generation sizes, etc after the program is already running.

      JUSTIFICATION :
      Not all applications can be re-run any time you want to tweak memory settings. Sometimes you predict poorly, and see an OOM errory coming, but can do nothing about it because you can bump the -Xmx up 64M to get the machine out of load balancing.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I'd expect to be able to use something on the command line to update an existing JVM, e.g.

      java -Xmx512m -p 545

      Would reset the JVM running at pid '545' to have the maximum heap size of 512m.


      ACTUAL -
      You watch JVMs die, you waste time trying bad settings.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                phh Paul Hohensee
                Reporter:
                ndcosta Nelson Dcosta (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: