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

Summary: OutOfMemoryError: GC overhead limit exceeded
Product: debugger Reporter: IrianR
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 209341
Attachments: stacktrace
values of AWTComponentInfo.name

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. ***