If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Sockets dying with heavy memory use

I have an app that runs a server (CLI) on a Windows 2008 Server. It runs a standard listen socket with max sockets and works great until someone uses a large number of system resources (Remote Desktop in, Team Source Explorer, etc.). Then the app stops responding on the port, but still is running. I can run it as either a Windows Service or as a Console App, but the problem is still there. Sometimes it calls the accept() then dies right away.
Anyone with any ideas why this is happening? This is a license server for a product, and we cannot have this dying all of the time.
Thank you.
-Erik

Re: Sockets dying with heavy memory use

Re: Sockets dying with heavy memory use

Have you checked to see if the program is leaking memory? I had a .net app that was leaking memory somehow, through the socket construct. When it ran out of resources, it would do the same thing and die on accept. I think that this is just a symptom of whatever malady is eating you memory. Have a look in the system resources with Task Manager. Look at your process, and watch the memory consumption, does it fluctuate? Then connect to it with a remote session and see what happens. Is it possible to remote debug this app?