Jump to content

How to stop/start a process as shown in Task Manager


Recommended Posts

telecomguy9
Posted

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.

Posted

What does the antivirus's vendor suggest? Do they have a fix? Acknowledge the problem?How about another AV until this one is fixed?

telecomguy9
Posted

We're going to work with them on it, but until we get a fix I want to just stop/restart the service/process if possible.

Posted

Hello,Why not tell the antivirus vendor you would like a script that stops and then restarts the service? They should know the names of the various components which make up their product and be able provide this very quickly, I would think. Then you could go ahead and automate it to periodically run hourly or at certain times of the day, et cetera.Regards,Aryeh Goretsky

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...