Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-2925

Separate heap settings in standalone.conf and domain.conf from rest of JAVA_OPTS

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 16.0.0.Beta4, 16.0.0.Final
    • 8.0.0.Beta5
    • Scripts
    • None

    Description

      Let's do this:

      if [ "x$JBOSS_JAVA_SIZING" = "x" ]; then
         JBOSS_JAVA_SIZING="-Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m"
      fi
      if [ "x$JAVA_OPTS" = "x" ]; then
         JAVA_OPTS="$JBOSS_JAVA_SIZING -Djava.net.preferIPv4Stack=true"
         JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"
      else
         echo "JAVA_OPTS already set in environment; overriding default settings with values: $JAVA_OPTS"
      fi
      

      That will allow users to easily control memory sizing by setting that specific env var externally while still relying on our defaults for all the other fussy stuff in JAVA_OPTS.

      The JBOSS_JAVA_SIZING name was 20 secs of thought on my part.

      Attachments

        Issue Links

          Activity

            People

              lvydra Lukas Vydra
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: