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 245492 - OutOfMemoryError: GC overhead limit exceeded
Summary: OutOfMemoryError: GC overhead limit exceeded
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: JSON (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-08 14:46 UTC by Exceptions Reporter
Modified: 2015-09-07 19:10 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 210606


Attachments
stacktrace (1.21 KB, text/plain)
2014-07-08 14:46 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-07-08 14:46:32 UTC
This issue was reported manually by jhavlin.
It already has 1 duplicates 


Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b56, Java(TM) SE Runtime Environment, 1.7.0_40-b43
OS: Mac OS X

User Comments:
GUEST: Trying to load a large JSON file for a test case.




Stacktrace: 
java.lang.OutOfMemoryError: GC overhead limit exceeded
   at java.lang.String.toLowerCase(String.java:2439)
   at org.netbeans.modules.masterfs.filebasedfs.utils.Utils.hashCode(Utils.java:100)
   at org.netbeans.modules.masterfs.filebasedfs.naming.NamingFactory.createID(NamingFactory.java:206)
   at org.netbeans.modules.masterfs.filebasedfs.naming.NamingFactory.registerInstanceOfFileNaming(NamingFactory.java:257)
   at org.netbeans.modules.masterfs.filebasedfs.naming.NamingFactory.fromFile(NamingFactory.java:116)
   at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport$2IOJob.run(ChildrenSupport.java:263)
Comment 1 Exceptions Reporter 2014-07-08 14:46:34 UTC
Created attachment 147940 [details]
stacktrace
Comment 2 Jaroslav Havlin 2014-07-08 14:57:04 UTC
The heap dump contains:
 - 2.6M instances of o.n.m.editor.lib2.highlighting.HighlightItem
 - 1.0M instances of o.n.lib.lexer.token.DefaultToken
 - 900k instances of o.n.m.javascript2.editor.lexer.JsonColoringLexer$LexerState

Reassigning to javascript/JSON. Please evaluate this issue, thank you.
Comment 3 Petr Hejl 2014-07-14 11:23:12 UTC
PetreP there should be some limitation for the size of the file? Was it in place for the mentioned build?

Reporter do yo have a test case (test file)?
Comment 4 Petr Pisl 2015-09-07 19:10:38 UTC
The big JSON files are not parsed anymore.