Solved

Windows Services recovery features -- Define failure.

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

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…
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

803 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