DEV Community

Discussion on: JVM memory leak, where to begin?

 
smuschel profile image
smuschel

I think this would be your best option. Restrict max heap size an check if your app runs into an OutOfMemoryError. If that happens, use one of the mentioned tools to analyse your heap (take snapshots of your heap at different points in time, see what objects might accumulate).
But first, I'd also recommend to verify there's a memory issue

Thread Thread
 
jouo profile image
Jashua

I did it yesterday, and ran into a memory error (not sure which), logs said the JVM killed the child or something... I should've saved that log I'm sorry

But I do am working on it, already taking a course on JVM memory :)