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.
* Create j2ee project such as ejb module. * Open sun-ejb-jar in open mode (double-click). Make a change, save close. * Open sun-ejb-jar in xml edit mode. Make a change save. At this point there should be one instance of ConfigurationStorage. * open sun-ejb-jar in open mode again. Now you will notice two Configuration Storage Instances. Make change save. Repeat this cycle and notice that ConfigurationStorage continues to grow.
Chris, do you know how big is this leak in terms of memory size lost? We should set the priority accordingly. Thanks.
Profiler shows just 40 bytes leak, I decrease to P3. Nam was interested to take this issue.
Does the profiler you are using include the byte count from objects which cannot be reclaimed because they are being referenced or just the byte count of the object itself.
That's good point... I think it's really just object itself. I am using Profiler Milestone 2 for NetBeans 3.6. Do you have real count?
I don't have the real count either, so I had to rely on Nam's judgement. He mentioned the transitive closure for ConfigurationStorage is significant. The ability to determine how much memory will be freed when an object is gc'd would be a great feature.
In terms of size, this ConfigurationStorage leak is not significant for Tomcat configuration, but could be large for AppServer with more complicate graphs. In terms of use-cases, the test case of switch back and forth b/w open and edit is not significant so I think its still P3. However, the test case of repetetive edit configuration xml-run project, would be significant. I would think this is P2.
Fix checked in: 1.23 +14 -5 j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/ConfigDataObject.java 1.28 +46 -15 j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/ConfigurationStorage.java 1.17 +14 -5 j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/ModuleDeploymentSupport.java