Profile Image
sahildawara4070

JVM thread count is increasing at moments

in normal scenario total thread count comes out to be around 62, number of timed_waiting threads are increased during spikes as per this analysis, what can be reason ?


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

    Please Sign In or to post your comment or answer

    Profile Image

    Unni Mana

     

    Hello Sahildawara4070,

    An increasing number of threads in the TIMED_WAITING state in a Java thread dump could indicate various issues in your application. Here are some common reasons:

    1. Concurrency Issues:

    2. Blocking Operations:

    3. Thread Pool Issues:

    4. Loops with Sleep:

    5. Thread Leaks:

      it is required to go through the dump file during peak load to know what is the issue

    Profile Image

    Kousika M

    Hello Sahildawara4070,

    As Unni mentioned following could be the reason for increase in JVM thread count,

    Concurrency Issues, Blocking Operations, Thread Pool Issues. 


    You can consider the following steps to address the issues,

    • Reviewing your application's performance metrics 
    • Adjusting the configuration of your thread pools to better accommodate fluctuations in workload
    • Implementing concurrency controls, such as rate limiting or caching, to mitigate the impact of spikes in workload on thread count.
    • Setting up monitoring and alerting mechanisms to track JVM thread count and detect abnormal patterns or spikes in real-time.

    Got something else on mind? Post Your Question