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

java/javaw: add -Xmx variant to specify percentage of physical RAM

    XMLWordPrintable

Details

    • Enhancement
    • Status: New
    • P4
    • Resolution: Unresolved
    • None
    • None
    • tools
    • None

    Description

      When deploying a desktop application to a large group of customers it is nearly impossible to provide a single "good" value for maximum heap size. One solution would be to add custom logic to install4j-generated installer to calculate the "good" value and let the user either choose it or change to something else.

      It might be more useful to provide a variant of -Xmx option (or indeed any other options that take memory size, such as -Xmn -Xms) that would take percentage of physical RAM.

      An obvious suggestion to use -Xmx<number>% might run afoul of some platform/shell idiosyncrasies, so perhaps -Xmx<number>pct might be better.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              angorya Andy Goryachev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: