> > I am using Apache mod_jk and Ajp13 to connect to Tomcat 4. > When shutting down Tomcat 4 it takes about 15 seconds when > using apache for the tomcat process to complete, > when using Tomcat 4 standalone shutdown and termination of > the process happens almost immediately. > > Has anyone else seen this behaviour? > > I have two Ajp13 connections configured between Apache and Tomcat, > one for http and one for https. >
after a brief review of the tomcat4 ajp13 connector, i think the behaviour you are seeing is explained by the way the connector is shut down + the fact that the socket connection between the webserver (apache in this case) and tomcat is reused. the Ajp13Connector creates Ajp13Processor's to handle ajp requests. the processors in turn will create a thread, then in this thread, will get a socket, handle an ajp request, then wait for another request on the socket, blocking. when the connector is stopped, it stops all of its processors. the processors try to stop their threads, waiting for at most 5 seconds before returning. it looks like the processor worker threads never stop, so each processor will take at least 5 seconds to stop. anyway, this will probably make more sense if you follow the stop logic throug starting at: org.apache.ajp.tomcat4.Ajp13Connector.stop() (around line 946) i think Ajp13Connector and Ajp13Processor are more complicated than they need to be. but, that's just thought :) -kevin. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>