How to create a new gc.log every time the JVM restarts

Solution Verified - Updated -

Issue

  • Can we configure JBoss to create a new gc.log file every time it starts, rather than overwriting the old one?

Environment

  • OpenJDK
  • Oracle JDK
  • Linux/Unix (date function)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.