On Tue, 21 Aug 2001 09:32:42 -0400 "Jeff Johnson" <[EMAIL PROTECTED]> wrote:
>
>Hey Paul, great suggestion, I think you win the prize. Here's a bunch
>of netstats taken roughly a second apart. The TIME_WAIT socket was
>opened to send a single GIF to my browser. I closed the browser to
>make sure it wasn't keeping it open but the socket stayed open. When
>the LISTEN socket closes because of "./AppServer close", you'll notice
>the TIME_WAIT socket stays open for roughly 15 seconds. This is
>what's causing the trouble.
It's a common socket programming problem. Usually, one isn't too worried about
it because processes tend to stay alive, keep the socket open and bound, and
listen to subsequent requests, rather than being killed and having to restart,
open and bind a socket. Perhaps some kind of mechanism could be written to
change the port number that the application server uses upon every invocation,
and have some means of the caller (presumably your CGI or Web server adapter)
reading the port number currently in use from some file or other service.
That's if you're that bothered about this. I don't remember why this was a
problem, but if it's for debugging purposes where you just want to restart the
server as quickly as possible then it may not be worth you going to this much
trouble.
>Also, the second part of the problem, maybe the real problem, is when trying
>to start the second instance of AppServer, it detects the bind failure ok but
>then hangs as it tries to exit, requiring a kill -9 to end it. Sounds like a
>thread won't die or something.
That sounds more serious, since it implies that something is wrong with the way
processes or resources are being dealt with. Are there any child processes
attached to the AppServer process? I wonder if there's a way of listing the
resources currently by a hung AppServer process. Does the process really hang
for a long time?
Perhaps there's a problem with FreeBSD that the developers are already aware
of. At least you can kill -9 the process; I remember a problem with Solaris'
CDE screensaver where the processes just built up and couldn't be killed as
root using -9!
Paul
--
Get your firstname@lastname email for FREE at http://Nameplanet.com/?su
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel