0 Replies Latest reply on Jul 13, 2007 2:12 AM by Ramdas Hegde

    AJP connector holding onto Tomcat threads

    Ramdas Hegde Newbie

      My application uses JBoss 3.2.6 running Tomcat 5.5. I have not specified the connectionTimeout attribute on the AJP connector between Apache and Tomcat running within JBoss - with the idea that the connections get reused between web requests. 99% of the requests that come into this application are stateless. I notice that the number of Tomcat threads that are being used to KeepAlive the connections between Apache and Tomcat is much higher than the concurrent number of requests coming into Apache. It looks like the connection is marked as busy and hence Apache picks a new thread - which over a period of time results in exhaustion of all Tomcat threads. I am thinking of applying connectionTimeouts in order to force these threads to give up Apache connections and restablish new ones- but was wondering why Tomcat holds onto these threads instead of using them for the subsequent Apache requests.