vendredi 4 novembre 2011

Java - Obtenir un Dump

Le dump peut être utilisé par hpjtune pour une analyse.

-XX:+HeapDump    SIGQUIT    ASCII;
et
set the _JAVA_BINARY_HEAPDUMP environment variable to get binary    java_<pid>_<date>_<time>_heapDump.hprof.txt

-XX:+HeapDumpOnCtrlBreak     SIGQUIT    Binary    java_<pid>.hprof.<millitime>

-XX:+HeapDumpOnOutOfMemoryError    Out of Memory    Binary    java_<pid>.hprof or the file specified by -XX:HeapDumpPath=file

-XX:+HeapDumpOnly    SIGVTALRM    ASCII; set the _JAVA_BINARY_HEAPDUMP environment variable to get binary    java_<pid>_<date>_<time>_heapDump.hprof.txt

 Ou Kill -3

Aucun commentaire:

Enregistrer un commentaire