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 258253 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-05 07:23 UTC by Exceptions Reporter
Modified: 2016-05-21 12:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 222866


Attachments
stacktrace (1.66 KB, text/plain)
2016-03-05 07:23 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2016-03-05 07:23:41 UTC
This bug was originally marked as duplicate of bug 253291, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.65-b01, Java(TM) SE Runtime Environment, 1.8.0_65-b17
OS: Windows 10

User Comments:
GUEST: Only start Netbeans ide..




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(Arrays.java:3332)
   at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137)
   at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121)
   at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:421)
   at java.lang.StringBuffer.append(StringBuffer.java:272)
   at org.json.simple.JSONArray.toJSONString(JSONArray.java:91)
Comment 1 Exceptions Reporter 2016-03-05 07:23:42 UTC
Created attachment 158751 [details]
stacktrace
Comment 2 Martin Entlicher 2016-05-21 12:50:23 UTC
One single response JSON object has 441 MB. This is a defect of the protocol that it does not have any limits for the message size.
The affected class is: org.netbeans.modules.web.webkit.debugging.spi.Response