WinSCP.exe*32 Processes in task manager

Advertisement

sameer.softyhcl
Joined:
Posts:
1
Location:
Mumbai

WinSCP.exe*32 Processes in task manager

Hi,

I am using WinSCP.dll (File Version: 1.0.1.869, Product Version:5.0.9.0) in C# for downloading files from SFTP server. My application is a windows service which keep on downloading files from FTP server. The application works for 2-3 hours, then the Windows Service stops automatically.

To make the issue worst, the WinSCP.exe*32 Process remains as it is in Task Manager though the my Windows Service stopped. So everytime I manually start my service, the previous WinSCP.exe*32 process remains as it is.

If I do this 12-13 times in a day, I found my task manager is piled up with 12/13 WinSCP.exe*32 processes and if the count goes upto 30-40, WinSCP stops connecting to the FTP Server completely.

Please suggest some solution.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,507
Location:
Prague, Czechia

Re: WinSCP.exe*32 Processes in task manager

What does it mean "Windows Service stops automatically"? Is it stopped grafully or does it crash? Is Session.Dispose called? What is your version of Windows?

Reply with quote

pmsw
Guest

Got the same problem. My windows version is windows server 2008r2. Have tried different versions of wincsp. For every time wincsp is executed a process is started in the tastkmanager but not stopped or killed. Finally the service doesn't work anymore at all. immediately after the processes are killed manually the windows service work as normal.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,507
Location:
Prague, Czechia

pmsw wrote:

Got the same problem. My windows version is windows server 2008r2. Have tried different versions of wincsp. For every time wincsp is executed a process is started in the tastkmanager but not stopped or killed. Finally the service doesn't work anymore at all. immediately after the processes are killed manually the windows service work as normal.
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

Reply with quote

Advertisement

zaus
Joined:
Posts:
2

Resolution?

Did you figure out the problem/solution? I think I'm getting the same issue. It seems like every so often my app gets a "normal" FTP error, and maybe I'm not properly disposing/closing the session when that happens so the executables keep piling up?

For now I went with the "nuclear option" by adding to my nightly cleanup script something to close all the zombie exes:
taskkill /F /IM WinSCP.exe

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,507
Location:
Prague, Czechia

Re: Resolution?

zaus wrote:

Did you figure out the problem/solution? I think I'm getting the same issue. It seems like every so often my app gets a "normal" FTP error, and maybe I'm not properly disposing/closing the session when that happens so the executables keep piling up?
Please attach a full debug log file showing the problem (using the latest version of WinSCP).

To generate the session log file, set Session.DebugLogPath. Submit the log with your post as an attachment. If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Advertisement

You can post new topics in this forum