Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to diagnose why a Java-based app runs for a while as a client making SOAP webservice calls, and then starts hitting an exception whereby it cannot open a socket. The OS is Windows 2003 server SP1.

The netstat -an output shows some connections in CLOSE_WAIT or TIME_WAIT, but not enough to suggest that the OS itself is out of sockets.

I suspect that there's an error in the way that the client-side API is being used (Axis2 v1.4), such that it fails to recycle some internal resource. Once we hit the condition of not being able to open a socket, we have to restart the Java app. (Somewhat strangely, though, we can still make a call out using simple

I'm wondering if we can use Wireshark/Ethereal or similar to help diagnose the problem from an OS/network standpoint?

In case it is useful, our Java stack trace is:

Caused by: Connection timed out: connect at Method) at at at at at at at at

Many thanks for any insight. Dan Haywood

share|improve this question
I can't see the problem. "Connection timed out". The server is not responding in time. – mailq Oct 17 '11 at 11:27

The first line in the Java stack trace says Connection timed out. This indicates that the client side successfully created its client socket and attempted to contact the server, however no response came back. Your problem is not in the client. My advice is to investigate whether the remote server is up. Next ensure there is no networking issue preventing the client from contacting the server.

share|improve this answer
Thanks for this; that's useful info in its own right. However, some diagnostic code was added to call the test web service when the prod web service failed, and that also timed out. It seems odd that it would take down a different server also. In any event, would Wireshark/ethereal show me outbound packets in this situation. – user98063 Oct 17 '11 at 12:36
Wireshark would help determine what's going on. If you can see outbound packets without response, you know it's something external causing the problem. – orien Oct 18 '11 at 8:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.