Skip to contentSkip to conversation

port busy after server die.

DISCUSSION Gustavo Guillermo 3 participants 4 messages Feb 12, 2004 – Feb 14, 2004

lore
Share & tools
lore
#1 lore raw
In reply to Gustavo Guillermo
Quoted 1 line · Gustavo Guillermo

Hello everyone, I have a nice question, I ran a WebServer,

What WebServer?

Quoted 2 lines

and after 8
days hangs and die, but TCP port wasn't released.

How do you know it wasn't released?

Quoted 2 lines

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.

Quoted 2 lines

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?

#2 lore raw
In reply to Gustavo Guillermo
Quoted 7 lines · Gustavo Guillermo

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.

Signature · 1 line
Glynn Clements <[email protected]>
#0 lore raw

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.

#3 lore raw
In reply to Glynn Clements

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?

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Mensaje original <<<<<<<<<<<<<<<<<<

El 13/02/04, 4:25:55, Glynn Clements <[email protected]> escribió sobre el tema Re: port busy after server die.:

Quoted 17 lines
Quoted 7 lines · Gustavo Guillermo

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).

Quoted 5 lines

OTOH, if there are connections in the TIME_WAIT state, you just have to wait for them to time out.

--
Glynn Clements <[email protected]>

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html