Profile Image
shivanigarg60

Can someone help me to analyse why there are so many waiting and blocked threads? Can you suggest me something to fix?

Can someone help me to analyse why there are so many waiting and blocked threads? Can you suggest me something to fix?


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

    Please Sign In or to post your comment or answer

    Profile Image

    Kousika M

    Hello shivanigarg60,

    Greetings!

    There are no major blocked threads, but as the report indicates, almost 60 plus threads are waiting under the
    sling-threadpool-f11df4be-0156-4165-8c57-6fe65398fddf-(apache-sling-job-thread-pool) threads and HealthCheck idle threads. You can focus on these two threads and identify the root cause.

     

     

    Please find the stacktrace of these 2 threads below for your reference,

     

    sling-threadpool-f11df4be-0156-4165-8c57-6fe65398fddf-(apache-sling-job-thread-pool) thread:
    
    stackTrace:
    java.lang.Thread.State: WAITING (parking)
    at jdk.internal.misc.Unsafe.park(java.base@11.0.5/Native Method)
    - parking to wait for <0x00007fc02c0a0b88> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
    at java.util.concurrent.locks.LockSupport.park(java.base@11.0.5/LockSupport.java:194)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11.0.5/AbstractQueuedSynchronizer.java:2081)
    at java.util.concurrent.LinkedBlockingQueue.take(java.base@11.0.5/LinkedBlockingQueue.java:433)
    at java.util.concurrent.ThreadPoolExecutor.getTask(java.base@11.0.5/ThreadPoolExecutor.java:1054)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11.0.5/ThreadPoolExecutor.java:1114)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11.0.5/ThreadPoolExecutor.java:628)
    at java.lang.Thread.run(java.base@11.0.5/Thread.java:834)
    Locked ownable synchronizers:
    - None

     

    HealthCheck idle:
    
    stackTrace:
    java.lang.Thread.State: WAITING (parking)
    at jdk.internal.misc.Unsafe.park(java.base@11.0.5/Native Method)
    - parking to wait for <0x00007fc02fb9a458> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
    at java.util.concurrent.locks.LockSupport.park(java.base@11.0.5/LockSupport.java:194)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11.0.5/AbstractQueuedSynchronizer.java:2081)
    at java.util.concurrent.LinkedBlockingQueue.take(java.base@11.0.5/LinkedBlockingQueue.java:433)
    at java.util.concurrent.ThreadPoolExecutor.getTask(java.base@11.0.5/ThreadPoolExecutor.java:1054)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11.0.5/ThreadPoolExecutor.java:1114)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11.0.5/ThreadPoolExecutor.java:628)
    at java.lang.Thread.run(java.base@11.0.5/Thread.java:834)
    Locked ownable synchronizers:
    - None

     

    Thanks.

    Got something else on mind? Post Your Question