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.
Scenario from issue 51384. I've found extraordinary increase in number of Integer instances and HashMap$Entry instances (tens of thousands) and traced it to the MdrStorage singleton. MdrStorage keeps track of all ever created instances of ValuesObject. There is a way to register new instance of ValuesObject (one ValuesObject instance per one storageId), but there is no way of unregistering it, so I found >300 instances of ValuesObject registered. Each ValuesObject keeps quite large list of values and a map which maps values to integers. These objects are kept even after closing all related projects.
Fixed. Checking in src/org/netbeans/mdr/storagemodel/MdrStorage.java; /cvs/mdr/src/org/netbeans/mdr/storagemodel/MdrStorage.java,v <-- MdrStorage.java new revision: 1.70; previous revision: 1.69 done
I can confirm that ValuesObject instances get properly freed and most of Integer instances as well in current trunk sources.
Please prepare a fix for 4.0. Thanks.
Fixed in release40. Checking in src/org/netbeans/mdr/storagemodel/MdrStorage.java; /cvs/mdr/src/org/netbeans/mdr/storagemodel/MdrStorage.java,v <-- MdrStorage.java new revision: 1.68.2.1; previous revision: 1.68 done
Verified in release40 too.