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 250817 - Slowness and OutOfMemoryError when selecting 100+ nodes
Summary: Slowness and OutOfMemoryError when selecting 100+ nodes
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Nodes (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
: 244543 248764 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-03-02 13:10 UTC by catalin
Modified: 2015-10-16 12:46 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 212425


Attachments
stacktrace (2.69 KB, text/plain)
2015-03-02 13:10 UTC, catalin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description catalin 2015-03-02 13:10:34 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b18
OS: Windows 7

User Comments:
catalin: Opened a new file

GUEST: I want to select some file (~300) in one folder.




Stacktrace: 
java.lang.OutOfMemoryError: GC overhead limit exceeded
   at java.util.Arrays.asList(Arrays.java:3800)
   at org.openide.util.lookup.InheritanceTree.arrayEn(InheritanceTree.java:1245)
   at org.openide.util.lookup.ArrayStorage.lookup(ArrayStorage.java:228)
   at org.openide.util.lookup.DelegatingStorage.lookup(DelegatingStorage.java:174)
   at org.openide.util.lookup.AbstractLookup$R.initItems(AbstractLookup.java:1158)
   at org.openide.util.lookup.AbstractLookup$R.allItemsWithoutBeforeLookup(AbstractLookup.java:1124)
Comment 1 catalin 2015-03-02 13:10:36 UTC
Created attachment 152320 [details]
stacktrace
Comment 2 Ondrej Vrabec 2015-03-06 14:00:23 UTC
*** Bug 244543 has been marked as a duplicate of this bug. ***
Comment 3 civime 2015-08-05 02:52:46 UTC
Through our investigation, we found that the following changes may induced this bug:
 
rank 	 revision	 suspicious value
1	a6b6e3cf36a4(http://hg.netbeans.org/main/rev/a6b6e3cf36a4)	0.9618226259880613
2	f9500015840d(http://hg.netbeans.org/main/rev/f9500015840d)	0.7046244311513263
3	dda70298f395(http://hg.netbeans.org/main/rev/dda70298f395)	0.5301974388139984
4	d0bc44447e65(http://hg.netbeans.org/main/rev/d0bc44447e65)	0.3964604939827527
5	8494397b0b0a(http://hg.netbeans.org/main/rev/8494397b0b0a)	0.3132575931906009
6	22d149a03944(http://hg.netbeans.org/main/rev/22d149a03944)	0.26266993469293815
7	f1d746e27248(http://hg.netbeans.org/main/rev/f1d746e27248)	0.20981678613016036
8	f143d26b5461(http://hg.netbeans.org/main/rev/f143d26b5461)	0.17181570097236046
9	7e0db11aadfd(http://hg.netbeans.org/main/rev/7e0db11aadfd)	0.14976544990118984
10	39a6cecbf6f7(http://hg.netbeans.org/main/rev/39a6cecbf6f7)	0.1340019749900846

Hope it is useful for fixing this bug. If so, please help us conduct this short survey  https://docs.google.com/forms/d/1roQYX1dHezcB97KQ_iTKEtadaVbzK6FpU-6aGxeUo6M :) Thanks very much!
Comment 4 Ondrej Vrabec 2015-09-23 10:43:36 UTC
The problem here is that nodes+lookups start firing events when someone's getting instances from nodes lookup. Fix could be:
1) NodeLookup.updateLookupAsCookiesAreChanged passes its own Executor when calling Lookup.setPairs
2) The executor collects events and fires them all in invokeLater
Comment 5 Jaroslav Havlin 2015-09-23 12:31:11 UTC
Fixed by Ondrej Vrabec in commit
http://hg.netbeans.org/core-main/rev/fd15d00453fa

Thank you for reporting.
Comment 6 Quality Engineering 2015-09-24 01:28:51 UTC
Integrated into 'main-silver', will be available in build *201509240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/fd15d00453fa
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #250817: Slowness and OutOfMemoryError when selecting 100+ nodes

Fix by Ondrej Vrabec.
Comment 7 Ondrej Vrabec 2015-10-16 12:46:58 UTC
*** Bug 248764 has been marked as a duplicate of this bug. ***