Re: Literatur Debug (Memory leak)



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
.



Relevant Pages

  • Re: Best IDE for ruby and rails development
    ... I am still confused which IDE to choose among freeride, aptana, ... radrails,netbeans which is most feature rich? ... http://www.scintilla.org/SciTE.html comes with the Windows ...
    (comp.lang.ruby)
  • Re: Cloning
    ... able to recognize the other IDE and was able to transfer data. ... I don't have to do any updating 2010 when the new windows OS will ... I have a 40 gig disk where my XP Pro is lying ... Windows does not have any inbuilt tools for cloning. ...
    (microsoft.public.windowsxp.general)
  • Re: Help, help, help, more help, extra help, HELP! how to turn off IDE DMA...
    ... Windows CE at all, or Windows CE doesn't start, failing somewhere after it's ... What we've found is that with modern flash cards, CE doesn't boot. ... I want to do is turn IDE DMA off in the registry. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Momentary black screen when program launches
    ... lets say the compiler takes 5 seconds to compile my source. ... seconds is up then I can get back to the Windows desktop and I will see an ... spawned by another program (IDE, Explorer, etc.) ... The Help and Support newsgroup is *terribly* named, ...
    (microsoft.public.windowsxp.general)
  • Re: Problem with hla
    ... from it is that "asm programs begin ... Having to learn *the* IDE, from the ide, and the language ... If you have previous experience with C under windows, I recommend the RosAsm versions of the Izcellion tuts, for reading. ...
    (alt.lang.asm)