Solved

Windows Services recovery features -- Define failure.

Posted on 2004-04-28
1
587 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now