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.

Bug 245839 - OutOfMemoryError: GC overhead limit exceeded
Summary: OutOfMemoryError: GC overhead limit exceeded
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-21 10:19 UTC by Rachel_Greenham
Modified: 2015-09-11 13:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 210800


Attachments
stacktrace (1.42 KB, text/plain)
2014-07-21 10:19 UTC, Rachel_Greenham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rachel_Greenham 2014-07-21 10:19:48 UTC
Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.11-b03, Java(TM) SE Runtime Environment, 1.8.0_11-b12
OS: Mac OS X

User Comments:
Rachel_Greenham: I happened to leave it running overnight. The following morning, it was mostly unresponsive (attempts to interact mostly just resulted in a short-lived beachball). I tried quitting (normally); after a while all the window/menu disappeared and there was no apparent sign of it except in the Force Quit dialogue. (I forgot to check activity monitor)

Eventually hit force-quit.




Stacktrace: 
java.lang.OutOfMemoryError: GC overhead limit exceeded
   at java.util.HashMap.resize(HashMap.java:703)
   at java.util.HashMap.putVal(HashMap.java:628)
   at java.util.HashMap.put(HashMap.java:611)
   at java.util.HashSet.add(HashSet.java:219)
   at java.util.AbstractCollection.addAll(AbstractCollection.java:344)
   at java.util.LinkedHashSet.<init>(LinkedHashSet.java:169)
Comment 1 Rachel_Greenham 2014-07-21 10:19:50 UTC
Created attachment 148171 [details]
stacktrace
Comment 2 Ondrej Vrabec 2015-03-04 14:32:26 UTC
org.netbeans.core.startup.preferences.NbPreferences$UserPreferences#403 1,019,113,627
one pref node occupies over 1G :-). Fanis, what good is NbPreferences.cachedKeyValues? It contains over 1mil items. If you really need a history, can it be a limited one?
Maven indexer called Prefs.put() many times over user's session and NbPreferences just collected all of those values.
Comment 3 Theofanis Oikonomou 2015-09-11 13:09:02 UTC
This should be fixed by http://hg.netbeans.org/main-silver/rev/6ad45f1e33cb. Please try a latest build and reopen if it still happens for you. Thank you