Forum: Ruby Net::SFTP transferring 200mb+ file problems

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ba5298f5e9b849efa2a9292577c3609b?d=identicon&s=25 John Ta (ottawaronin)
on 2007-01-17 16:19
I'm using the Net::SSH and Net::SFTP gems.

One part of my application transfers a very large file (200-300mb) via
sftp. When this file get's transferred, I notice that the memory usage
balloons to 400M!

Is this normal?!

My code is very straightforward:

I call the put_file method:


  sftp.put_file src, dest

5acffb3fde70f28b9eab13eb78a25e63?d=identicon&s=25 Pau Garcia i Quiles (Guest)
on 2007-01-17 22:59
(Received via mailing list)

Net::SFTP loads the whole file in memory. Take a look at this:

A fix is needed but the author says he has no time.

Pau Garcia i Quiles
(Due to the amount of work, I usually need 10 days to answer)

Quoting John Tajima <>:
This topic is locked and can not be replied to.