Memory leak in Framework application

I am using a playback platform with JAVA for my application. My application consumes more memory than allocated memory. Sometimes I get an exception like java.lang.OutOfMemoryException . please help me how to find memory leak in java and how to reduce java memory usage? I use jProfiler to look for a memory leak, but I have no improvement.

+4
source share
1 answer

A good way to capture a heap dump when OOME happens is to add the VM parameter -XX:+HeapDumpOnOutOfMemoryError . You will get an HPROF heap dump that can be opened by JProfiler and other tools.

At JProfiler, the first stop to check for excessive memory consumption is the Bigger Objects view for the coachman. In many cases, it immediately becomes apparent why too much memory is being used.

+3
source

Source: https://habr.com/ru/post/1488486/


All Articles