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

GC logging is not working on Java 9

    XMLWordPrintable

    Details

      Description

      GC logging is not working on Java 9. This is related to the fact G1 GC is default and there are changes in configuration option.

      GC_LOG="true" ./standalone.sh
      

      Java 8:

      JAVA_OPTS:  -server -verbose:gc -Xloggc:"/Users/rsvoboda/TESTING/7.2.0.CD12.CR1/jboss-eap-7.2/standalone/log/gc.log"
       -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5
       -XX:GCLogFileSize=3M -XX:-TraceClassUnloading -Xms1303m -Xmx1303m -XX:MetaspaceSize=96M 
       -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
      

      Java 9:

      JAVA_OPTS:  -server -Xms1303m -Xmx1303m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m
       -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rstancel@redhat.com Radovan Stancel
              Reporter:
              rsvoboda@redhat.com Rostislav Svoboda
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: