(Changed name from 'diagnostics')
|
(→*nix)
|
Line 9: | |||
= *nix = | = *nix = | ||
+ | This section lists methods to obtain dumps on *nix-based platforms | ||
+ | == Java 7 == | ||
+ | There may be different options for each type of Java installed. The commands listed below are known to work with the Java 7 JDK. | ||
+ | === jmap === | ||
+ | Using 'jmap', which is part of the JDK, you can run: | ||
+ | '''jmap -dump:format=b,file='''''filename'' '''process-id#''' | ||
+ | This command will then dump the memory map of the target process-id# to an hprof file within the current directory (or specified directory if you expand on 'filename'). |