Hello all. I have a friend who has a SBS 2003 server and there’s a process, let’s call it process.exe, that needs to be stopped and restarted as often as its handles count reaches 50,000. What I’m trying to do is a band-aid fix until we permanently resolve the issue at which time we won’t need to stop/restart the service.
Anyway, if you go into Task Manager and add the Handles column you’ll see that each process uses a certain number of handles. We have one process where the handles increases constantly. In a 17 hour period it went from 14,000 (which is high to begin with) to nearly 200,000! I stopped/restarted the process by stopping/restarting the service in services.msc and that started it back at zero. Of course it’s doing the same thing as before where the handles count just keeps increasing, hence my desire to setup something so it will automatically stop/restart this process until we get the actual problem fixed. It’s important that we don’t just stop this service from running until we get it fixed because it’s related to the anti-virus software on the server.
I did try setting up an alert in Performance Monitor and tried to have it run a batch file that would stop the service, but that didn’t work because the process itself, process.exe, isn’t the service name or something like that. In other words when I opened a command prompt and typed net stop process.exe I got an error message stating it wouldn’t work because that’s not the name of the service. Perhaps if I could determine the actual name of the service this could work?
So does anyone know how to setup something that will cause the process or service to stop and then restart every time the handles reaches 50,000? We could possibly just setup a task to run every X number of hours if we can’t get this to work based on the number of handles being reached.