|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Determine if app fails...I have a tcp client/server app running on a machine. The app takes a string, delimited by various characters (hl7), parses it, and then Acks back to the client. The problem we are having is at times, the client (a different vendor's application) sends unexpected trash in the string. It is nearly impossible for us to code for every "Trashy" event that may occur. At this point, our app (rarely!) Hangs and is unable to ack back. The question is: Is there anyway to determine if the application is still running, but "Hung up"??? I know this is a vague question, but any help would be greatly appreciated. Thanks!! Daniel -- --------------------------------- --- -- - Posted with NewsLeecher v3.7 Final Web @ http://www.newsleecher.com/?usenet ------------------- ----- ---- -- - Biffster (B***@Murray.com) wrote in
news:45871c38$0$1650$9a6e19ea@news.newshosting.com: Why not? There are several methods of validing strings from using regular > The problem we are having is at times, the client (a different > vendor's application) sends unexpected trash in the string. It is > nearly impossible for us to code for every "Trashy" event that may > occur. expressions to brute for parsing. > At this point, our app (rarely!) Hangs and is unable to ack Shouldn't you disconnect the socket? I mean there should be no reason why > back. your app hangs... > The question is: Is there anyway to determine if the application You could use SNMP, WMI, or some other management framework. Typically this > is still running, but "Hung up"??? I know this is a vague question, > but any help would be greatly appreciated. type of monitoring is handled via some sort of heartbeat mechanism. what about creating another app (or service) that will check your process
every so often....like every 5 minutes it check to see if your app is responding. if it isnt, it kills it and restarts it..... -- -iwdu15 It's not a crazy question, though as Spam Catcher has mentioned... it seems
a bit unusual that you can't trap the parsing error, reject the request and continue on. Even if you can catch the error you may want to add a "heartbeat" on an important server in any case. I would avoid "testing" the server via the front-end and deciding that the lack of a response meant it hung rather I'd suggest you choose another port to send a signal to. You simply monitor that port to see if you have a signal. An added bonus is that it can send various signals, a heartbeat (at a regular interval) but also "query received", "response sent", "I'm idle" and/or any other signal you might want to keep an eye on. I'd suggest you search the Internet as I have little doubt that somebody has written something and placed it in the public domain. I wouldn't limit your search to VB or .Net as it shouldn't be too hard to translate from Java or C++ if that's what you end up with. Tom Show quoteHide quote "Biffster" <B***@Murray.com> wrote in message news:45871c38$0$1650$9a6e19ea@news.newshosting.com... > Okay, crazy question. > > I have a tcp client/server app running on a machine. The app takes a > string, delimited by various characters (hl7), parses it, and then Acks > back to the client. The problem we are having is at times, the client (a > different vendor's application) sends unexpected trash in the > string. It is nearly impossible for us to code for every "Trashy" event > that may occur. At this point, our app (rarely!) Hangs and is unable > to ack back. > The question is: Is there anyway to determine if the application is still > running, but "Hung up"??? I know this is a vague question, but any > help would be greatly appreciated. > > Thanks!! > > Daniel > > > > -- > --------------------------------- --- -- - > Posted with NewsLeecher v3.7 Final > Web @ http://www.newsleecher.com/?usenet > ------------------- ----- ---- -- - >
business layer, data access layer , presentation layer for asp.net using C#.net
Convert OEM to Unicode Dynamically load a form Raising an event from a user control Inherited form Name from Base Borderless Form How to manage a exception in a Aplications Questions, questions...... Start Menu or Autorun.INF? Cleaning up Excel After using Excel Interop |
|||||||||||||||||||||||