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

launch.sh systemd script incorrectly overrides JAVA_OPTS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 32.0.0.Beta1
    • None
    • Scripts
    • None
    • Release Notes
    • Hide

      Explicitly configure JAVA_OPTS in the service configuration, including all default options such as -Xmx.

      Show
      Explicitly configure JAVA_OPTS in the service configuration, including all default options such as -Xmx.

      The new launch.sh script in EAP 8.1 for systemd incorrectly overrides JAVA_OPTS:

      # Disable color output for the standard output
      export JAVA_OPTS="${JAVA_OPTS} -Dorg.jboss.logmanager.nocolor=true"
      

      If JAVA_OPTS is set before starting EAP, then EAP will not override it in standalone.conf and it must contain all of the default settings (such as -Xmx).
      But launch.sh is overriding it, without setting the defaults.

              lvydra Lukas Vydra
              rhn-support-dereed Dennis Reed
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: