* Re: port busy after server die.
2004-02-13 3:08 port busy after server die Gustavo Guillermo
@ 2004-02-12 20:27 ` Scott Taylor
2004-02-12 22:25 ` Glynn Clements
1 sibling, 0 replies; 4+ messages in thread
From: Scott Taylor @ 2004-02-12 20:27 UTC (permalink / raw)
To: linux-admin
At 07:08 PM 02/12/2004, Gustavo Guillermo wrote:
>Hello everyone, I have a nice question, I ran a WebServer,
What WebServer?
>and after 8
>days hangs and die, but TCP port wasn't released.
How do you know it wasn't released?
>I know that the solution is restart the system, but I see it in other
>times and this server can't be restarted.
Oh, an NT server maybe? Rebooting Windows is the way, but not if you are
talking about some flavour of UNIX. This is a Linux admin list BTW.
>There is some C function or command or anything that can release this
>port?
Stop the server that is keeping the port open. What port is it? What is
running on it?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: port busy after server die.
2004-02-13 3:08 port busy after server die Gustavo Guillermo
2004-02-12 20:27 ` Scott Taylor
@ 2004-02-12 22:25 ` Glynn Clements
2004-02-14 2:35 ` Gustavo Guillermo
1 sibling, 1 reply; 4+ messages in thread
From: Glynn Clements @ 2004-02-12 22:25 UTC (permalink / raw)
To: Gustavo Guillermo; +Cc: linux-admin
Gustavo Guillermo wrote:
> Hello everyone, I have a nice question, I ran a WebServer, and after 8
> days hangs and die, but TCP port wasn't released.
> I know that the solution is restart the system, but I see it in other
> times and this server can't be restarted.
>
> There is some C function or command or anything that can release this
> port?
First, check the status of the port with "netstat -at".
If there are any entries for the port in the LISTEN or ESTABLISHED
states, the port is still in use. You dan determine which processes
are associated with the socket using e.g. "fuser -vn tcp 80" (as
root).
OTOH, if there are connections in the TIME_WAIT state, you just have
to wait for them to time out.
--
Glynn Clements <glynn.clements@virgin.net>
^ permalink raw reply [flat|nested] 4+ messages in thread
* port busy after server die.
@ 2004-02-13 3:08 Gustavo Guillermo
2004-02-12 20:27 ` Scott Taylor
2004-02-12 22:25 ` Glynn Clements
0 siblings, 2 replies; 4+ messages in thread
From: Gustavo Guillermo @ 2004-02-13 3:08 UTC (permalink / raw)
To: linux-admin
Hello everyone, I have a nice question, I ran a WebServer, and after 8
days hangs and die, but TCP port wasn't released.
I know that the solution is restart the system, but I see it in other
times and this server can't be restarted.
There is some C function or command or anything that can release this
port?
Thanks in advance.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: port busy after server die.
2004-02-12 22:25 ` Glynn Clements
@ 2004-02-14 2:35 ` Gustavo Guillermo
0 siblings, 0 replies; 4+ messages in thread
From: Gustavo Guillermo @ 2004-02-14 2:35 UTC (permalink / raw)
To: linux-admin
Thanks, The webserver is a Java one from something called gadmin,
application running on kaffe on uClib Linux environment, Of course I know
the main solution is to find out what makes the server die, with this
commands, next time to this happens I will investigate, but I'm really
shure, kaffe was not running, an after 2 days I decide to restart my
Linux box, because I can't find out a solution, I'm a newbee about Linux
Network Development.
Thanks. What is windows NT?
>>>>>>>>>>>>>>>>>> Mensaje original <<<<<<<<<<<<<<<<<<
El 13/02/04, 4:25:55, Glynn Clements <glynn.clements@virgin.net> escribió
sobre el tema Re: port busy after server die.:
> Gustavo Guillermo wrote:
> > Hello everyone, I have a nice question, I ran a WebServer, and after 8
> > days hangs and die, but TCP port wasn't released.
> > I know that the solution is restart the system, but I see it in other
> > times and this server can't be restarted.
> >
> > There is some C function or command or anything that can release this
> > port?
> First, check the status of the port with "netstat -at".
> If there are any entries for the port in the LISTEN or ESTABLISHED
> states, the port is still in use. You dan determine which processes
> are associated with the socket using e.g. "fuser -vn tcp 80" (as
> root).
> OTOH, if there are connections in the TIME_WAIT state, you just have
> to wait for them to time out.
> --
> Glynn Clements <glynn.clements@virgin.net>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-02-14 2:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-13 3:08 port busy after server die Gustavo Guillermo
2004-02-12 20:27 ` Scott Taylor
2004-02-12 22:25 ` Glynn Clements
2004-02-14 2:35 ` Gustavo Guillermo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).