When I use
jstack -l pid
to see the thread's dump info, I get result as follow:
"Attach Listener" daemon prio=10 tid=0x01e4a800 nid=0x109c waiting on condition
[0x00000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
My questions are as follow:
Thank you very much.
Dynamic attach has an attach listener thread in the target JVM. This is a thread that is started when the first attach request occurs. Follow this answer to receive notifications.
You can do thread dumps whenever you see fit to analyse anything to do with thread lock contention, deadlock detection, system resource contention, ... This is why there are tools to facilitate thread dump whenever we see fit, not only after a JVM crash.
Each JVM server can have a maximum of 256 threads to run Java applications.
See here http://openjdk.java.net/groups/hotspot/docs/Serviceability.html
Find "Dynamic Attach”
Dynamic attach has an attach listener thread in the target JVM. This is a thread that is started when the first attach request occurs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With