equal
deleted
inserted
replaced
220 |
220 |
221 With ``live`` option only reachable objects are dumped:: |
221 With ``live`` option only reachable objects are dumped:: |
222 |
222 |
223 $ jmap -dump:live,format=b,file=heap.dump $PID |
223 $ jmap -dump:live,format=b,file=heap.dump $PID |
224 |
224 |
225 Creating heap dump on OutOfMemory error. |
225 Creating heap dump on OutOfMemory error |
226 ======================================== |
226 ======================================= |
227 |
227 |
228 Run Java application with:: |
228 Run Java application with:: |
229 |
229 |
230 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/path/to/heap.dump |
230 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/path/to/heap.dump |
|
231 |
|
232 https://docs.oracle.com/javase/7/docs/webnotes/tsg/TSG-VM/html/clopts.html |
|
233 B.1.2 -XX:+HeapDumpOnOutOfMemoryError Option. |
231 |
234 |
232 Debug class loading. |
235 Debug class loading. |
233 ==================== |
236 ==================== |
234 |
237 |
235 To dump class loading and unloading to ``System.out`` add to ``java`` opts:: |
238 To dump class loading and unloading to ``System.out`` add to ``java`` opts:: |