System.ServiceProcess - Is the service "hung"?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using the System.ServiceProcess methods to look at the status of several
services. It will tell me if it is Stopped, Started, etc. But how do I tell
if a service is Not Responding, or Hung?

TIA...
 
Scott,
But how do I tell
if a service is Not Responding, or Hung?
You cannot per se.

What I do is have Performance Counters that I monitor, if the counters are
moving when they are not suppose to or not moving when they are suppose to,
then the service is more then likely hung...

I also have EventLog messages that indicate progress...

Both PerformanceCounter & EventLog are located in the System.Diagnostics
namespace.

The added advantage of adding PerformanceCounters is you can monitor how
well or poorly your app is running...

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top