Question

I thought jstack was supposed to provide thread priority information but all I get is this for example...

Deadlock Detection:

No deadlocks found.

Thread 18668: (state = BLOCKED)
 - java.lang.Thread.sleep(long) @bci=0 (Interpreted frame)
 - sun.net.www.http.KeepAliveCache.run() @bci=3, line=149 (Interpreted frame)
 - java.lang.Thread.run() @bci=11, line=662 (Interpreted frame)


Thread 1382: (state = IN_JAVA)
 - java.nio.Bits.copyToArray(long, java.lang.Object, long, long, long) @bci=64, line=715 (Compiled frame; information may be imprecise)

How do I find thread priorities?

OS: Ubuntu 10.04.4

Java 1.6.0_26

Était-ce utile?

La solution

Mostly likely it doesn't have thread priority as it is just a hint which is usually ignore. Esp if you have free CPU.

To get thread priority you can get all the threads in process and obtain the priority set. I don't believe you csn get this externally.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top