我在JBoss 5.0.0
上使用java Solaris 10 SPARC
运行build 1.6.0_27-b07
。
当我检查ps -eLf | grep -c 'Xss256k'
时(我使用java命令行arg Xss256k
来最小化线程大小)我看到8000个线程(并且正在计数)..
线程转储还会在WAITING状态下显示lof进程,这是正常的吗?
这是一个线程转储的摘录(我有这样的数千个线程),
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)