473,398 Members | 2,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Windows Service stops in its tracks, halts; no exception, no explanation

Howdy All,

I have a Windows Service that often stops in its tracks with no
exception and no explanation on our QA system.

During testing on the development machine, it can handle any workload,
and complete with no problems. Even during testing on another test
machine, it can handle any workload, and complete with no problems.
This behavior has been tested multiple times.

However, when installed on our QA system, it often stops with no
exception and no explanation. This behavior has recurred multiple
times, albeit at different points in the code each time. It never
recurs at the same point twice.

I have seen this behavior if it were trying to write an event log
message when the Event Log is full. However, that is not the case here.
1) It is not trying to write any event log messages. 2) The Event Log
is not full.

I have also seen this behavior when certain errors occur outside of an
error handler, such as trying to access a nonexistent file. However,
again, that is not the case here. 1) All code that could possibly cause
an error is within an error handler. Further, there is one primary
error handler in the timer event that the service operates with. If any
error were to occur, it should bubble up to this error handler if not
caught by any other error handler. 2) I am not trying to access a
nonexistent file or any other code that I have seen cause unexplained
halting.

Whenever I have seen service halting before, such as when the Event Log
is full, I can use the Task Manager to view running processes. Doing so
reveals that the memory footprint of the halted service process is
almost 0. However, in this case, the memory footprint is normal.

I should add that the QA machine where this halting behavior occurs is
severely bogged down with other processes. Specifically, it is running
SQL Server, and the SQL Server process is consuming 98% or 99% of the
processor. It seems like no other processes are being given a time
slice. The Windows UI is barely responsive, but it eventually does
respond to mouse and keyboard commands.

In production, it is unlikely that the service machine or the database
machine will be this highly utilized. However, I cannot be certain of
this, and without being able to catch this unexplained error, I cannot
make the service degrade gracefully. This is preventing the QA team
from signing off, which is preventing the application from being put
into production.

Can anyone shed any light on this topic? Why would a Windows Service
halt for no reason and not throw an exception?

Thanks in advance,
Matthew

Nov 22 '05 #1
2 2541
"MatthewRoberts" <mr*********@hotmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Can anyone shed any light on this topic? Why would a Windows Service
halt for no reason and not throw an exception?


I don't know that it is related to your problem but I can tell you that
there are cases where the stack is exhausted to such an extent that there is
none for the exception handler to use. In that case you get nothing.

Regards,
Will
Nov 22 '05 #2
Is there some way to check if the stack is exhausted, and/or clear the
stack?

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: stewert gallington | last post by:
Im running some pretty straight forward code. Mainly database access (SQL7) doing inserts and sometimes when the script runs it halts the IIS service dead in its tracks. Before the page can even...
2
by: MatthewRoberts | last post by:
Howdy All, I have a Windows Service that often stops in its tracks with no exception and no explanation on our QA system. During testing on the development machine, it can handle any workload,...
12
by: JSheble | last post by:
I've written a Windows Service using C#, but I cannot seem to figure out how to cancel or prevent the service from starting under certain conditions. For example, in the OnStart I read in some...
3
by: Doug Bailey | last post by:
I am trying to control a Windows Service via a Web Service interface. (I am developing in .NET2003) I am using the ServiceController object which allows me to read the state of the services with...
3
by: John Fred | last post by:
Salve, I have write a service Windows for the remoting. I have a dll Server (OLD COM+) For Configure DLL Server I user Config File Es. <configuration> <system.runtime.remoting>...
2
by: Chris Dunaway | last post by:
I am attempting to use the AppDomain.UnhandledException event in a Windows Forms app and also in a Windows Service. But the event doesn't seem to be called. In a Windows Forms app, the event IS...
2
by: Trevor | last post by:
Argh! This problem is driving me nuts! Can you help? In November of 2003, I installed a web service on Windows Server 2003 built in VB.NET for v1.1.4322 of the framework. It contains a timer...
2
by: Shawn Meyer | last post by:
Hello, I have a windows service. When the onstart fires, my app creates two threads. The first is a processing thread and the second is a watcher that makes sure the everything is ok with the...
3
by: Niron kag | last post by:
Hi, I wrote a windows service in c# in .NET 1.1 and SQL Stored Procedures, and I run it on Microsoft windows server 2003 service pack 1. The service works every 10 minutes and pass data between...
5
by: sonali_reddy123 | last post by:
Hello all, I am trying to develop an application which will run as a windows service. The application should have Normal options available with service like start, stop and pause but along...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.