title: the relationship between connection_pool_size and tp-processor?
body: <p>apache2 workers.properties:</p>
  <pre><code>worker.node223.connection_pool_size=100
  worker.node223.connection_pool_minsize=50
  </code></pre>
  <p>tomcat server.xml:</p>
  <pre><code>&lt;Connector address=&quot;192.168.0.17&quot; port=&quot;8009&quot; maxHttpHeaderSize=&quot;64836&quot;
             maxThreads=&quot;350&quot; minSpareThreads=&quot;50&quot; maxSpareThreads=&quot;200&quot;
             acceptCount=&quot;700&quot; connectionTimeout=&quot;360000&quot; disableUploadTimeout=&quot;true&quot;
             enableLookups=&quot;false&quot; URIEncoding=&quot;UTF-8&quot; protocol=&quot;AJP/1.3&quot; /&gt;
  </code></pre>
  <p>connection_pool_size should mean that max tcp connection numbers should be establish to backend server(tomcat).When I run kill -3 for tomcat server.as following:</p>
  <pre><code>........      
  &quot;TP-Processor499&quot; daemon prio=10 tid=0x00007fb8455b5000 nid=0x4521 in Object.wait() [0x00007fb7ffe3f000]
         java.lang.Thread.State: WAITING (on object monitor)
          at java.lang.Object.wait(Native Method)
          - waiting on &lt;0x00007fb89017d430&gt; (a org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
          at java.lang.Object.wait(Object.java:485)
          at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:662)
          - locked &lt;0x00007fb89017d430&gt; (a org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
          at java.lang.Thread.run(Thread.java:619)
  
  
  &quot;TP-Processor498&quot; daemon prio=10 tid=0x00007fb8455b3000 nid=0x4520 runnable [0x00007fb7fff40000]
     java.lang.Thread.State: RUNNABLE
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:129)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
      at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
      - locked &lt;0x00007fb8a486fde0&gt; (a java.io.BufferedInputStream)
      at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:621)
      at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:559)
      at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:686)
      at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
      at java.lang.Thread.run(Thread.java:619)
  </code></pre>
  <p>........</p>
  <p>then I get :</p>
  <p>there are 295 TP-Processors, I guess 295&lt; connection_pool_size+maxSpareThreads = 300； 295 &lt; maxThreads = 350, it is ok.</p>
  <p>there are 189 Tp-processors (In WAITING ) &lt; maxSpareThreads  = 200, it is ok.</p>
  <h2>there are 106 TP-Processors(In RUNNABLE ) &gt; connection_pool_size = 100,I think it is wrong.</h2>
  <p>am I doing something wrong? And if not, do you know a possible explain to this?
  thanks</p>