java.rst
changeset 1845 3004b10986a1
parent 1833 378b566fd86b
child 1846 a2bec9594bb4
equal deleted inserted replaced
1844:7427de2e34ea 1845:3004b10986a1
   184 
   184 
   185 Dump current thread traces and memory statistic to stdout::
   185 Dump current thread traces and memory statistic to stdout::
   186 
   186 
   187   $ kill -QUIT $PID
   187   $ kill -QUIT $PID
   188 
   188 
       
   189 Creating heap dump from Java application.
       
   190 =========================================
       
   191 
       
   192 Find pid of Java process::
       
   193 
       
   194   $ jps -l -v
       
   195 
       
   196 Save dump to file::
       
   197 
       
   198   $ jmap -dump:format=b,file=heap.dump $PID
       
   199 
   189 Debug class loading.
   200 Debug class loading.
   190 ====================
   201 ====================
   191 
   202 
   192 To dump class loading and unloading to ``System.out`` add to ``java`` opts::
   203 To dump class loading and unloading to ``System.out`` add to ``java`` opts::
   193 
   204