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 247752 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Extbrowser (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-07 06:39 UTC by RoelS
Modified: 2015-03-12 14:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 212517


Attachments
stacktrace (1.52 KB, text/plain)
2014-10-07 06:39 UTC, RoelS
Details

Note You need to log in before you can comment on or make changes to this bug.
Description RoelS 2014-10-07 06:39:15 UTC
Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) Client VM, 24.60-b09, Java(TM) SE Runtime Environment, 1.7.0_60-b19
OS: Windows 7

User Comments:
RoelS: Just let it stay on overnight. The next day it's stuck. 
Happens more often too during the day, but only when it seems do be idle.




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at org.json.simple.parser.Yylex.<init>(Yylex.java:231)
   at org.json.simple.parser.JSONParser.<init>(JSONParser.java:34)
   at org.json.simple.JSONValue.parseWithException(JSONValue.java:77)
   at org.netbeans.modules.extbrowser.plugins.Message.parse(Message.java:113)
   at org.netbeans.modules.extbrowser.plugins.ExternalBrowserPlugin$BrowserPluginHandler.read(ExternalBrowserPlugin.java:303)
   at org.netbeans.modules.netserver.websocket.WebSocketHandler7.readDelegate(WebSocketHandler7.java:118)
Comment 1 RoelS 2014-10-07 06:39:16 UTC
Created attachment 149756 [details]
stacktrace
Comment 2 Jan Stola 2015-03-12 14:47:13 UTC
The heap dumps show around 300000 elements loaded by the inspected pages. We cannot do much when the inspected pages are that large. I have added a warning when the number of elements reaches 100000. This warning tells the user (s)he may run into OutOfMemoryError and suggests closing of the page/stopping of the page inspection.

Modified file: https://hg.netbeans.org/web-main/rev/6c82c8d42e2a