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!
Snapshots Overwritten
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Snapshots Overwritten
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]
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]
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Snapshots Overwritten
P.S. Another approach is to use a non-documented startup option "sessionname=<custom name>" to form a unique snapshot file name prefix.
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Snapshots Overwritten
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/
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/