title: Should Tomcat 6 AJP keep its threads in keepalive state with mod_jk?
body: <p>I've recently switched my Tomcat server to use AJP fronted by Apache. In the manager I'm seeing:</p>
  
  <pre><code>Stage   Time    B Sent  B Recv  Client  VHost   Request
  K   15395557 ms ?   ?   67.195.114.27   ?   ?
  K   15859951 ms ?   ?   119.63.196.73   ?   ?
  etc.
  </code></pre>
  
  <p>Is this a sign of the Tomcat holding the connection open far, far too long?</p>
  
  <p>I'm aware I have some form of leak because periodically my app runs out of database connections and stops. I'm looking for evidence that the behaviour above is part of that problem. I'll note that the front end to this is a Javascript up communication using REST in Jquery.</p>
  
  <p>Thanks a lot in advance.</p>
  
  <p>Crossposted from <a href="https://serverfault.com/questions/264696/should-tomcat-6-ajp-keep-its-threads-in-keepalive-state-with-mod-jk">ServerFault</a> because I'm not seeing anything there. :-( </p>