Re: Literatur Debug (Memory leak)
- From: Wolfgang Rostek <wolfgang.rostek@xxxxxx>
- Date: Thu, 4 Sep 2008 06:14:44 -0700 (PDT)
Vielleicht hilft Dir die interne Wiki Anleitung (s.u.).
Bei unserer rich client Anwendung suchen wir
meist zuerst, ob sich bei mehrfachem Öffnen eines
Windows nur eine Instanz erhalten hat, oder
so viele Instanzen, so oft man es geöffnet hat.
Dann die Suche, durch wen wird die Instanz
festgehalten. Meist hat sie sich (indirekt)
irgendwo angemeldet, aber nicht sauber
beendet.
Gruß
Wolfgang R.
-------------------
Analysing heapdums with NetBeans IDE 6.1
An easier way of finding memory leakages is to generate the heapdumps
with the jconsole and analyse it with the profiling function of
NetBeans 6.1
1. Download NetBeans IDE 6.1 from
http://www.netbeans.org/
the profiler is already included in the IDE
2. Make a heapdump with the jdk1.6 tools
a) start application on linux and open some windows
b) start jconsole with : /app/develop/bin/linux/jdk1.6.0/bin/
jconsole
c) do garbage Collection -> memory -> Perform GC
d) create a heap-dump :
jmap -dump:format=b,file=/home/telko1/dmn/heap.dump.out 12457
3. Start NetBeans IDE 6.1
open the generated heap dump in profiler
-> Profile->Load Heapdump
4. Analyse a certain Class
- Switch to Classes
- select a class
- doubleclick to switch to instance view
- right click on a Reference -> Show nearest GC Root
.
- Follow-Ups:
- Re: Literatur Debug (Memory leak)
- From: Oliver Nass
- Re: Literatur Debug (Memory leak)
- Prev by Date: Re: Calendar / Date und Zeitzonen
- Next by Date: [Swing] Andere Tastenkombinationen bei Look and Feels
- Previous by thread: Re: Literatur Debug (Memory leak)
- Next by thread: Re: Literatur Debug (Memory leak)
- Index(es):
Relevant Pages
|