title: Measuring the number of queued requests for tomcat
body: <p>So with tomcat you can set the acceptCount value (default is 100) which means when all the worker threads are busy - new connections are placed in a queue (until it is full, after which they are rejected). </p>
  
  <p>What I would like is to monitor the size of items in this queue - but can't work out if there is a way to get at this via JMX (ie not what the queue max size is - that is just config, but what the current number of items are in the queue). </p>
  
  <p>Any ideas appreciated.</p>
  
  <p>Config for tomcat: <a href="http://tomcat.apache.org/tomcat-6.0-doc/config/http.html">http://tomcat.apache.org/tomcat-6.0-doc/config/http.html</a> (search for "acceptCount") </p>