<div>When I try to send a large binary (13 MB) through an SSH channel using "ssh:connection_send()", my VM freezes with a CPU pinned and I am forced to kill it. One time it managed to get this message out:</div>
<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>Crash dump was written to: erl_crash.dump</div></div><div><div>eheap_alloc: Cannot allocate 912262800 bytes of memory (of type "heap").</div>
</div><div><div><br></div></div><div><div><br></div></div><div><div>Abnormal termination</div></div></blockquote><div><br></div><div><br></div><div><br></div><div>Sending the binary in smaller chunks (4kB) also fails. I get to send about 50 such chunks before I get {error, channel_closed}, but a few moments later the VM freezes with pinned CPU. I am continuing to investigate, but would happily take hints if anyone can provide them.</div>
<div><br></div><div><br></div><div>I am running R15B01 on Windows.</div><div><br></div><div><br></div><div>My use case is to push a firmware image from my Erlang app to a network appliance running OpenSSH. Similar to...</div>
<div><br></div><div>cat firmware.bin | ssh <a href="mailto:someuser@1.2.3.4">someuser@1.2.3.4</a> 'cat >/temp/firmware.bin'</div><div><br></div><div><br></div><div>Thanks,</div><div>Dan.</div><div><br></div><div>
<br></div><div><br></div><div><br></div><div><br></div><div><br></div>