tomcatjvm⼤量线程waitingoncondition,如何解决?
⼤佬们好,做性能压测遇到及其奇怪的问题,机器load极⾼,甚⾄飙到100+,逻辑核数只有16核
脑供血不足的治疗方法
jstack dump的线程有⼀半的线程都在waiting on condition,⽽且都是⼀些tomcat的线程池之类的问题线程栈如下:
53%的线程都是如下堆栈
"catalina-exec-7" daemon prio=10 tid=0x00007f52fc016800 nid=0x1430 waiting on condition [0x00007f537abe7000]
构的四字词语java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x000000073168d480> (a urrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at urrent.locks.LockSupport.park(LockSupport.java:186)
怎么控油
封建社会的特点
at urrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
at urrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
at at.util.threads.TaskQueue.take(TaskQueue.java:104)
初中作文500字at at.util.threads.TaskQueue.take(TaskQueue.java:32)
at Task(ThreadPoolExecutor.java:1068)
at urrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
乾隆的儿子
at urrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at at.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)静寂反义词
Locked ownable synchronizers:
朱德故里- None
附上已确定的可以过滤的影响因素,其中cpu利⽤率81%,fullgc只有俩次,也不是fullgc问题引起的,parNew gc每次耗时20-40ms之间,也是合理的。内存也⾜够⽤