|
-
July 25th, 2005, 12:00 PM
#1
Windows service gone wild
Hello,
Please give me ints on this issue: I can figure this out.
I have a C# windows Service running every hour on a server since
may 28, 2005.
If a condition on a database is ok
sends a email to 3 persons
else
does nothing
Today, since 2:11 to 10:17 CET e received 138.146 emails on my mail box from de windows service.
Anyone got an ideia on why this when nutes? Any Ideia?
You can´t imagine what this has done to the exchange server!
-
July 25th, 2005, 09:13 PM
#2
Re: Windows service gone wild
Is there any way that the timer interval could have been changed so that it is performing this check more often?
-
July 26th, 2005, 12:04 AM
#3
Re: Windows service gone wild
If the number of e-mails is 138 thousands something...then it looks like some infinite loop to me...
Can you help me with my homework assignment?, Before you post!, Use code tags, How to post!, Codeguru technical FAQs, C++ FAQ Lite, Stroustrup: C++ Style and Technique FAQ, Guru of the Week, Comeau C and C++ FAQs, Comeau C++ Templates FAQs, CUJ @ DDJ, Spam threshold
My Blogs : Learning C++ is fun | Abnegator's reflections
Open Threads : C++ Aha! Moments | Nature of work in C++?
-
July 26th, 2005, 03:56 AM
#4
Re: Windows service gone wild
Take into account this:
It as worked ok for, 24hours * 60 days.
So, votes any one?
1) Its is an apllication error
2) Somekind of a server side error
Thanks guys.
-
July 26th, 2005, 04:42 AM
#5
Re: Windows service gone wild
I suppose your service should use some variable to store time of last firing.
If some exception occurs after sending of e-mails but before changing of this variable, then at next iteration service will try to send e-mails again.
-
July 26th, 2005, 04:53 AM
#6
Re: Windows service gone wild
I vote for an application error. It should have handled such scenario. I know these once-in-while bugs that are very hard to reproduce during the testing but for sure its application error.
These are some questions from my side which you must ask urself or ur application developers - these might give u some more clues.
By the way, how do you start the service? Is there an automated process for that? What is the condition that it checks on the database? Is this condition being frequently changed from somewhere? How frequently do you query the database for this condition (an infinite loop?)
24 hours * 60 days = 5184000 seconds = 86400 mins...has this something to do with the application? Some variable reaching its limit..causing some exception...
I dont know - anything could be happening there...is hard to tell without the code or the application on the desktop. Just guessing. See if it helps. Good luck.
Can you help me with my homework assignment?, Before you post!, Use code tags, How to post!, Codeguru technical FAQs, C++ FAQ Lite, Stroustrup: C++ Style and Technique FAQ, Guru of the Week, Comeau C and C++ FAQs, Comeau C++ Templates FAQs, CUJ @ DDJ, Spam threshold
My Blogs : Learning C++ is fun | Abnegator's reflections
Open Threads : C++ Aha! Moments | Nature of work in C++?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|