Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-17879

(7.2.z) '-Xlog:gc' option is not supported on OpenJDK11 + OpenJ9

    XMLWordPrintable

Details

    • +
    • Hide
      1. start server with OpenJDK11 + OpenJ9 JDK:
        JAVA_HOME=<PATH_TO_OPENJDK11+OPENJ9/ ./bin/standalone.sh
        
      2. see the JVM warning:
        JVMJ9VM085W Malformed option: '-Xlog:gc*:file=<JBOSS_HOME_PATH>/standalone/log/gc.log:time'
        
      Show
      start server with OpenJDK11 + OpenJ9 JDK: JAVA_HOME=<PATH_TO_OPENJDK11+OPENJ9/ ./bin/standalone.sh see the JVM warning: JVMJ9VM085W Malformed option: '-Xlog:gc*:file=<JBOSS_HOME_PATH>/standalone/log/gc.log:time'

    Description

      With OpenJDK11 + OpenJ9, I can see following error during the server bootup:

      JVMJ9VM085W Malformed option: '-Xlog:gc*:file=<JBOSS_HOME_PATH>/standalone/log/gc.log:time'
      

      Based on the discussion here, the -Xlog:gc option is not supported in this JDK and it won't be.

      Relevant part of the startup script for standalone.sh in upstream WildFly.

      This warning occurs only on OpenJDK11 + OpenJ9. This does not show up when using OpenJDK8 + OpenJ9 as different branch in script is used in that case (-verbose:gc -Xloggc:\"$JBOSS_LOG_DIR/gc.log\" -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:-TraceClassUnloading).

      Attachments

        Issue Links

          Activity

            Public project attachment banner

              context keys: [headless, issue, helper, isAsynchronousRequest, project, action, user]
              current Project key: JBEAP

              People

                jperkins-rhn James Perkins
                jstourac@redhat.com Jan Stourac
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: