문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 마지막 판 양쪽 다음 판 | ||
java:performance:threaddump [2020/11/20 10:21] kwon37xi |
java:performance:threaddump [2023/02/14 13:52] kwon37xi |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== Java ThreadDump ====== | ====== Java ThreadDump ====== | ||
+ | * [[java: | ||
+ | * [[https:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
줄 9: | 줄 11: | ||
* [[http:// | * [[http:// | ||
* [[https:// | * [[https:// | ||
+ | |||
+ | ===== dump 뜨기 ===== | ||
+ | <code sh> | ||
+ | # java process 확인 | ||
+ | jps | ||
+ | |||
+ | # jstack | ||
+ | jstack <PID> | ||
+ | |||
+ | # jcmd | ||
+ | jcmd <PID> Thread.print | ||
+ | </ | ||
===== waiting 하고 있는 monitor가 있는데 어느 쓰레드가 해당 monitor를 locking 하고 있는지 정보가 없는 상황 | ===== waiting 하고 있는 monitor가 있는데 어느 쓰레드가 해당 monitor를 locking 하고 있는지 정보가 없는 상황 | ||
줄 29: | 줄 43: | ||
* [[http:// | * [[http:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// |