Solved

Windows Services recovery features -- Define failure.

Posted on 2004-04-28
1
591 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 Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
A big percent of today’s marketing activity is performed through the online environment. The marketing strategies that have existed a decade ago no longer relate to what’s happening today. We’re currently facing a revolutionary era, called the digit…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

737 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