Java: finding what uses all memory

I have a Java application that runs out of memory, but I have no idea what code allocates memory. Is there an application with which I can test this? I am using Eclipse.

+3
source share
10 answers

Since you are using eclipse, I would recommend the Eclipse Memory Analyzer plugin . This tool works great and will even provide a report with likely suspected leaks. I looked at heaps of 1G soil without any problems. I just use jconsole included in the JDK to get a dump.

Also here is a great blog about using the tool by one of the authors of this tool.

It is also free.

+9
source
+4
source

VisualVM - , JDK . , , Java SE.

JDK.

+4

Profiler.

.

+3

. Sun JVM Tool Interface , JProfiler. Eclipse , (TPTP).

+2
+2

Yourkit - , . Eclipse TPTP. ( JVM), J2EE.

+1

Eclipse jvm, hprof . ( .).

+1

, 2.6G. 20, . Eclipse 10G. , , .

, , , OutOfMemory.

0
0

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


All Articles