Snapshots of live profiling sessions can be saved to disk by selecting
Session->Save Snapshot from JProfiler's
main menu or by clicking on the corresponding
tool bar entry in
JProfiler's main tool bar.
A file chooser will be brought up where you can select the name and directory of the snapshot file to be written. The standard extension of JProfiler's snapshot files is *.jps. Once JProfiler has finished writing the snapshot to disk, a message box informs you that the snapshot was saved. A bookmarks will be added when a snapshot is saved manually. |
Besides JProfiler snapshots, JProfiler can also open HPROF heap dump files as well as
PHD files (portable heap dump files created by IBM JVMs). Right from the JProfiler GUI you can save HPROF
snapshots with the Profiler->Save HPROF Snapshot. You will be asked to provide a file name for
the HPROF snapshot. The snapshot file will be given an .hprof extension and will be saved on the computer where the profiled JVM is running.
The path will be interpreted as relative to the current directory of the profiled JVM.
In situations where physical memory is sparse, saving an HPROF snapshot can be preferable compared to saving a full JProfiler snapshot. Also, there are alternative ways to save HPROF snapshots:
|
You can also save snapshots with the offline profiling API or use a trigger and the "Save snapshot" and "Create a HPROF heapdump" actions to save snapshot in an exact way. This is also useful for offline profiling. |
Saved snapshots can be loaded
The status bar indicates that a snapshot is being viewed by displaying the message Snapshot in its rightmost compartment. |