Profile Image
Prasanth

High repsonse time and more blocked threads

Response times are high and seeing most of the threads are in blocked state. is this code issue or any configs? have you come across this issue 

 

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

  • blockedstate

  • threadpoolexecutor

  • parkedthreads

  • concurrencyissue

Please Sign In or to post your comment or answer

Profile Image

Mahesh

Hi Prasanth,

 

Threads that are in a BLOCKED state originated from java.util.concurrent.ThreadPoolExecutor and blocked in sun.misc.Unsafe.park(...) method. As per my understanding, the threads being parked are from the thread pool related to the blocking queue. Threads that are "parked" coming from pools are simply waiting for a task to be assigned. Also, they really consume 0% CPU so I don't think this should be a problem. sun.misc.Unsafe.park(...) is basically like Thread.wait, but it uses os code, so it is not exposed to us.

 

It is possible though that you have a concurrency issue making it so your queue is blocking itself forever.

There are way too many threads in the pool than the demand for the workload. You might have to configure a lower value to the min thread pool size.

Got something else on mind? Post Your Question

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

  • threadpoolexecutor

  • parkedthreads

  • concurrencyissue