title: Apache2 proxy showing 2 slots and PIDs?
body: <p>I'm running one single <code>tomcat</code> webserver behind an <code>apache2</code> proxy. But 
  <code>localhost:443/status</code> shows:</p>
  
  <pre><code>Slot    PID     Stopping    Connections         Threads     Async connections
                              total   accepting   busy  idle  writing keep-al closing
  0       1578    no          0       yes         0     25    0       0       0
  1       1577    no          1       yes         1     24    0       1       0
  Sum     2       0           1                   1     49    0       1       0
  </code></pre>
  
  <p>I wonder why I might have 2 PIDs running? Especially what I don't like is that apache has 50 workers, but reserves 25 worker threads for each of the PID. Ideally I'd want to to have all 50 workers reserved for the tomcat server.</p>
  
  <p>Could this be due to my setup of 2 virtual hosts in <code>/etc/apache2/sites-enabled/mypage.conf</code>:</p>
  
  <pre><code>&lt;VirtualHost *:443&gt;
        ..
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
        Redirect / https:myserver.com/
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I'm just having this to redirect any non-https requests. Could this trigger those 2 PIDs? If yes: most likely only a few requests will come on port 80, so I would want to assign most of the workers to the https host. Is that possible?</p>
  
  <p>What I also noticed: <code>ps aux | grep apache2</code> gives 5 processes:</p>
  
  <pre><code>www-data  1577  0.0  0.1 2090340 14644 ?       Sl   06:25   0:04 /usr/sbin/apache2 -k start
  www-data  1578  0.0  0.1 2024812 12948 ?       Sl   06:25   0:05 /usr/sbin/apache2 -k start
  root      1679  0.0  0.1  92580  8196 ?        Ss   Jan08   0:44 /usr/sbin/apache2 -k start
  www-data  1757  0.0  0.0  19904   172 ?        Ss   Jan08   0:29 /usr/bin/htcacheclean -d 120 -p /var/cache/apache2/mod_cache_disk -l 300M -n
  mysshusr 19322  0.0  0.0  14856  1100 pts/0    S+   10:53   0:00 grep --color=auto apache2
  </code></pre>
  
  <p>Are those the worker threads?</p>