Profile Image
Sweta Varshney

Why Park (Waiting) threads increases ?

Why Park (Waiting) threads increases ?

 

Report URL - https://fastthread.io/my-thread-report.jsp?p=c2hhcmVkLzIwMjIvMDYvMjIvLS1oaWdoLWNwdS10ZHVtcC5vdXQtLTYtMzgtMjA=

  • jboss

  • timed-waiting

  • threads

  • timedwaitingthreadcountincreasing

  • constantwaitingthreadcount

  • enhancedqueueexecutor

Please Sign In or to post your comment or answer

Profile Image

Ram Lakshmanan

Hello Sweta!

 

 Greetings. Good that you have captured 6 snapshot of threads captured at following time period: 

14:50:19, 14:50:33, 14:50:46, 14:50:59, 14:51:12, 14:51:25 (i.e. gap of 13 seconds). I could see your TIMED_WAITING thread count is increasing. WAITING thread count is staying fairly constant. 

 

 

 Your TIMED_WAITING thread count is increasing primarily because of 'default_task' thread group as show in the below screen shot:

 

 

 You can see there are 154 threads in TIMED_WAITING state in this 'default_task' thread group. They all have the following stacktrace:

 

java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000005c1ea32f0> (a org.jboss.threads.EnhancedQueueExecutor)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1421)
at java.lang.Thread.run(Thread.java:748)
Locked ownable synchronizers:
- None

 

 Basically these threads are originated from the 'org.jboss.threads.EnhancedQueueExecutor'. You might want to check who and why this executor is created? Is there any minimum thread pool size on this executor.

Got something else on mind? Post Your Question

Not the answer you're looking for? Browse other questions tagged
  • jboss

  • timed-waiting

  • threads

  • timedwaitingthreadcountincreasing

  • constantwaitingthreadcount

  • enhancedqueueexecutor