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 Dev (Build nbms-and-javadoc-11072-on-20130604) VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11 OS: Windows 7 User Comments: stefan79: After Intial-Scann the OOE occured Stacktrace: java.lang.OutOfMemoryError: GC overhead limit exceeded at java.util.Arrays.copyOfRange(Arrays.java:2694) at java.lang.String.<init>(String.java:203) at java.lang.String.substring(String.java:1913) 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 135301 [details] stacktrace
Heap-Dump was uploaded to Hudson: http://deadlock.netbeans.org/hudson/job/upload/244/
error occurred while parsing a really long java file(s), the parser occupies most of the heap
(In reply to comment #2) > Heap-Dump was uploaded to Hudson: > http://deadlock.netbeans.org/hudson/job/upload/244/ The heap dump is already part of exception report - there is no need to upload it separately to deadlock.netbeans.org
Sadly, the ER heapdump appears corrupted; the heapdump file uploaded to deadlock is gone. Sorry, cannot analyze.
(In reply to Svata Dedic from comment #5) > Sadly, the ER heapdump appears corrupted; Please, use gzip -dc heapdump-674776.hprof.gz > heapdump-674776.hprof to extract the heap dump.
Tomas H.: thanks for the hint. gzip -dc works, the attachment is perhaps missing some checksum at the end; According to the thread dump / local variables: * Javac #1 is waiting in the queue as a deferred task from some parseWhenScanFinished(mime, task). Empty. * Javac #2 is suspended in parkWhileSuspended, keeps ~2500 types entered (3149 compiled). * Javac #3 is running in Editor Parsing Loop, 1698 types entered, ~290 input files. The total # of compilation units kept in memory corresponds to the two active instances of Javac. The suspended instance keeps 2500 + line number information. According to the profiler, the EndPosTableImpl in CompilationUnit retains really huge data, even in the suspended task. I suspect the profiler to report even tree sizes as part of retained size, but only the hashtable & integers from the larger files take ~200-500 KB for each of the file.
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=201149
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss