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 254054 - OutOfMemoryError: GC overhead limit exceeded
Summary: OutOfMemoryError: GC overhead limit exceeded
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-01 19:21 UTC by kpatrick2
Modified: 2016-07-07 07:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 218914


Attachments
stacktrace (2.54 KB, text/plain)
2015-08-01 19:21 UTC, kpatrick2
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kpatrick2 2015-08-01 19:21:29 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b15
OS: Windows 8

User Comments:
kpatrick2: <Please provide a description of the problem or the steps to reproduce>




Stacktrace: 
java.lang.OutOfMemoryError: GC overhead limit exceeded
   at java.util.Arrays.copyOfRange(Arrays.java:0)
   at java.lang.StringBuffer.toString(StringBuffer.java:0)
   at java.net.URLStreamHandler.toExternalForm(URLStreamHandler.java:0)
   at java.net.URL.toExternalForm(URL.java:0)
   at org.netbeans.JarClassLoader$JarSource.getIdentifier(JarClassLoader.java:830)
   at org.netbeans.Archive.getData(Archive.java:190)
Comment 1 kpatrick2 2015-08-01 19:21:31 UTC
Created attachment 155109 [details]
stacktrace
Comment 2 Tomas Hurka 2015-09-09 16:57:35 UTC
OOME is caused by parsing large (36M) javascript file.
Comment 3 Petr Pisl 2015-09-10 08:50:23 UTC
The file is not parsed, but is lexed. There is created over 13 millions DefaultTokens from lexer. The lexing is processed even when the file is not opened. 

The initial signal comes from RepositoryUpdater, which ask for the Parser. The parser itself recognized that this file is so big and returns empty result. But then other features try to run (JsHints etc.) And some features requires TokenSequence and the file start to be lexed even if the file is not opened.
Comment 4 Petr Pisl 2015-09-10 09:17:30 UTC
I have add check into JsIndexer. So the indexer doesn't process such file at all now. But coloring is run still from csl - SemanticHighligter. There should be check whether to provide coloring for such big files.
Comment 5 Quality Engineering 2015-09-11 01:23:09 UTC
Integrated into 'main-silver', will be available in build *201509110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1c75ff698dbb
User: Petr Pisl <ppisl@netbeans.org>
Log: #254054 - OutOfMemoryError: GC overhead limit exceeded
Comment 6 Martin Balin 2016-07-07 07:26:20 UTC
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