# HG changeset patch # User Oleksandr Gavenko # Date 1451059095 -7200 # Node ID a2bec9594bb47500aa3b6165db1f2d0e6e6dd366 # Parent 3004b10986a142702b83dcf32aaaee0aedcbccab Creating heap dump on OutOfMemory error. diff -r 3004b10986a1 -r a2bec9594bb4 java.rst --- a/java.rst Fri Dec 25 17:56:37 2015 +0200 +++ b/java.rst Fri Dec 25 17:58:15 2015 +0200 @@ -197,6 +197,13 @@ $ jmap -dump:format=b,file=heap.dump $PID +Creating heap dump on OutOfMemory error. +======================================== + +Run Java application with:: + + -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/path/to/heap.dump + Debug class loading. ====================