You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by bo zhao <so...@gmail.com> on 2014/11/05 04:17:38 UTC
so many thread are blocked
I used command <jstack> to dump threads of tomcat, and I found that 183
threads are blocked, why?
thread dump like this:
Deadlock Detection:
No deadlocks found.
Thread 2584: (state = BLOCKED)
- java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be
imprecise)
- java.lang.Object.wait() @bci=2, line=485 (Compiled frame)
- org.apache.tomcat.util.net.JIoEndpoint$Worker.await() @bci=8, line=458
(Compiled frame)
- org.apache.tomcat.util.net.JIoEndpoint$Worker.run() @bci=11, line=484
(Interpreted frame)
- java.lang.Thread.run() @bci=11, line=662 (Interpreted frame)
Thread 2583: (state = BLOCKED)
- java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be
imprecise)
- java.lang.Object.wait() @bci=2, line=485 (Compiled frame)
- org.apache.tomcat.util.net.JIoEndpoint$Worker.await() @bci=8, line=458
(Compiled frame)
- org.apache.tomcat.util.net.JIoEndpoint$Worker.run() @bci=11, line=484
(Compiled frame)
- java.lang.Thread.run() @bci=11, line=662 (Interpreted frame)
Thread 2572: (state = BLOCKED)
- java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be
imprecise)
- java.lang.Object.wait() @bci=2, line=485 (Compiled frame)
- org.apache.tomcat.util.net.JIoEndpoint$Worker.await() @bci=8, line=458
(Compiled frame)
- org.apache.tomcat.util.net.JIoEndpoint$Worker.run() @bci=11, line=484
(Interpreted frame)
- java.lang.Thread.run() @bci=11, line=662 (Interpreted frame)
...
thanks.
RE: so many thread are blocked
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: bo zhao [mailto:somanybut@gmail.com]
> Subject: so many thread are blocked
> I used command <jstack> to dump threads of tomcat, and I found that 183
> threads are blocked, why?
They're waiting for something to do. When a request arrives, a waiting thread will be activated to process it. Look at the <Connector> and <Executor> documentation to learn how to configure things to your liking.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org