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.
Search results are held in memory even if search window is closed. Steps to reproduce: 1) Invoke 'Find ..' in Favorites on netbeans source root. 2) Leave text empty and select "*.png" as selected files 3) Run search After search finishes close search output window. If you take a look at heap dump (available in URL field above) you will see that there is still one instance of SpecialSearchGroup, which contains LinkedList searchItems, which has about 129000 FileObjects.
*** Issue 175620 has been marked as a duplicate of this issue. ***
I absolutely agree. Closing the top window "Search Results" must also close all inner tabs with the last search results and release all related objects.
Fixed http://hg.netbeans.org/main/rev/ceb0f88779f0 I've tested this via profiler. Results of the memory usage by org.netbeans.modules.search.* objects will be attached.
Created attachment 96420 [details] Memory before call of Find action
Created attachment 96421 [details] Memory after completion of Find action
Created attachment 96422 [details] Memory after closing of Search Results window