문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
java:performance:threaddump [2018/03/06 13:47] kwon37xi [waiting 하고 있는 monitor가 있는데 어느 쓰레드가 해당 monitor를 locking 하고 있는지 정보가 없는 상황] |
java:performance:threaddump [2023/02/14 13:54] (현재) kwon37xi [dump 뜨기] |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== Java ThreadDump ====== | ====== Java ThreadDump ====== | ||
+ | * [[java: | ||
+ | * [[https:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
줄 8: | 줄 10: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
- | * [[https://java.net/projects/ | + | * [[https://github.com/sparameswaran/ |
- | ====== waiting 하고 있는 monitor가 있는데 어느 쓰레드가 해당 monitor를 locking 하고 있는지 정보가 없는 상황 | + | ===== dump 뜨기 ===== |
+ | <code sh> | ||
+ | # java process 확인 | ||
+ | jps | ||
+ | |||
+ | # jstack | ||
+ | jstack < | ||
+ | |||
+ | # jcmd | ||
+ | jcmd <PID> Thread.print | ||
+ | |||
+ | # kill -3 : process system.out 으로 출력된다. | ||
+ | kill -3 < | ||
+ | </ | ||
+ | * '' | ||
+ | < | ||
+ | -XX: | ||
+ | </ | ||
+ | ===== waiting 하고 있는 monitor가 있는데 어느 쓰레드가 해당 monitor를 locking 하고 있는지 정보가 없는 상황 | ||
* Thread Dump를 떴을 때 분명 '' | * Thread Dump를 떴을 때 분명 '' | ||
* TDA 가 출력한 내용에 따르면, | * TDA 가 출력한 내용에 따르면, | ||
줄 29: | 줄 49: | ||
* [[http:// | * [[http:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// |