Hello,

Net::SFTP loads the whole file in memory. Take a look at this:
http://www.elpauer.org/index.php?p=213

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

-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to the amount of work, I usually need 10 days to answer)


Quoting John Tajima <manjiro / gmail.com>:

> Hi,
> 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:
>
> ie:
>
>   sftp.put_file src, dest
>
>
> Thanks,
> John.
>
> --
> Posted via http://www.ruby-forum.com/.
>
>