From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gustavo Guillermo Subject: Re: port busy after server die. Date: Sat, 14 Feb 2004 02:35:20 GMT Sender: linux-admin-owner@vger.kernel.org Message-ID: <20040214.2352000.1856133159@linux.local> References: <20040213.3084700.512249801@linux.local> <16427.64883.554931.941250@cerise.nosuchdomain.co.uk> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <16427.64883.554931.941250@cerise.nosuchdomain.co.uk> List-Id: Content-Type: text/plain; charset="iso-8859-1" To: linux-admin@vger.kernel.org Thanks, The webserver is a Java one from something called gadmin,=20 application running on kaffe on uClib Linux environment, Of course I kn= ow=20 the main solution is to find out what makes the server die, with this=20 commands, next time to this happens I will investigate, but I'm really=20 shure, kaffe was not running, an after 2 days I decide to restart my=20 Linux box, because I can't find out a solution, I'm a newbee about Linu= x=20 Network Development. Thanks. What is windows NT? >>>>>>>>>>>>>>>>>> Mensaje original <<<<<<<<<<<<<<<<<< El 13/02/04, 4:25:55, Glynn Clements escrib= i=F3=20 sobre el tema Re: port busy after server die.: > Gustavo Guillermo wrote: > > Hello everyone, I have a nice question, I ran a WebServer, and afte= r 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 oth= er > > times and this server can't be restarted. > > > > There is some C function or command or anything that can release th= is > > 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 - 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