Version Differences for Dumps From a Java Process

(Modified jmap section)
(Java 5)
Line 60:
  <td align=center rowspan=3>'''jmap''' ''(Heap Dump)''</td>    <td align=center rowspan=3>'''jmap''' ''(Heap Dump)''</td> 
  <td><font face=monospace>process-id#</font></td>    <td><font face=monospace>process-id#</font></td> 
- <td>Performs a heap dump on the specified process ID#</td>   + <td>Performs shared object mappings on the specified process ID#</td>  
  </tr>    </tr> 
  <tr>    <tr> 
Line 70:
  <td>Prints the histogram for the specified process ID#</td>    <td>Prints the histogram for the specified process ID#</td> 
  </tr>    </tr> 
    + <tr>  
    + <td align=center rowspan=1>'''jstack''' ''(Thread Dump)''</td>  
    + <td><font face=monospace>-m process-id#</font></td>  
    + <td>Prints mixed threads (Java & C++) on a specified process ID#</td>  
    + </tr>  
  </table>    </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.   + * '''jmap''' - 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.  
       
- <br/>   + * '''jstack''' - This command will then take a thread dump of the java process specified and dump it to the console. It will only provide both Java & C/C++ threads during the trace. You may want to consider redirecting this output to a file with the ''>'' modifier.  
- === jstack (Thread Dump) ===      
- Using 'jstack', which is part of the Java 5 JDK, you can run:      
       
- '''jstack -l process-id#'''      
       
- '''jstack -F -l process-id#''' (if the process is hung)      
       
- This command will then take a thread dump of the java process specified and dump it to the console. It will only provide both Java & C/C++ threads during the trace. You may want to consider redirecting this output to a file with the ''>'' modifier.      
       
- <br/>      
  == Java 6 ==    == Java 6 == 
  There may be different options for each type of Java installed. The commands listed below are known to work with the Java 6 JDK.    There may be different options for each type of Java installed. The commands listed below are known to work with the Java 6 JDK.