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.
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)
Created attachment 160121 [details] stacktrace
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.