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.
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)
Created attachment 151269 [details] stacktrace
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.
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...