jcmdwithout any parameters to list all JVM processes, starting with a PID. The command
jpsalso does the job.
jcmd [PID] GC.heap_dump [PATH]to create a heap dump.
- Enjoy the memory leak analysis :-)
On demand workshops: Java EE 7: Bootstrap, Effective, Testing and Microservices available for streaming.