On Nov 4, 1:21*pm, Joe Beanfish <j...@nospam.duh> wrote:
> David Schwartz wrote:
> > On Nov 3, 3:44 pm, Shashank <shashank.shanb...@gmail.com> wrote:
>
> >> The problem is:
> >> If I initiate the client program to run for, say 200 seconds, the
> >> clients run for the entire period sending statistics per second to the
> >> server. However, files corresponding to some interfaces do not show
> >> the entire 200 seconds even though the client finishes execution and
> >> the server closes the file after the client has finished execution.
>
> > This doesn't fit the pattern for any "typical mistake" that I'm
> > familiar with. I'd suggest trying to localize the problem bit by bit.
>
> > For example, first modify the client software to checkpoint how many
> > reports it has sent to the server. Have a client log file, and have it
> > write a 'checkpoint' after every ten messages. Open the log file in
> > append mode, assemble the checkpoint message in a buffer, and send it
> > with a single call to 'write'. If the checkpoints don't show the 200
> > messages, then you know the client is the issue.
>
> > Then add similar checkpointing in the software that talks to the
> > client. Make sure the server software sees 200 messages. If not, then
> > you know something is screwy in that piece of software. (Perhaps the
> > client isn't really sending the messages? Perhaps the server is
> > dropping some of them?)
>
> > Keep going until you localize the problem.
>
> > DS
>
> Also timestamp your messages and look to see which ones are missing.
> That may give you a clue of where to look for the problem.
Hello,
Thanks to both of you for the suggestions.
The problem was actually in one of the anomaly detection algorithms I
was using.
I have sorted the problem out.
Thanks..

Shashank