java dump 명령어
툴을 사용하면 편한데 사용 못할때 직접 명령어를 사용하여 덤프를 내릴수 있다.
thread dump
1 2 3
   |  jstack PID > thread_dump.out
 
 
  | 
 
heap dump
1 2 3
   |  jmap -dump:format=b,file=c:\HeapDump.hprof 
 
 
  | 
 
힙 상태 확인
JMX 설정
1 2 3 4 5 6 7
   |  -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=19090 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=127.0.0.1
 
 
  | 
 
참조