|
(→Java 6)
|
(→Java 6)
|
| Line 89: | |||
| </tr> | </tr> | ||
| <tr> | <tr> | ||
| - | <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> | ||
| - | </tr> | ||
| - | <tr> | ||
| <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> | ||
| Line 104: | |||
| </table> | </table> | ||
| - | * '''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. | ||
| == Java 7 == | == Java 7 == | ||