|
(→All Java Versions)
|
(Modified jmap section)
|
| Line 51: | |||
| There may be different options for each type of Java installed. The commands listed below are known to work with the Java 5 JDK. | There may be different options for each type of Java installed. The commands listed below are known to work with the Java 5 JDK. | ||
| - | <br/> | + | <table border=3 cellspacing=3 cellpadding=3 align=center> |
| - | === jmap (Heap Dump) === | + | <tr> |
| - | Using 'jmap', which is part of the JDK, you can run one of the following commands: | + | <th>Command</th> |
| + | <th>Arguments</th> | ||
| - | '''jmap process-id#''' | + | <th>Description</th> |
| + | </tr> | ||
| - | '''jmap -heap process-id#''' | + | <tr> |
| + | <td align=center rowspan=3>'''jmap''' ''(Heap Dump)''</td> | ||
| - | '''jmap -histo process-id#''' | + | <td><font face=monospace>process-id#</font></td> |
| + | <td>Performs a heap dump on the specified process ID#</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td><font face=monospace>-heap process-id#</font></td> | ||
| + | <td>Performs a heap dump on the specified process ID#</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td><font face=monospace>-histo process-id#</font></td> | ||
| + | <td>Prints the histogram for the specified process ID#</td> | ||
| + | </tr> | ||
| + | </table> | ||
| This command will then dump a summary of the current memory map to the console. While not as sophisticated as the later versions of java, it still provides some rudimentary functionality. | This command will then dump a summary of the current memory map to the console. While not as sophisticated as the later versions of java, it still provides some rudimentary functionality. | ||