How can I detect memory leaks in Eclipse RCP applications?
You might want to try the memory leak detector that comes with JRockit Mission Control along with the Eclipse MAT . This is a powerful combination. Both tools are free to use for development.
With JRockit Mission Control, you can check a bunch online and see the exact numbers of objects of a certain type that are live, without having to take temporary snapshots. You can immediately see if you have an editor, view, or listener left after the heap after closing View / Editor. This is usually a framework listener, which is stored in your view / editor. Remember that you have to go to Windows-> Preferences-> Memory Leak Detector-> Trend and set the Lowest Heap Usage to report 0.0 for all instances of the object.
alt text http://download.oracle.com/docs/cd/E11035_01/jrockit/intro/wwimages/memleak2.gif
Using MAT, you can use the shortest path to the root of the stream to find the chain that holds the leak object. See below
alt text http://dev.eclipse.org/blogs/memoryanalyzer/files/2008/04/path2gc_all.png
, , /.
- .
eclipse (wiki, blog).
, TPTP .
Java JDK: Java VisualVM.
bin (jvisualvm.exe Windows), JDK 6 7.
, Eclipse.
https://visualvm.dev.java.net/images/getstarted/vvm-anagram-profiler.png ( , )
. https://visualvm.dev.java.net/
, - , , eclipse.exe . RCP , , . Unix (, proc)?
( , , ). , eclipse.exe, , , , , . .
, "-Xmx" eclipse.ini( .ini). . -Xmx256m , 256 . , , .
( .) , .
: http://www.yourkit.com/
, , , .
, , , , .
: , eclipse.
Source: https://habr.com/ru/post/1707753/More articles:Functional: build a list of integers 1..n - functional-programmingQuestion about prepared statement in Java - databaseVirtual Earth or Google Maps - mappingI came across this syntax: var == "?" - ": var. Can someone explain? - syntaxSuggest a progression path from struts1 → (struts2, spring) - javaJQuery loop - jqueryWhat are the best use cases for object oriented databases? - oopWPF - dynamic tooltip - c #How many synchronization objects can I use for each process and for each machine in Windows? - synchronization{$ IFOPT A4}? - delphiAll Articles