Giriş
Açıklaması şöyle. Uzunca bir çıktı verebilir.This command is to get the thread dump i.e. it will print the stack trace of all threads currently running.
Örnek
Şöyle yaparız
# old schoool
jstack <pid>
# more modern
jcmd <pid> Thread.print
jcmd <class-name> Thread.print
# If no JDK, SIGQUIT dumps threads to System.out, extract from there
# (this will just send a signal to the app, not trigger a shutdown)
kill -QUIT <pid>
# For a Kubernetes pod the java pid is typically 1
kubectl exec <pod-name> -- jstack 1
Örnek
Şöyle yaparızjcmd pid Thread.print
Hiç yorum yok:
Yorum Gönder