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.
When an application leaks a very common class type (such as java.lang.String) it is extremely difficult to track down the source of the leak. I see two problems: 1) Heap dump: ideally I want to find a leaked object, then look at who is referencing it. Unfortunately, the JDK allocates thousands of String objects so it becomes impossible for me to track down a String object leaked by my application. 2) Compare snapshots: ideally I want to "compare snapshots", then right-click on a node and "Show Allocation Traces". Unfortunately, the "compare snapshot" feature does not display traces. Fixing these usability issues will go a long way towards helping users track down memory leaks. For #1 I would expect to be able to filter objects based on their allocation trace or something similar.
Note that allocation stacktraces are not available in HPROF heap dumps.
Hopefully addressed by the new profiler - HeapWalker displays String values, memory snapshots can be compared including allocation stacks.