How can I create rolling gc.log files?
Issue
- The JVM's are infrequently started and our GC files can get extremely large. I would like to be able to create "daily" gc logs somehow without having to restart the JVM. It would be nice if my nightly script could somehow detach the gc file from the running JVM process, create a new GC file and then somehow re-attach the file to the existing JVM process.
- The size of the gc log is increasing. How can we reduce or partition gc logs? Or can we disable that logging?
- How to rotate the gc.log in JBoss?
Environment
- JBoss or other Java application
- Linux or Unix
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
