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 261523

Summary: OutOfMemoryError: GC overhead limit exceeded
Product: cnd Reporter: Exceptions Reporter <exceptions_reporter>
Component: DebuggerAssignee: Alexander Simon <alexvsimon>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 224022
Attachments: stacktrace

Description Exceptions Reporter 2016-05-13 07:15:48 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Windows 7

User Comments:
GUEST: it just sucks




Stacktrace: 
java.lang.OutOfMemoryError: GC overhead limit exceeded
   at org.netbeans.modules.cnd.makeproject.api.configurations.BasicCompilerConfiguration.<init>(BasicCompilerConfiguration.java:120)
   at org.netbeans.modules.cnd.makeproject.api.configurations.CCCCompilerConfiguration.<init>(CCCCompilerConfiguration.java:114)
   at org.netbeans.modules.cnd.makeproject.api.configurations.CCCompilerConfiguration.<init>(CCCompilerConfiguration.java:87)
   at org.netbeans.modules.cnd.makeproject.api.configurations.FolderConfiguration.<init>(FolderConfiguration.java:70)
   at org.netbeans.modules.cnd.makeproject.api.configurations.FolderConfiguration.copy(FolderConfiguration.java:186)
   at org.netbeans.modules.cnd.makeproject.api.configurations.MakeConfiguration.copy(MakeConfiguration.java:676)
Comment 1 Exceptions Reporter 2016-05-13 07:15:50 UTC
Created attachment 159758 [details]
stacktrace
Comment 2 Vladimir Kvashin 2016-05-13 19:18:42 UTC
0.5G (retained) in 188K instances of FolderConfiguration

The project seems to be under SVN.
It's probably mixed or simple remote, at least remote is present, but source files are local.
Comment 3 Alexander Simon 2016-05-16 07:28:07 UTC
About 180 Mb in 6 cloned MakeConfiguration in class:
org.netbeans.modules.cnd.debugger.common2.debugger.debugtarget.DebugTarget
Comment 4 Alexander Simon 2016-08-31 22:04:41 UTC
Debugger holds 6 cloned configurations.
Problem is in debugger.
Comment 5 Alexander Simon 2016-09-01 08:31:47 UTC
I looked on the same problem and reduced size of MakeConfiguration in about 2 times (see bug #257744).

But problem in memory leak in debugger. Debugger do not release a cloned MakeConfiguration (or keep extra configurations).
Comment 6 Alexander Simon 2016-09-01 13:08:07 UTC
The change set
Changeset: http://hg.netbeans.org/main-silver/rev/72dc88d19f7f
should fix the issue.