Topic "memory leaks and heavy CPU usage"

Author Message
antifumo
[View user's profile]

Joined: 2009-10-07
Posts: 2
Location: Lausanne
There seems to be a memory leak in WinSCP: when downloading large files from a server, the memory usage constantly increases in task manager (the same happens when downloading several medium sized files; perhaps also with small ones but difficult to detect in this case). From a memory usage under 20 MB in normal conditions (connected to server), the memory usage increases to several hundreds of MB, about 6 times the size of the transferred files during my tests. Also, the CPU is heavily used (around 100%). I tried with several servers, but they all run the same OpenSSH server software. Is this a bug, or something wrong with my configuration?

WinSCP versions tried: 4.1.9 (build 416) and 4.2.3 (build 494).
Session protocol = SSH-2
SSH implementation = OpenSSH_4.7p1 Debian-8ubuntu1.2
Encryption algorithm = aes
Compression = No (does the same with Yes)
File transfer protocol = SFTP-3

Used GUI, Commander mode.
OS: Windows XP, SP3
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
I haven't seen this problem with SFTP. Is the memory released once the transfer finishes? Or do you need to close WinSCP?
_________________
Martin Prikryl
antifumo
[View user's profile]

Joined: 2009-10-07
Posts: 2
Location: Lausanne
The memory is not released after the transfer. However, after trying to transfer the exact same file from the same server on another computer and seeing that there was no memory leak, I did some tests and finally found that in my configuration the logging was enabled on debug level 2 (I don't remember why I should have enabled this, maybe debugging something)... disabling this solved the problem. So, sorry for the bogus bug report Wink
AYss

Guest


I have similar problem. Although the memory seems to be handled OK, the CPU usage is 100% (on one core). This happens only while a file is being transferred. When download/upload ends, memory is released and CPU usage goes back to normal.

The system is Windows XP build 5.1.2600 (w/ SP3) fully patched.
The machine is Intel Xeon 3040 based Dell, @1.86GHz (2x CPUs) with 2GBs RAM

Below is transfer data:

Session protocol = SSH-2
SSH implementation = OpenSSH_5.1
Encryption algorithm = aes
Compression = No
File transfer protocol = SFTP-3
------------------------------------------------------------
Server host key fingerprint
ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
------------------------------------------------------------
Can change permissions = Yes
Can change owner/group = Yes
Can execute arbitrary command = No
Can create symlink/hardlink = Yes/No
Can lookup user groups = No
Can duplicate remote files = No
Can check available space = No
Can calculate file checksum = No
Native text (ASCII) mode transfers = No
------------------------------------------------------------
Additional information
The server supports these SFTP extensions:
posix-rename@openssh.com="1"

Regards,
AYss
dj44

Guest


Here the same problem.
server cpu to 100%, even when I just get the server list.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
dj44 wrote:
Here the same problem.
server cpu to 100%, even when I just get the server list.

Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License