Re: Sockets: connection refused
- From: "Maxim Yegorushkin" <maxim.yegorushkin@xxxxxxxxx>
- Date: 12 Sep 2006 14:21:23 -0700
David Schwartz wrote:
Oliveira wrote:
I have a Linux server (FC3) with 3 application that collects several
data from 3 equipments using sockets.
These 3 application are restarted (killed and start) each 15 minutes.
Several hours later, when restarting the application, I get a
'Connection refused' error (in the 3 application).
After this error if we reboot the server everthing goes OK. After
several hours the same error happens.
Does any one has an ideia how to find what is causing this kind of
problema?
When you get a 'connection refused', it usually means that nothing is
listening on the port you're trying to connect to. There are many
reasons this can happen.
First, check to make sure that the program that listens on that port is
actually running. Then check to see if it has a socket bound to that
port (with 'netstat' or a similar tool). Then check to make sure it
hasn't hung or crashed.
In addition to said, it might be a resource leak in the server. On
linux the default limit of open file descriptors may be 1024, the
server might me running out of the them neglecting to close file
descriptors, so that accept fails and RST is sent back to the client,
which causes connect fail with ECONNREFUSED.
.
- Follow-Ups:
- Re: Sockets: connection refused
- From: Maxim Yegorushkin
- Re: Sockets: connection refused
- References:
- Sockets: connection refused
- From: Oliveira
- Re: Sockets: connection refused
- From: David Schwartz
- Sockets: connection refused
- Prev by Date: Re: Sockets: connection refused
- Next by Date: raw sockets in Linux
- Previous by thread: Re: Sockets: connection refused
- Next by thread: Re: Sockets: connection refused
- Index(es):
Relevant Pages
|