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.
This issue was reported manually by thurka. It already has 1 duplicates Build: NetBeans IDE 8.0.2 (Build 201408251540) VM: Java HotSpot(TM) 64-Bit Server VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13 OS: Windows 7 User Comments: GUEST: i was debugging a java web project on tomcat Stacktrace: java.lang.OutOfMemoryError: GC overhead limit exceeded at java.util.Arrays.copyOfRange(Arrays.java:3658) at java.lang.String.<init>(String.java:201) at java.lang.String.substring(String.java:1956) at java.util.StringTokenizer.nextToken(StringTokenizer.java:352) at java.util.StringTokenizer.nextElement(StringTokenizer.java:407) at org.openide.util.Enumerations$FilEn.hasMoreElements(Enumerations.java:560)
Created attachment 155181 [details] stacktrace
Heap dump is full of javac instances. There are 12 instances of Symtab, 10 of them are held from "Debugger Context Scanning" request processor. It looks like 'scanningProcessor' is not needed and ParserManager.parse() can invoked directly.
There are several Source objects held by tasks, that are scheduled for parsing. Instead of holding Source objects created by Source.create(fo), we can hold the FileObjects only and create them right before the parsing inside the RP task.
Fixed by changeset: 290712:1bcb8c08bc2f http://hg.netbeans.org/core-main/rev/1bcb8c08bc2f
Integrated into 'main-silver', will be available in build *201508130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/1bcb8c08bc2f User: mentlicher@netbeans.org Log: #254145: Create the Source object right before it's needed.