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 130172 - Memory leak of JbiProject
Summary: Memory leak of JbiProject
Status: CLOSED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: Composite Application (show other bugs)
Version: 6.x
Hardware: PC Solaris
: P3 blocker (vote)
Assignee: Jun Qian
URL: http://test4u.czech.sun.com/test4u-us...
Keywords: PERFORMANCE, TEST
Depends on:
Blocks:
 
Reported: 2008-03-14 16:05 UTC by Alexander Kouznetsov
Modified: 2009-04-24 07:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Leak info (6.10 KB, text/plain)
2008-03-14 16:06 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-03-14 16:05:03 UTC
Product Version         = NetBeans IDE Dev (Build 200803131205)
  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.

Performance tests report there is a memory leak of JbiProject after completion of the following scenario (each step
repeated 4 times):
- Create BPEL module
- Create Composite Application
- Add New WSDL Document
- Add New XML Schema
- Add New XML Document
- Add New Bpel Process

Memory leak info:

private static org.openide.loaders.DataObjectPool org.openide.loaders.DataObjectPool.POOL->
org.openide.loaders.DataObjectPool@1ff5b92-map->
org.openide.loaders.DataObjectPool$DoubleHashMap@3c3db1-table->
[Ljava.util.HashMap$Entry;@ecb4c3-[2762]->
java.util.HashMap$Entry@361841-key->
org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj@7534c0-eventSupport->
javax.swing.event.EventListenerList@9a96d-listenerList->
[Ljava.lang.Object;@3ed792-[15]->
org.netbeans.modules.compapp.projects.jbi.ui.JbiViews$LogicalViewChildren@2f48df-project->
org.netbeans.modules.compapp.projects.jbi.JbiProject@fe4495

public static final org.netbeans.modules.project.ant.FileChangeSupport
org.netbeans.modules.project.ant.FileChangeSupport.DEFAULT->
org.netbeans.modules.project.ant.FileChangeSupport@48691d-holders->
java.util.WeakHashMap@16f7a3f-table->
[Ljava.util.WeakHashMap$Entry;@16b2692-[71]->
java.util.WeakHashMap$Entry@7c61c3-value->
java.util.HashMap@14e4903-table->
[Ljava.util.HashMap$Entry;@a16bbc-[3]->
java.util.HashMap$Entry@e12867-value->
org.netbeans.modules.project.ant.FileChangeSupport$Holder@1501156-current->
org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj@da37d8-eventSupport->
javax.swing.event.EventListenerList@19750b8-listenerList->
[Ljava.lang.Object;@77ac9-[5]->
org.netbeans.modules.compapp.projects.jbi.ui.JbiModuleViewNode$1@d9c42b-this$0->
org.netbeans.modules.compapp.projects.jbi.ui.JbiModuleViewNode@153d864-project->
org.netbeans.modules.compapp.projects.jbi.JbiProject@fe4495
Comment 1 Alexander Kouznetsov 2008-03-14 16:06:10 UTC
Created attachment 58399 [details]
Leak info
Comment 3 Alexander Kouznetsov 2008-04-21 13:59:19 UTC
I see that there is no more leak through FileChangeSupport.

Leak through org.openide.loaders.DataObjectPool.POOL is still reproducible. 

Could you please comment on that?
Comment 4 Jun Qian 2008-04-23 22:17:31 UTC
will fix post 6.1.
Comment 5 Jun Qian 2009-02-07 01:10:00 UTC
Fixed in soa-dev: http://hg.netbeans.org/soa-dev/rev/8b08347159af
Comment 6 rajvenka 2009-04-24 07:12:33 UTC
Verified in build in GFESB v2.1 in Netbeans IDE 6.5.1

Created BPEL module
- Created Composite Application
- Added New WSDL Document
- Added New XML Schema
- Added New XML Document
- Added New Bpel Process

All these Operations 4 times repeatedly.
I dont see Memory leak happening now.
So closing this ticket.