Creating Java Runtime Snapshot using VisualVM
The steps described here are necessary in order to be able to analyze long-running processes in jBEAM.
Download and install VisualVM tool. Previously this tool was shipped with the Java JDK installation and is now published standalone under: https://visualvm.github.io/
I.e. on a Microsoft Windows system, you can simply download it as zip file. And extract it to a location you have permission to. Find the …/bin/visualvm.exe to start the VisualVM tool.
Now start jBEAM if not yet done. But do not start the long-running action yet!
Now in the VisualVM tool, select (double click) the jBEAM process, i.e. com.AMS.jBEAM_Extern.jBMain (pid 10960)
Now, to find out what and why the jBEAM processes take so long, go to Sampler tab:
Now go back to jBEAM and start the long-running task.
And while it is running, go back to VisualVM in the Sampler tab - click the CPU button:
Now let it run for a few seconds or minutes in this 'stuck' state and then press the Stop button. Followed by pressing the Snapshot button:
Clicking the Snapshot button opens a new “[snapshot] …“ tab: inside it, find the disc icon and press the Export Snapshot Data context menu entry:
Send us the created .nps file.