JBoss,数千个线程处于 WAITING 状态,这正常吗?
我正在 Solaris 10 SPARC
上使用 java build 1.6.0_27-b07
运行 JBoss 5.0.0
。
当我检查 ps -eLf | 时grep -c 'Xss256k' (我使用 java 命令行 arg Xss256k
来最小化线程大小)我看到 8000 个线程(并且还在计数)。
线程转储还显示了 lof 中的进程WAITING 状态,这正常吗?
这是线程转储的摘录(我有数千个这样的线程),
Thread: pool-159-thread-10 : priority:5, demon:false, threadId:2231, threadState:WAITING
- waiting on <0x169635f> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.park(LockSupport.java:156)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
java.lang.Thread.run(Thread.java:662)
I am running JBoss 5.0.0
on Solaris 10 SPARC
with java build 1.6.0_27-b07
.
When I check with ps -eLf | grep -c 'Xss256k'
(I use java command line arg Xss256k
to minimize thread size) I am seeing 8000 threads (and counting)..
Thread dump also reveals a lof of process in WAITING state, is this normal?
Here is an excerpt of the thread dump (I have thousand of thread like this),
Thread: pool-159-thread-10 : priority:5, demon:false, threadId:2231, threadState:WAITING
- waiting on <0x169635f> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.park(LockSupport.java:156)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
java.lang.Thread.run(Thread.java:662)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论