Deploy the jeyzer.jfc file in the target environment.
Add the following VM parameter to the command line of the application to monitor (replace the <> as indicated) :
–XX:StartFlightRecording=maxage=6h,maxsize=100M,dumponexit=true,settings=<JFR configuration>,filename=<JFR recording>
<JFR configuration> is the path to the above jeyzer.jfc file
<JFR recording> is the path to the resulting JFR recording
Start your application. Let it run for some time.
Stop it properly (service shutdown, kill -10, CTRL+C..) to let the JVM writing the latest events.
Note : the maxage and maxsize parameters indicate the maximum retention period of the collected VM data.