Solved

Windows Services recovery features -- Define failure.

Posted on 2004-04-28
1
592 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

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…
There is a lot to be said for protecting yourself and your accounts with 2 factor authentication.  I found to my own chagrin, that there is a big downside as well.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

729 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