- |
<td align=center rowspan=1>'''jmap''' ''(Heap Dump)''</td>
|
|
|
- |
<td><font face=monospace>-dump:format=b,file=''filename'' process-id#</font></td>
|
|
|
- |
<td>Dumps the memory map of the target process-ID# to an '''hprof file''' within the current directory (or specified directory if you expand upon ''filename'')</td>
|
|
|
|
<td align=center rowspan=2>'''jstack''' ''(Thread Dump)''</td> |
|
<td align=center rowspan=2>'''jstack''' ''(Thread Dump)''</td> |
|
<td><font face=monospace>-l process-id#</font></td> |
|
<td><font face=monospace>-l process-id#</font></td> |
- |
* '''jmap''' - 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').
|
|
|
|
* '''jstack''' - This command will then take a thread dump of the java process specified and dump it to the console. You may want to consider redirecting this output to a file with the ''>'' modifier. |
|
* '''jstack''' - This command will then take a thread dump of the java process specified and dump it to the console. You may want to consider redirecting this output to a file with the ''>'' modifier. |