Link to home
Start Free TrialLog in
Avatar of wsfindlater
wsfindlater

asked on

MSMQ, Windows Services - What can I do to make my system more reliable?

I have a Windows 2000 Server. Files are sent via FTP. A Windows Service with a timer, monitors the FTP folder, and puts a message on a MSMQ. A second Windows Service monitors this queue, and processes the file, specified in the queue message. The rate at which the second process reads the queue is controlled by a timer. Most of the time these processes work fine, but once in a while the second process stops processing the queue, and messages pile up. Have tried to debug the problem, but can not reproduce it. When I restart the second process, it processes all the messages on the queue. Has anyone else had a similar problem? What can I do to make my system more reliable?
Avatar of BigC666
BigC666

howdy,

have you made sure that the timers anr in sync.
Avatar of wsfindlater

ASKER

BigC666-
No. Do not understand why they would need to be in sync.. That is why I am using a queue. Do not know how I would put them in scyn..
what i'm trying to say is, if the second system is stoping and the first is not, then to me it looks like whatever "timer" you are using is loseing it's place some how, thus my coment about time sync.
Using System (not Sytem.Form) timers. Would assume system would keep them in sync. Neither process gets stopped, they just wait for timers.
ok are you saying that the services don't stop, excuse me i understood that they started and stoped based on your timers.
No, when the timer expires the second process is supposed to check the queue for messages. If there are no messages, or it processes all the existing messages the timer is restared.
Thanks for your responces.
so then it sounds like the timer doesn't restart automaticly, maby something is causing it to see the queue as not being emptied. i'm just trying to help you think thru the logic.
Well, accually you are right. If there is some hang up in the processing then the timer will not re reset. I should, however, get an error message, unless somting is happening that prevents it.
ASKER CERTIFIED SOLUTION
Avatar of BigC666
BigC666

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial