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 262523 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 8.0.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-22 06:39 UTC by Exceptions Reporter
Modified: 2018-04-22 23:38 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 224746


Attachments
stacktrace (592 bytes, text/plain)
2016-06-22 06:39 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-06-22 06:39:44 UTC
This issue was reported manually by thurka.
It already has 7 duplicates 


Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.73-b02, Java(TM) SE Runtime Environment, 1.8.0_73-b02
OS: Linux

User Comments:
GUEST: ???

crosati: -

crosati: -

crosati: -

GUEST: After some hours running, the computer got frozen.

GUEST: It happend a lot of hours working.

GUEST: left ide running in a remote debug session, it was hung when I returned




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(Arrays.java:3236)
   at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118)
   at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
   at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153)
   at org.apache.tools.ant.util.TeeOutputStream.write(TeeOutputStream.java:81)
   at com.jcraft.jsch.IO.put(IO.java:64)
Comment 1 Exceptions Reporter 2016-06-22 06:39:45 UTC
Created attachment 160121 [details]
stacktrace
Comment 2 Tomas Hurka 2016-06-22 06:48:46 UTC
This OOME is caused by bug in org.apache.tools.ant.taskdefs.optional.ssh.SSHExec. Its executeCommand() method holds _compltele_ output from ssh session in the  ByteArrayOutputStream. It probably cannot be fixed in NetBeans, it needs to be fixed in ant itself.