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 244108 - OutOfMemoryError: GC overhead limit exceeded
Summary: OutOfMemoryError: GC overhead limit exceeded
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 244112 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-04-27 15:24 UTC by IrianR
Modified: 2014-07-30 15:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 209341


Attachments
stacktrace (3.25 KB, text/plain)
2014-04-27 15:24 UTC, IrianR
Details
values of AWTComponentInfo.name (5.40 KB, image/png)
2014-07-16 09:01 UTC, Ondrej Vrabec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description IrianR 2014-04-27 15:24:14 UTC
Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows 7

User Comments:
IrianR: Test for Bug 241154 on 8.0 Patch 1




Stacktrace: 
java.lang.OutOfMemoryError: GC overhead limit exceeded
   at java.util.HashMap.createEntry(HashMap.java:901)
   at java.util.HashMap.addEntry(HashMap.java:888)
   at java.util.HashMap.put(HashMap.java:509)
   at com.sun.tools.jdi.ReferenceTypeImpl.addToMethodMap(ReferenceTypeImpl.java:514)
   at com.sun.tools.jdi.ClassTypeImpl.addVisibleMethods(ClassTypeImpl.java:403)
   at com.sun.tools.jdi.ClassTypeImpl.addVisibleMethods(ClassTypeImpl.java:400)
Comment 1 IrianR 2014-04-27 15:24:15 UTC
Created attachment 146969 [details]
stacktrace
Comment 2 Ondrej Vrabec 2014-07-16 09:01:41 UTC
Created attachment 148081 [details]
values of AWTComponentInfo.name

lots of RemoteAWTScreenshot$AWTComponentInfo (about 10 000?) which might not be a problem but each one of them contains a field ($name) containing a string with size differing from 100kB to 1MB. Not sure what the field is used for but it contains a lot of probably unusable data (looks like a result from toString):
see the screenshot...

Maybe debugger could set the field to just originalString.subString(0, 20) or something.
Comment 3 Martin Entlicher 2014-07-24 13:06:57 UTC
Fixed by changeset:   276509:e089b04dd305
http://hg.netbeans.org/core-main/rev/e089b04dd305
Comment 4 Quality Engineering 2014-07-28 05:22:46 UTC
Integrated into 'main-silver', will be available in build *201407280405* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e089b04dd305
User: mentlicher@netbeans.org
Log: #244108: Too large name fields were held.
Comment 5 Martin Entlicher 2014-07-30 15:19:29 UTC
*** Bug 244112 has been marked as a duplicate of this bug. ***