In the troubleshooting BOF, we demonstrated how to use thejmap -dumpoption to dump heap dump of a running application and showed how to browse/analyze the resulting binary heap dump using thejhattool. One of the questions was how to programmatically dump the heap from applications. For example...
pid=52125, tid=0x0000000000002f03 # # JRE version: OpenJDK Runtime Environment (8.0_202) (build 1.8.0_202-release-1483-b49- 5587405) # Java VM: OpenJDK 64-Bit Server VM (25.202-b49-5587405 mixed mode bsd-amd64 compressed oops) # Problematic frame: ...