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.
Memory is growing while working. The HeapDump´s are available at: http://www.MegaShare.com/4232313 My test was: -) Started NetBeans, waited until Scanning Projects has finished and closed NeBeans -) Startet NetBeans again, closed all open Documents, pressed Memory-Button(GC) and created a Heap-Dump -> Total bytes: 348.826.711 -> "heapdump1..." -) Then I worked about 2 hours, closed all open Documents, made GC and created a Heap-Dump -> Total bytes: 422.328.176 -> "heapdump2..." -) 2 hours later again -> Total bytes: 437.486.565 -> "heapdump3..." Tested at: Product Version: NetBeans IDE Dev (Build 201205170950) Java: 1.7.0_03; Java HotSpot(TM) 64-Bit Server VM 22.1-b02 System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
After 8 hours of work I´ve: Total bytes: 516.200.022 Upload is available at: http://www.file-upload.net/download-4371838/heapdump-8hAfterStarting.rar.html -- Bevor I closed NetBeans is made again a Heapdump: Total bytes: 515.109.011 Upload is available at: http://www.file-upload.net/download-4371845/heapdump-EndOfDay.rar.html
Thank you for heap dumps, they are very helpful. Just few questions: You have written, that you closed all documents, does it mean that you closed only open sources or, does it mean that you closed all the documents and everything associated with them - like various versioning stuff, diffs, find usages, etc. and also deleted breakpoints, etc...maybe it would be cool to also include screenshots, so that it can be seen what exactly remains open. It seems, there are numerous possible leaks in these heap dumps, so this issue will serve as umbrella for them and new issue will be filed for each potential/real leak..
(In reply to comment #2) > Thank you for heap dumps, they are very helpful. Just few questions: > You have written, that you closed all documents, does it mean that you closed > only open sources or, does it mean that you closed all the documents and > everything associated with them - like various versioning stuff, diffs, find > usages, etc. and also deleted breakpoints, etc...maybe it would be cool to also > include screenshots, so that it can be seen what exactly remains open. I only closed the sources. "Search Results", "Usages", "Output", "CVS", "Test Results" and "Breakpoints" are still opened.
Created attachment 119682 [details] Screenshot: Windows that are still opened.
Can you please attach another couple of heapdumps from the end of your workday? 1st should be after you close all editor tabs and invoke GC a few times. 2nd should be after you close all the bottom windows - like find usages, search, versioning, test results, etc..
Yesterday I tried it again at current build, but closed all the windows at bottom (Find Usages, ..). Heap-Dump after Start: Total bytes: 350.221.776 Total classes: 14.263 Total instances: 3.641.789 Classloaders: 729 GC roots: 4.354 Heap-Dump before Closing (after 6 hours work): Total bytes: 494.428.546 Total classes: 25.672 Total instances: 5.771.229 Classloaders: 1.037 GC roots: 5.650 Available at http://www.MegaShare.com/4250138 (+Screenshot, what´s closed). I also tried to let NetBeans open (over night=13 hours) and made today morning also a Heap-Dump. But I think this isn´t really interesseting: Total bytes: 497.408.268 Total classes: 25.702 Total instances: 5.800.427 Classloaders: 1.027 GC roots: 5.668 Is available at: http://www.MegaShare.com/4250185 - Product Version: NetBeans IDE Dev (Build 201205200400) Java: 1.7.0_03; Java HotSpot(TM) 64-Bit Server VM 22.1-b02 System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
I haven´t closed NetBeans and today after Work, I created again a heap-dump. Total bytes: 618.324.460 Total classes: 31.806 Total instances: 7.832.981 Classloaders: 1.009 GC roots: 6.037 Upload is available at: http://www.MegaShare.com/4251867
-) 3.Day-Morning (NetBeans was running over nigth): Total bytes: 611.787.615 Total classes: 31.726 Total instances: 7.661.017 Classloaders: 928 GC roots: 6.055 http://www.MegaShare.com/4255541 -) 3.Day-After Work (running 54hours running). Total bytes: 773.731.801 Total classes: 33.926 Total instances: 10.285.944 Classloaders: 1.153 GC roots: 6.237 http://www.MegaShare.com/4258036 -- Now I´ve closed NetBeans, because the latest hours NB was very slow (I think there was much time at GC).
Created attachment 120304 [details] Screenshot: NB7.1.2 vs. 7.2
Please forget the attachement "Screenshot: NB7.1.2 vs. 7.2". (FF selected the next Issue).
Found memory leaks was fixed - see depending issues. Closing.