This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 128458 - Memory Leak of DesignView
Summary: Memory Leak of DesignView
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Alexey Yarmolenko
URL: http://test4u.czech.sun.com/test4u-us...
Keywords: PERFORMANCE, TEST
Depends on:
Blocks:
 
Reported: 2008-02-26 16:03 UTC by Alexander Kouznetsov
Modified: 2008-04-21 12:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Memory leak information (3.83 KB, text/plain)
2008-02-26 16:04 UTC, Alexander Kouznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2008-02-26 16:03:54 UTC
Product Version         = NetBeans IDE Dev (Build 200802251204)
  Operating System        = SunOS version 5.10 running on x86
  Java; VM; Vendor        = 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19; Sun Microsystems Inc.

Tests report there is a memory leak of DesignView component, when all editor windows are closed there are several
instances of DesignView in memory. Check URL for test results.
Comment 1 Alexander Kouznetsov 2008-02-26 16:04:47 UTC
Created attachment 57284 [details]
Memory leak information
Comment 2 Sergey Lunegov 2008-02-26 16:54:39 UTC
Alexey, please look at this.
Comment 3 Alexey Yarmolenko 2008-02-27 16:55:44 UTC
I see2 different "points" of memory leaks in provided dump: 

First looks like caused by http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4903084
I need to investigate this issue to see if any workaround exists, because original bug was closed with NOT_A_BUG status.

And second goes thru xpath model. 

Nikita, please check the second one  and then reassign bug to me to fix the first.
Comment 4 Nikita Krjukov 2008-03-06 15:45:37 UTC
Alexey, I've fixed the part related to the XPath model. 
I changed an XPath model class only. 
Comment 5 Alexey Yarmolenko 2008-03-24 17:46:03 UTC
Ok, my recent investigations:
Leak in XPath model was fixed by Nikita

Leak with 
private static sun.awt.im.CompositionAreaHandler sun.awt.im.CompositionAreaHandler.compositionAreaOwner->
sun.awt.im.CompositionAreaHandler@1a32d08-clientComponent->
org.netbeans.modules.bpel.design.DesignView@1daa485
Is a AWT problem with status WILL_NOT_FIX, because this path will be released as soon as other component will get focus
after closing design view.

Leak in decorationComponents was fixed as a part of another bug.

Closing this issue as fixed as soon as all listed leaks are removed. 
Comment 6 Alexey Yarmolenko 2008-03-24 17:53:58 UTC
Ok, my recent investigations:
Leak in XPath model was fixed by Nikita

Leak with 
private static sun.awt.im.CompositionAreaHandler sun.awt.im.CompositionAreaHandler.compositionAreaOwner->
sun.awt.im.CompositionAreaHandler@1a32d08-clientComponent->
org.netbeans.modules.bpel.design.DesignView@1daa485
Is a AWT problem with status WILL_NOT_FIX, because this path will be released as soon as other component will get focus
after closing design view.

Leak in decorationComponents was fixed as a part of another bug.

Closing this issue as fixed as soon as all listed leaks are removed. 
Comment 7 Alexander Kouznetsov 2008-04-21 12:52:24 UTC
Verified with NetBeans 6.1 FCS (Build 200804210003)