View previous topic :: View next topic |
Author |
Message |
Buge n00b


Joined: 29 Feb 2004 Posts: 60 Location: Bern, Switzerland
|
Posted: Mon Apr 26, 2004 2:38 pm Post subject: SCP & out of memory |
|
|
A friends is attempting to upload a file by scp to my webserver which is larger than the total available memory (ram + swap) on the machine. At some point in the upload process he receives an out of memory exception of some kind and the upload terminates.
I assume this means, that scp attempts to read in the entire file to memory first before writing it out to disk.
Is there any way to compensate for this? i.e. preferably that the file is written directly to disk.
Thanks in advance,
Buge |
|
Back to top |
|
 |
adaptr Watchman


Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon Apr 26, 2004 2:43 pm Post subject: Re: SCP & out of memory |
|
|
Buge wrote: | A friends is attempting to upload a file by scp to my webserver which is larger than the total available memory (ram + swap) on the machine. At some point in the upload process he receives an out of memory exception of some kind and the upload terminates.
I assume this means, that scp attempts to read in the entire file to memory first before writing it out to disk. |
I seriously doubt that this is the intended mode of operation.
You should start by debugging the copy by running ssh and/or scp in verbose(more verbose) mode or cranking up the logging level for either. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
 |
|