Request for review: 6941923: RFE: Handling large log files produced by long running Java Applications
Dmitry Samersoff
Dmitry.Samersoff at oracle.com
Wed Apr 13 20:52:32 UTC 2011
Yumin,
Thank you for taking care of the logging staff.
Personally, I would like to see syslog logging inside JVM.
It allows cu to use dozen of already existing and already set up log
rotation, log archiving etc tools and also redirect logging to other
machine when necessary.
-Dmitry
On 2011-04-12 22:41, yumin.qi at oracle.com wrote:
> http://cr.openjdk.java.net/~minqi/6941923/webrev.00/
> <http://cr.openjdk.java.net/%7Eminqi/6941923/webrev.00/>
>
> Summary:
>
> This is a RFE request for having a GC log rotation to prevent Java
> application from over flooding disk with GC output running for long time.
> In the implementation, supply three JVM options
> 1) -XX:+UseGCLogFileRotation must be used with -Xloggc:file
> 2) -XX:MaxGCLogFileNumbers= set limit of rotation file numbers, default
> to 1, maximum set to 1024.
> 3) -XX:GCLogFileSize= can be configured by user how big the file size
> should be. Default to 10M. Minimum set to 512K if given from option is
> less than 512K.
>
> If MaxGCLogFileNumbers=1, rotating output in same file, i.e write from
> beginning of the file when reach cap of the file; with
> MaxGCLogFileNumbers > 1 rotating files sequentially after reach cap in
> file, file.1, file.2, ..., file.<MaxGCLogFileNumbers-1> then back to
> file, file.1, ...
> Check if rotation needed at safepoint ending.
>
> Tested with multiple GC choices.
>
> Thanks
> Yumin
>
>
>
--
Dmitry Samersoff
Java Hotspot development team, SPB04
* There will come soft rains ...
More information about the hotspot-gc-dev
mailing list