How can I add timestamps in GC log for JBoss EAP?

Solution Unverified - Updated -

Issue

  • In my environment, JBoss EAP doesn’t output timestamps to GC log file. It’s difficult to diagnose GC issues. How can I add timestamps in GC log?
  • I'm using JDK 11 with the following GC configuration in standalone.conf in order to customize a GC log file path of JBoss EAP. However, this does not output timestamps in GC log. How can I add timestamps?

    JAVA_OPTS="$JAVA_OPTS -Xlog:gc:file=<YOUR_GC_LOG_FILE_PATH>"
    

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x
  • OpenJDK or Oracle JDK
    • 8, 11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content