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 249518 - OutOfMemoryError: GC overhead limit exceeded
Summary: OutOfMemoryError: GC overhead limit exceeded
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-24 15:11 UTC by gabriel.sallum
Modified: 2015-09-28 12:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 208622


Attachments
stacktrace (394 bytes, text/plain)
2014-12-24 15:11 UTC, gabriel.sallum
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gabriel.sallum 2014-12-24 15:11:55 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: OpenJDK 64-Bit Server VM, 24.65-b04, OpenJDK Runtime Environment, 1.7.0_71-mockbuild_2014_10_15_17_02-b00
OS: Linux

User Comments:
GUEST: java took 245% CPU

gabriel.sallum: Development machine with quad-i7 with 32 gig of ram. (out of ram? no. the whole system was cosuming 3.3 gigs at the time)

new project from existing source -> after the code opened, the parsing project for autocomplete started taking all 8 cpus and after a while the cpu time was more than 90% and the main std-out (I start the ide from shell) spit the values below.

Although the main UI was unresponsive, I noticed background threads, so I tought to let them finish. It ran for a good part of a work day, I went home it was still going and then I came back this morning, UI still locked, but the bg threads died. 


[sallumg1@asset-7266 ~]$ ./start_ide.sh


java.lang.OutOfMemoryError: GC overhead limit exceeded
Dumping heap to /work/netbeans/var/log/heapdump.hprof ...
Heap dump file created [1372720298 bytes in 12.391 secs]

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "CndTextIndexImpl saver"

Exception: java.lang.OutOfMemoryError thrown from the




Stacktrace: 
java.lang.OutOfMemoryError: GC overhead limit exceeded
   at sun.awt.X11.XToolkit.schedule(XToolkit.java:1804)
   at sun.awt.X11.XClipboard$CheckChangeTimerTask.run(XClipboard.java:180)
   at sun.awt.X11.XToolkit.callTimeoutTasks(XToolkit.java:1861)
   at sun.awt.X11.XToolkit.run(XToolkit.java:534)
   at sun.awt.X11.XToolkit.run(XToolkit.java:505)
   at java.lang.Thread.run(Thread.java:745)
Comment 1 gabriel.sallum 2014-12-24 15:11:57 UTC
Created attachment 151269 [details]
stacktrace
Comment 2 Tomas Hurka 2015-02-03 14:38:22 UTC
There is a lot of classes from org.netbeans.modules.cnd.modelimpl and org.netbeans.modules.cnd.apt on the top of the class histogram. Reassigning to cod for further evaluation.
Comment 3 Vladimir Kvashin 2015-09-28 12:45:51 UTC
As I see from the heap dump, your project consists of about 54000 source and header files. Default NetBeans heap size setting (which is 1 gig in your case) is definitely too low.

Please use -J-Xmx command line parameter to extend java heap limit.

I would recommend to start from J-Xmx4g with such a large project and then extend it further if need.

We can't make default 1G working with 54K-files projects - sorry...