Solved

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

Posted on 2004-08-03
9
346 Views
Last Modified: 2010-04-13
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?
0
Comment
Question by:wsfindlater
  • 5
  • 4
9 Comments
 
LVL 9

Expert Comment

by:BigC666
ID: 11708988
howdy,

have you made sure that the timers anr in sync.
0
 

Author Comment

by:wsfindlater
ID: 11709263
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..
0
 
LVL 9

Expert Comment

by:BigC666
ID: 11709295
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.
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:wsfindlater
ID: 11709616
Using System (not Sytem.Form) timers. Would assume system would keep them in sync. Neither process gets stopped, they just wait for timers.
0
 
LVL 9

Expert Comment

by:BigC666
ID: 11709663
ok are you saying that the services don't stop, excuse me i understood that they started and stoped based on your timers.
0
 

Author Comment

by:wsfindlater
ID: 11709755
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.
0
 
LVL 9

Expert Comment

by:BigC666
ID: 11709821
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.
0
 

Author Comment

by:wsfindlater
ID: 11709921
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.
0
 
LVL 9

Accepted Solution

by:
BigC666 earned 500 total points
ID: 11709949
have a look at your code where your testing for an empty queue, also are you removing the files after they copy, possibly your testing before the last file is removed and not after or something on that order
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
One of the biggest threats facing all high-value targets are APT's.  These threats include sophisticated tactics that "often starts with mapping human organization and collecting intelligence on employees, who are nowadays a weaker link than network…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

816 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now