Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Help with maxage / limiting default recording disk usage

ctoomeyFeb 10 2014 — edited Feb 14 2014

I've got 2 related questions:

1) Is it possible using -XX:StartFlightRecording and/or XX:FlightRecorderOptions to cause flight recording to only keep the last N minutes worth of recorded data on disk, so that any any point one can view data on the last N minutes worth of activity?  How?

2) What is the maxage parameter supposed to effect?  Reading http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/java.html it seems like it's supposed to do the above, but I've not been able to see any difference in behavior with any of these args, and in particular, each of them is continuing to fill up the /tmp dir. with .jfc files well past the maxage limit.

No maxage: -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=false,dumponexit=true,dumponexitpath=/tmp,loglevel=trace

Maxage on StartFlightRecording: -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:StartFlightRecording=maxage=1m -XX:FlightRecorderOptions=defaultrecording=false,dumponexit=true,dumponexitpath=/tmp,loglevel=trace

Maxage on FlightRecorderOptions: -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=false,dumponexit=true,dumponexitpath=/tmp,loglevel=trace,maxage=1m

thx,

Chris

This post has been answered by Erik - Hotspot Engineer-Oracle on Feb 11 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 14 2014
Added on Feb 10 2014
5 comments
5,266 views