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 2 2561
"MatthewRoberts " <mr*********@ho tmail.com> wrote in message
news:11******** *************@f 14g2000cwb.goog legroups.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
Is there some way to check if the stack is exhausted, and/or clear the
stack? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
finish loading.
the error seems to be caused when i introduced this section of code into the
page.
sub SaveIDC( rec2Save )
|
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,
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.
|
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 configuration settings, and if
anything is either empty, or invalid (such as a DB DataSource string or a
missing diredtory, etccc) I don't want the servie to start. So how would I
cancel the start up?
|
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 no problems.
However, I am not able to start or stop the service unless I go
through the process of impersonating an administrative user. (See
MSDN KB 306158)
Since it appears to be a privilege issue, I set the folders in IIS
holding the Web...
|
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>
<application>
| |
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 called but only if I run the app
through the IDE. If run standalone (release or debug build, it doesn't
matter), the event handler is never called. In the Windows Forms app,
I changed it to use the Application.ThreadException event and that...
|
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
(System.Timers.Timer) which has an interval of 24 hours. Actually, it reads
a time like 2AM out of the config file, and calculates the time between the
start of the service to 2AM, and sets the timer. When the timer expires, it
re-reads the...
|
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 first thread. When a problem is
detected the second (watcher) thread stops the processing thread and then
throws an exception. This exception does not stop the service like I would
think.
My question is, what is the best way for the watcher...
|
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 SQL tables.
The service works well for about 2 hours.
After about 2 hours the service stops.
When I look at the event viewer I see the message:
Faulting application <my service name>.exe, version 1.0.2413.28158, faulting
module kernel32.dll,...
|
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 with this I need an option to
show the windows application which
my service has started as a result of its invokation.
So I have written a service control by adding a new project of type
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |