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

Enable Garbage Collection Logging by Default - missing feature from EAP6

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.0.0.DR8
    • 7.0.0.DR2
    • Scripts
    • None

      Description of problem:
      GC logging java opts are not passed to standalone server

      Steps to Reproduce:
      1. Start the standalone server (on windows or linux) and observe the console logs.

      Actual results:
      JAVA_OPTS: -server -XX:+UseCompressedOops -server -XX:+UseCompressedOops -Xms64m -Xmx512m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true

      Expected results:
      JAVA_OPTS: -server -XX:+UseCompressedOops -server -XX:+UseCompressedOops -Xms64m -Xmx512m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -verbose:gc -Xloggc:"$JBOSS_LOG_DIR/gc.log" -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:-TraceClassUnloading

      Additional info:

      • EAP6 jira: https://issues.jboss.org/browse/EAP6-121
      • EAP6-121 feature is commented in standalone.sh and standalone.bat
      • these OPTS are missing: -verbose:gc -Xloggc:"$JBOSS_LOG_DIR/gc.log" -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:-TraceClassUnloading

        1. standalone.bat.patch
          4 kB
          Marek Kopecky
        2. standalone.sh.patch
          5 kB
          Marek Kopecky

              vdosoudi@redhat.com Vladimir Dosoudil
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: