Version Differences for Dumps From a Java Process

(Added thread/heap designation and updated Windows to have jmap)
Line 22:
  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. 
       
- === jstack ===   + === jstack (Thread Dump) ===  
  Using 'jstack', which is part of the JDK, you can run:    Using 'jstack', which is part of the JDK, you can run: 
       
Line 34:
  There may be different options for each type of Java installed. The commands listed below are known to work with the Java 7 JDK.    There may be different options for each type of Java installed. The commands listed below are known to work with the Java 7 JDK. 
       
- === jstack ===   + === jstack (Thread Dump) ===  
  Using 'jstack', which is part of the JDK, you can run:    Using 'jstack', which is part of the JDK, you can run: 
       
Line 43:
  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.    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. 
       
    + === jmap (Heap Dump) ===  
    + Using 'jmap', which is part of the JDK, you can run:  
       
    + '''jmap -dump:format=b,file='''''filename'' '''process-id#'''  
       
    + 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').  
       
       
  = *nix =    = *nix = 
  This section lists methods to obtain dumps on *nix-based platforms    This section lists methods to obtain dumps on *nix-based platforms 
Line 59:
  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. 
       
- === jmap ===   + === jmap (Heap Dump) ===  
  Using 'jmap', which is part of the JDK, you can run one of the following commands:    Using 'jmap', which is part of the JDK, you can run one of the following commands: 
       
Line 70:
  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. 
       
- === jstack ===   + === jstack (Thread Dump) ===  
  Using 'jstack', which is part of the Java 5 JDK, you can run:    Using 'jstack', which is part of the Java 5 JDK, you can run: 
       
Line 80:
  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. 
       
- === jmap ===   + === jmap (Heap Dump) ===  
  Using 'jmap', which is part of the JDK, you can run:    Using 'jmap', which is part of the JDK, you can run: 
       
Line 87:
  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').    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 ===   + === jstack (Thread Dump) ===  
  Using 'jstack', which is part of the JDK, you can run:    Using 'jstack', which is part of the JDK, you can run: 
       
Line 99:
  There may be different options for each type of Java installed. The commands listed below are known to work with the Java 7 JDK.    There may be different options for each type of Java installed. The commands listed below are known to work with the Java 7 JDK. 
       
- === jmap ===   + === jmap (Heap Dump) ===  
  Using 'jmap', which is part of the JDK, you can run:    Using 'jmap', which is part of the JDK, you can run: 
       
Line 106:
  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').    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 ===   + === jstack (Thread Dump) ===  
  Using 'jstack', which is part of the JDK, you can run:    Using 'jstack', which is part of the JDK, you can run: