P
P
pqgg7nwkd42016-09-05 11:11:12
Java
pqgg7nwkd4, 2016-09-05 11:11:12

Get thread dump for a running JAVA process?

Good afternoon.
There is a working JAVA process (tomcat) that seems to be stuck in production. I would like to know exactly where. How can I get the call stacks of all threads?
PS IDEA has a button for this:
69a2dd3f851c4deeb7b7a61e4f4dbea5.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ivan19631224, 2016-09-05
@pqgg7nwkd4

jstack <PID>
jstack is a standard JDK utility located in $JDK_PATH/bin. The PID can be found in many ways, I usually do this with "ps -ef".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question