{{theTime}}

Search This Blog

Total Pageviews

How to generate HPROF heap dump (.hprof) when JVM is running

Use Java Command line tool

jdk\bin\jmap -dump:file=<INCLUDE_FILE_NAME> PID(ProcessID for the running JVM)

No comments:

Java Shutdown Hook

Runtime.getRuntime().addShutdownHook(new Thread(() -> {             System.out.println("Shutdown started");              //  Cl...