BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

help tracking server problem?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
klint gore
Guest





PostPosted: Wed Jan 21, 2004 9:26 pm    Post subject: help tracking server problem? Reply with quote



Anyone know of a good guide to debugging servers?

I've converted a smtp server based on winshoes7 to indy 9 (.0.11 if it matters) and I've got a problem with the server running doconnect then disconnecting. The idtcpserver doconnect has been overwridden to just writeln the welcome message.

It appears to happen after running for a while (usually more than 12hrs) and while under load (usually >100 threads). It doesnt appear to be leaking as the memory allocation and handle counts (in the task manager) stay about the same in ratio to the number of threads.

I can't duplicate it on my pc's (which would be a lot easier to debug) but I have users that can hit it at least once a day.

I've added a debug log to try and track some things down. There are some occurances of a EIdReadLnMaxLineLengthExceded exception near the time of going into the error state. Has anyone seen this exception cause any problems? It may be nothing as there are other instances of it that don't cause a problem.

My latest update is to add the onexception handler and write out anything except eabort and eidsilentexception to the debug log. I'm also logging doconnect completing, doexecute starting and finishing, and some state information if an exception occurs in doexecute.

Complete source is available if required.

thanks,

klint.
Back to top
Simon
Guest





PostPosted: Thu Jan 22, 2004 5:18 pm    Post subject: Re: help tracking server problem? Reply with quote



I've found 'exceptional magic' (dimus.virtualave.net/delphi/excmagic/) to be
useful in debugging some server apps.

Another tool that my colleagues use is 'codesite'
([url]http://www.hallogram.com/codesite/)-[/url] which can transmit a detailed trace of
execution. This tool really comes into its own when using the
'Instumentation Expert' for ModelMaker to add the required 'Enter Method'
and 'Exit Method' code.

You might take a look at each of these to discover that they really don't
give you what you want; but hey,ho - at least i've tried.

- Simon Moscrop

"klint gore" <kg (AT) kgb (DOT) une.edu.au> wrote

Quote:

Anyone know of a good guide to debugging servers?

I've converted a smtp server based on winshoes7 to indy 9 (.0.11 if it
matters) and I've got a problem with the server running doconnect then

disconnecting. The idtcpserver doconnect has been overwridden to just
writeln the welcome message.
Quote:

It appears to happen after running for a while (usually more than 12hrs)
and while under load (usually >100 threads). It doesnt appear to be leaking

as the memory allocation and handle counts (in the task manager) stay about
the same in ratio to the number of threads.
Quote:

I can't duplicate it on my pc's (which would be a lot easier to debug) but
I have users that can hit it at least once a day.

I've added a debug log to try and track some things down. There are some
occurances of a EIdReadLnMaxLineLengthExceded exception near the time of

going into the error state. Has anyone seen this exception cause any
problems? It may be nothing as there are other instances of it that don't
cause a problem.
Quote:

My latest update is to add the onexception handler and write out anything
except eabort and eidsilentexception to the debug log. I'm also logging

doconnect completing, doexecute starting and finishing, and some state
information if an exception occurs in doexecute.
Quote:

Complete source is available if required.

thanks,

klint.



Back to top
klint gore
Guest





PostPosted: Thu Jan 22, 2004 9:00 pm    Post subject: Re: help tracking server problem? Reply with quote




"Simon" <nospamSimonMoscrop (AT) Hotmail (DOT) com> wrote:
Quote:
I've found 'exceptional magic' (dimus.virtualave.net/delphi/excmagic/) to be
useful in debugging some server apps.

Another tool that my colleagues use is 'codesite'
([url]http://www.hallogram.com/codesite/)-[/url] which can transmit a detailed trace of
execution. This tool really comes into its own when using the
'Instumentation Expert' for ModelMaker to add the required 'Enter Method'
and 'Exit Method' code.

I tried similar programs eurekalog and madexcept. eurekalog gave me nothing and madexcept ended up leaking more than the app. I'll have a look at the 2 you mentioned (the virtualave site seems to have gone but there's an old copy on torry.net).

thanks,

klint.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.