Solved

Windows Services recovery features -- Define failure.

Posted on 2004-04-28
1
590 Views
Last Modified: 2010-05-18
On Win2K, on the Services plugin you can bring up properties of each service.  There's a Recovery tab.  It allows you to set up what will happen after failures.

Please define precisely what "failure" means in this context.  Does it mean just that the service threw an exception, or does the OS do some kind of active monitoring of particular performance characteristics of the service?  What are all the different things that can cause a "failure"?

Is there anything I need to do in my Windows Service code to enable or support those recovery features?

I'd love to get some links to documents (Microsoft and other) that go into this in detail.  I'd also like some detailed personal feedback from someone who has direct experience in this area.

( For those whoe aren't familiar you can find the Services plugin like this: Start / Settings / Control Panel / Administrative Tools / Services. )

Context:  I'm currently writing a couple Windows Services using Visual Studio.NET 2003 (.NET Framework 1.1).  I'd like to make them reliable, and also configure the OS to monitor them for additional reliability.
0
Comment
Question by:farsight
1 Comment
 
LVL 16

Accepted Solution

by:
JamesDS earned 250 total points
ID: 10947088
farsight
I am not a developer, but here goes...

A service failure is anything that causes it to stop responding to the rest of the OS, I believe the limited code required to support this feature is built into the compile mechanism in VB. Lost of things cause failures, but typically, unhandled exceptions, buffer overflows and low quality memory handling (mostly in C), IE low quality code. Microsoft did a book called Code Complete that will cover a great deal of what you need there.

You can incorporate WMI counters into your sofware that can be monitored with PERFMON.EXE

You need to repost your question in the development forums on EE to get a more "developer based" perspective and better/more detailed information.

Cheers

JamesDS
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Read our guide on how to survive being on-call.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question