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 256589 - OutOfMemoryError: GC overhead limit exceeded
Summary: OutOfMemoryError: GC overhead limit exceeded
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
: 257076 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-11-13 15:15 UTC by Exceptions Reporter
Modified: 2016-04-20 16:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 221148


Attachments
stacktrace (2.91 KB, text/plain)
2015-11-13 15:15 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2015-11-13 15:15:05 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.60-b09, Java(TM) SE Runtime Environment, 1.7.0_60-b19
OS: Windows 7

User Comments:
GUEST: Working as normal




Stacktrace: 
java.lang.OutOfMemoryError: GC overhead limit exceeded
   at java.util.Arrays.copyOf(Arrays.java:2219)
   at java.util.concurrent.CopyOnWriteArrayList.add(CopyOnWriteArrayList.java:420)
   at org.netbeans.modules.remote.impl.fs.RemoteFileObjectBase.addFileChangeListener(RemoteFileObjectBase.java:205)
   at org.netbeans.modules.remote.impl.fs.RemoteFileObjectFactory.addFileChangeListener(RemoteFileObjectFactory.java:305)
   at org.netbeans.modules.remote.impl.fs.RemoteLinkBase.initListeners(RemoteLinkBase.java:82)
   at org.netbeans.modules.remote.impl.fs.RemoteFileObjectFactory.createRemoteLinkChild(RemoteFileObjectFactory.java:243)
Comment 1 Exceptions Reporter 2015-11-13 15:15:07 UTC
Created attachment 157328 [details]
stacktrace
Comment 2 Alexander Simon 2015-11-13 15:57:18 UTC
700Mb in 384413 instances of org.netbeans.modules.remote.impl.fs.RemotePlainFile
Comment 3 Vladimir Kvashin 2016-03-17 20:54:02 UTC
This is again connected with link children.
This is also connected with massive FileDeleted events processing.
I already now at least some reasons. Fixing them, in conjunction with recent link related fixes should fix the issue.
Comment 4 Vladimir Kvashin 2016-03-17 21:33:31 UTC
*** Bug 257076 has been marked as a duplicate of this bug. ***
Comment 5 Vladimir Kvashin 2016-03-17 21:34:44 UTC
The issue 257076 that is marked as a duplicate also contains an interesting heap dump data. But root cause is the same.
Comment 6 Quality Engineering 2016-03-19 03:08:20 UTC
Integrated into 'main-silver', will be available in build *201603190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8aeed7ae6b8e
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixing #256589 - OutOfMemoryError: GC overhead limit exceeded
Comment 7 Quality Engineering 2016-03-20 02:47:26 UTC
Integrated into 'main-silver', will be available in build *201603200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/69a9316ec340
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: test for #256589, #258298
Comment 8 Vladimir Kvashin 2016-04-15 16:59:57 UTC
verified in builds on enum server
Comment 9 Alexander Simon 2016-04-20 16:00:15 UTC
Verified in NetBeans 8.1 with latest updates.