memory leaks and heavy CPU usage

Advertisement

antifumo
Joined:
Posts:
2
Location:
Lausanne

memory leaks and heavy CPU usage

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: memory leaks and heavy CPU usage

I haven't seen this problem with SFTP. Is the memory released once the transfer finishes? Or do you need to close WinSCP?

Reply with quote

antifumo

Re: memory leaks and heavy CPU usage

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 ;-)

Reply with quote

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
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.

Reply with quote

Advertisement

You can post new topics in this forum