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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • tools
    • None

      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.

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

              Created:
              Updated: