Doing Time Limited Flight Recordings Using Start Up Parameters
Posted
by Marcus Hirt
on Oracle Blogs
See other posts from Oracle Blogs
or by Marcus Hirt
Published on Mon, 03 May 2010 15:13:13 +0100
Indexed on
2010/05/03
14:28 UTC
Read the original article
Hit count: 555
Just like with the old JRockit Runtime Analyzer, it is possible to start up recordings using command line parameters to JRockit. The parameter is called -XX:StartFlightRecording in R28.
Below is an example that starts a flight recording half a minute after the JVM has been started. The recording will last for a minute. The name when viewing the ongoing recordings will be MyRecording, and the resulting file will be written to C:\tmp\myrecording.jfr. The recording will use the settings in jre\lib\jfr\profile.jfs.
-XX:StartFlightRecording=delay=30s,duration=60s,name=MyRecording,filename=C:\tmp\myrecording.jfr,settings=profile
For more information, see the JRockit R28 command line parameter documentation.
© Oracle Blogs or respective owner