Reputation: 101
I want to config Garbage Collector log rotation:
-XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=2 -XX:GCLogFileSize=512.
will it work for java 6 version 22? I need to know when this fix included in java 6 (from which version) and if it will work in my version (java 6 update 22).
Upvotes: 1
Views: 3576
Reputation: 9028
Based on this Blog post : Rolling Java GC Logs, the GC logs can be automatically rotated as of Oracle Java 1.6_34 (or 1.7_2 in the latest minor version).
It looks like you are out of luck for Java 6_u22. You will probably need to rotate your GC logs by yourself using a cron job.
In order to implement manual rotation of GC logs, see Garbage collector log (loggc) file rotation with logrotate does not work properly.
Upvotes: 1