Skip to Main Content

Integration

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!

Creating flight recording for a JUnit Test

tellisnzSep 13 2013 — edited Nov 15 2013

Hi,

I'm trying to use the following JVM arguments to create a flight recording for the JVM that is created when running JUnit tests in Eclipse (these are added to the VM arguments for the JUnit run configuration):

-XX:StartFlightRecording=name=default,settings=default -XX:FlightRecorderOptions=dumponexit=true,dumponexitpath=d:\dumponexit.jfr

I see the following on the console (not sure if this is just sysout or slf4j logging to the configured console appender)

Started recording 1. No limit (duration/maxsize/maxage) in use.

Use JFR.dump name=default filename=FILEPATH to copy recording data to file.

But when the JUnit test completes and terminates there is no file created.

Any ideas?

Cheers,

Tom

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 13 2013
Added on Sep 13 2013
1 comment
1,240 views