This page applies to an earlier version of the AppDynamics App IQ Platform.
For documentation on the latest version, see the 4.4 Documentation.


Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Get Heap and Histogram Dump Files

It is recommended that you install JDK on your system before using the following commands.

  • Get the process id of the Controller to use in subsequent commands.

    No Format
    ps -ef | grep java
    
  • Get the heap dump before garbage collection using the following command:

    No Format
    <java-jdk-install-dir>/bin/jmap -dump:format=b,file=heap_before_live.bin <Controller_pid>
    
  • Get the histogram before garbage collection using the following command:

    No Format
    <java-jdk-install-dir>/bin/jmap -histo <Controller_pid> | head -200 > histo_before_live.txt
    
  • Get the histogram before after garbage collection using the following command:

    No Format
    <java-jdk-install-dir>/bin/jmap -histo:live <Controller_pid> | head -200 > histo_after_live.txt
    

...

  • Using the Controller process ID, execute the following command:

    No Format
    kill -3 <Controller_pid>
    

...