Profile Image
lin

Why is the heap memory full?

I am using springboot 3.2.5, redison 3.28.0, JDK17, and the current situation is that the JVM allocated heap memory suddenly becomes full, and the CPU rises to 100%, causing the application to be in a pseudo dead state. This is my stack log, can someone analyze the problem? thank you


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

    Please Sign In or to post your comment or answer

    Profile Image

    Unni Mana

    Hello lin,


    From the report, it shows that there are no CPU intensive threads in the application. If the memory is full, then it is a good idea to capture the heap memory and and analyze it.This will give you more information to your problem that you are facing.


    Check out the following link for more about heap memory analysis
    Heap Hero

    Profile Image

    Kousika M

    Hello Lin,

    Your heap memory may be filling up, likely due to a memory leak, high object allocation, or inefficient garbage collection. You can ensure objects in large collections or caches are cleared when no longer needed. Review the code for heavy or unnecessary allocations.

    Analyzing GC logs for frequent collections and adjust GC settings can also help.

    Inorder to evaluate the memory releated problem, capture a heap dump for analysis and evaluate it using the heap dump analyzer tool called HeapHero .

     

    Thanks.

    Got something else on mind? Post Your Question