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.
After opening java/j2seproject its subprojects, I've relalized that I have >3000 instances of a String "/space/nenik/work/NB_genuine/nbbuild/netbeans/ide4...................." These strings are held from maps from org.netbeans.spi.project.support.ant.PropertyUtils$SequentialPropertyEvaluator There are 40 instances of the evaluator, which together reference over 12.000 Strings, most of them duplicit. Here is the profile: org.netbeans.spi.project.support.ant.PropertyUtils$SequentialPropertyEvaluator:40/1280B [Ljava.util.HashMap$Entry;: 40/75392B java.util.HashMap: 40/1600B [C: 12510/1367080B java.util.HashMap$Entry: 12529/300696B java.lang.String: 12540/300960B Total: 37699/2047008B The Strings with their char[] consume >1.6MB out of ~2MB used there. Removing duplicities and trimming these Strings should save at least 1MB of heap.
Will see if I can collapse some, thanks for the tip.
Seemed to be specific to NBM projects. One-line fix.
Along with other stuff in: committed * Up-To-Date 1.46 apisupport/project/src/org/netbeans/modules/apisupport/project/NbModuleProject.java
OK now.