How to check memory leak?

Is it possible to check for a memory leak without going into the code. I have an application with me and I want to check if there is a memory leak or not.

In my current organization, I check the processor usage before and after running the application, as well as the processor usage of the application process. But I do not think this is the right method.

Please advise me in this regard.

+3
source share
5 answers

I think you need a memory profiler to do this.

Here you can find a list of profilers.

Open Source Profilers for Java

also read this article on

Search for memory leaks in Java applications

+4
source

Java :

-Dcom.sun.management.jmxremote

jconsole. jconsole - , Java bin, java. ( , ). Java ( 1.6) jvisualvm, jconsole, , , .

+8

, Java, . , .

- " " (, SendKeys ), . , . , , . , , , / .

, , (. ).

+1

Java OS, IMHO. JVM , JVM . , JVM, , JVM.

, JDK (jstat, jconsole, jvisualvm), . . Java . , GC , , .

: , GC, . ( ), OutOfMemory .

, , - , "" . , .

, , . .

+1

unix c valgrind

0
source

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


All Articles