apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <mt...@apache.org>
Subject Re: APR leaves port bound when terminated?
Date Wed, 22 Feb 2006 07:39:04 GMT
Sean Neeley wrote:
> I’m using APR 1.2.2 with Tomcat 5.5.15.  Occasionally I need to restart 
> the JVM, and so I have one of my servlets call System.exit(0).  When 
> using the APR libraries with tomcat, exiting the JVM in this manor 
> leaves port 8009 in the FIN_WAIT2 state (see netstat man page).

The problem is with your System.exit(0) call in your Servlet.
This breaks the APR Connector shutdown hook (APRLifecycleListener).
I suppose that it works fine when you call Tomcat's 'shutdown.sh'.

Anyhow like other guys said, this is Tomcat related issue.


View raw message