Search code examples
javamemory-leaksjvmheap-dumpeclipse-memory-analyzer

Memory leak due to org.hibernate.internal.SessionFactoryImpl hard to trace


I have this Spring boot microservice that I suspect has a memory issue but I am unable to trace the suspected class back to the service code. Here are some indicating pictures, Seems like a persistence layer issue but we're not using the SessionFactoryImpl class directly anywhere.

Memory chart

Shortest paths to the accumulate points

Accumulated objects by class


Solution

  • Does it consume about 40M and the total is about 100M? If so, that's a pretty low number of a JVM app. If it doesn't grow more, I wouldn't be worried about it.

    You might have a look at number of resources available about this topic: