Network Timeouts

T

Tony

Hello:
I'm writing some code between a server and a client. The client
provides the server with packets on a continuous basis. If the server
does not receive a packet for 30 seconds it throws a timeout
exception. We are testing the robustness of the server. The client is
just a producer to packets with no interleave, fixed packet length and
random context. The next packet is sent as soon as the last ack is
received. It have been observed from the logs the I get the exception
throw information (which I wrote saying the exception has been throw).
and that's about all. My approach to solving this would to be to look
at what packets were going across the interface with something like
tcpdump. But I can't get root access on this system. I can't do much
on this system in regard to taking a really close look. Any hints?
Thanks in Advance.
Cheers
 
D

Daniele Futtorovic

Hello:
I'm writing some code between a server and a client. The client
provides the server with packets on a continuous basis. If the server
does not receive a packet for 30 seconds it throws a timeout
exception. We are testing the robustness of the server. The client is
just a producer to packets with no interleave, fixed packet length and
random context. The next packet is sent as soon as the last ack is
received. It have been observed from the logs the I get the exception
throw information (which I wrote saying the exception has been throw).
and that's about all. My approach to solving this would to be to look
at what packets were going across the interface with something like
tcpdump. But I can't get root access on this system. I can't do much
on this system in regard to taking a really close look. Any hints?
Thanks in Advance.
Cheers

Not sure I understand your question. Are you asking how you could best
debug your application? Or how you could write it better so that it be
more easily debugged?

If the latter: logs, logs, logs, and JMX if you wanna be fancy.

If the former, and you do not have some fine-grained logs you can
enable, and can't sinff the traffic, then I guess you're pretty much
screwed.
 
R

Roedy Green

Hello:
I'm writing some code between a server and a client. The client
provides the server with packets on a continuous basis. If the server
does not receive a packet for 30 seconds it throws a timeout
exception. We are testing the robustness of the server. The client is
just a producer to packets with no interleave, fixed packet length and
random context. The next packet is sent as soon as the last ack is
received. It have been observed from the logs the I get the exception
throw information (which I wrote saying the exception has been throw).
and that's about all. My approach to solving this would to be to look
at what packets were going across the interface with something like
tcpdump. But I can't get root access on this system. I can't do much
on this system in regard to taking a really close look. Any hints?
Thanks in Advance.
Cheers
I use WireShark. I don't know how it would be for you.
--
Roedy Green Canadian Mind Products
http://mindprod.com
It's difficult to be rigorous about whether a machine really knows,
thinks, etc., because we’re hard put to define these things.
We understand human mental processes only slightly better than
a fish understands swimming.
~ John McCarthy (born: 1927-09-04 died: 2011-10-23 at age: 84).
Inventor of the term AI (Artificial Intelligence),
the short-circuit OR operator (|| in Java),
and LISP (LIst Processing Language) that makes EMACS
(Extensible MACro System) so addictive.
 
A

Andreas Leitgeb

Roedy Green said:
I use WireShark. I don't know how it would be for you.

WireShark needs root-privileges, as well, so probably not.

to the OP:
How about changing the exeception handler to write some
more useful information into the logs?
 
T

Tony

Hello:
I'm writing some code between a server and a client. The client
provides the server with packets on a continuous basis. If the server
does not receive a packet for 30 seconds it throws a timeout
exception. We are testing the robustness of the server. The client is
just a producer to packets with no interleave, fixed packet length and
random context. The next packet is sent as soon as the last ack is
received. It have been observed from the logs the I get the exception
throw information (which I wrote saying the exception has been throw).
and that's about all. My approach to solving this would to be to look
at what packets were going across the interface with something like
tcpdump. But I can't get root access on this system. I can't do much
on this system in regard to taking a really close look. Any hints?
Thanks in Advance.
Cheers

Thanks all
 
J

Joe Collins

If you can't get root access or otherwise use wireshark, have you
considered setting up a proxy? All it needs to do is write the
packets to disk and then forward them along.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top