Ad Widget

Collapse

How to monitor hang stat of a Windows service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tahir.bhatti
    Member
    • Dec 2006
    • 56

    #1

    How to monitor hang stat of a Windows service

    Hello,
    We are facing a problem that our Windows 2008 R2 server stopped creating new sessions. I tried to monitor the mstsc service as service monitoring, by creating an item in the Windows template. It was generating two values i-e, 1 and 255. Any one can guide how to monitor hang stat of a service.

    Regards;
  • steeladept
    Member
    • Sep 2018
    • 69

    #2
    Monitoring Hung status is difficult or impossible for pretty much any monitoring solution. The very definition of HUNG means that the service, by all appearances, is running, yet it is not producing output as expected. If you have a way to monitor your input and timing for completion, you could then do a calculated solution to claim it is hung after the timing is breached, but even then, there is no way to know if it is just slow, or truly hung. Perhaps, if you own the service code, you can have it generate an output periodically, so you can test that output. Call it a status output, for example. Otherwise, if the programmer is not willing to provide that or another way to monitor for hung condition, you are kind of stuck.

    Perhaps you could create a service that you feed it to that triggers a start, then you pass through the packet. On the output side, you reverse it with some sort of a timing loop, serial queue or other method of verifying input to output, then if there is no output it can trigger as hung?!? Best I can recommend anyway.

    Comment

    • tahir.bhatti
      Member
      • Dec 2006
      • 56

      #3
      Thanks a lot for your recommendations.

      Comment

      Working...