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.

Regards,
Mladen.

Reply via email to