How do I redirect verbose garbage collection output to a file? Sun’s website shows an example for Unix but it doesn't work for Windows.
Java – How to redirect verbose garbage collection output to a file
garbage-collectionjavajdk1.5
Related Topic
- Java – How to check if a file exists in Java
- Java – How does Java Garbage Collection work with Circular References
- Java – How to use java.net.URLConnection to fire and handle HTTP requests
- Java – Download a file with Android, and showing the progress in a ProgressDialog
- Java – How to Force Garbage Collection from the Shell
- Java – Why is processing a sorted array faster than processing an unsorted array
- Java – Differences between Oracle JDK and OpenJDK
- Java – How to install Java 8 on Mac
Best Answer
From the output of
java -X
:Documented here:
So the output looks something like this: