Uploaded image for project: 'Cloud Enablement'
  1. Cloud Enablement
  2. CLOUD-3040

OpenJDK 11 Unrecognized VM option 'PrintGCDateStamps'

XMLWordPrintable

    • CLOUD Maintenance Sprint 27

      When JAVA_DIAGNOSTICS is ON there appears -XX:+PrintGCDateStamps but unfortunately this is no longer recognized causing:

      Starting the Java application using /opt/jboss/container/java/run/run-java.sh ...
          INFO exec  java -javaagent:/opt/jboss/container/jolokia/jolokia.jar=config=/opt/jboss/container/jolokia/etc/jolokia.properties -XX:+UseParallelOldGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:MaxMetaspaceSize=100m -XX:NativeMemoryTracking=summary -XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UnlockDiagnosticVMOptions -XX:+ExitOnOutOfMemoryError -cp "." -jar /deployments/docker-image-test-    app.jar  
          Unrecognized VM option 'PrintGCDateStamps'              
          Error: Could not create the Java Virtual Machine.
          Error: A fatal exception has occurred. Program will exit.
      

      (/opt/jboss/container/java/jvm/java-default-options:110)

              rcernich1 Rob Cernich
              penehyba Petr Nehyba (Inactive)
              Petr Nehyba Petr Nehyba (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: