Snapshots Overwritten

Questions about YourKit Java Profiler
Post Reply
Osbornet
Posts: 1
Joined: Wed May 14, 2014 7:38 pm

Snapshots Overwritten

Post by Osbornet »

I'm using YourKit Java Profiler 2013 build 13076.

I'm profiling a java application run in parallel on remote servers. I use mpi to start multiple Java processes. I have successfully started the agent for every proces at startup, and added onexit=snapshot so that I have a snapshot at the end of the job that contains the entire run.

Sadly, my snapshots are being overwritten. I started a remote job across 10 computers and ended up with just one snapshot for the process that finished last. I am looking for a snapshot for each of the 10 processes. Each log says it output a snapshot, but to the exact same file.

Is there a way to add processID or Computer name or both to the snapshot name that is written by the agent automatically onexit?

Thanks!
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Snapshots Overwritten

Post by Anton Katilin »

Please try setting own snapshot directory for each process by using the startup option "dir":
http://www.yourkit.com/docs/java/help/s ... ptions.jsp

Anyway, it's strange that the snapshots are overriden. Could you please provide profiler logs for at least two processes. Please either post them in the forum or send them to [email protected]
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Snapshots Overwritten

Post by Anton Katilin »

P.S. Another approach is to use a non-documented startup option "sessionname=<custom name>" to form a unique snapshot file name prefix.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Snapshots Overwritten

Post by Anton Katilin »

An update:

YourKit Java Profiler 2014 EAP build 14048 offers new startup option "snapshot_name_format=<format>". In particular, it allows to include the profiled application's PID to its snapshot name:

http://www.yourkit.com/eap/
Post Reply