Profile Image
deepakveersingh160

why long gc is running here?

why long gc is running here?


Report URL - https://gceasy.io/my-gc-report.jsp?p=c2hhcmVkLzIwMjUvMDQvMjQvZ2MubG9nLjAtLTktNTEtNTY=&channel=WEB

    Please Sign In or to post your comment or answer

    Profile Image

    Unni Mana

     

    Hello deepakveersingh160,

    There are reasons for this:

     

    1. too much objects are created frequently and not able to collect them

    2. Heap fragmentaion


    In this report, the cpu time is more than the total time the gc is run.

    Hence, the throughput is very low.

     

     

    Profile Image

    Kousika M

    Hello Deepakveersingh,


    Greetings!

    Long GC pauses usually happen when the JVM struggles to reclaim memory efficiently. This can be caused by high object allocation rates, many active or waiting threads holding memory, or blocked threads waiting on external systems. If memory isn’t freed quickly enough, the JVM triggers full GCs, which are more expensive and cause longer pauses.

    Additionally, if the garbage collector isn’t properly tuned or if the heap size isn’t well-configured, GC performance can suffer. 

    Thanks.

    Got something else on mind? Post Your Question