I have heard of others having similar issue with same setup. <div><br></div><div>Generally they use mpm-prefork or mod fcgi with varnish. I have heard using Nginx with varnish is the way to go.</div><div><br></div><div>What I would do, is disable modfcgi and see if it changes. If it does you know the problems lies in the settings. </div>
<div><br></div><div>Cheers</div><div><br></div><div>Nick Tailor</div><div><br></div><div><br><br><div class="gmail_quote">On Tue, Feb 26, 2013 at 4:37 PM, Mark Strickland <span dir="ltr"><<a href="mailto:smsmail@roadrunner.com" target="_blank">smsmail@roadrunner.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I have this in m php-fcgid.conf<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua">AddHandler fcgid-script .fcgi .php<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua">  # Where to look for the php.ini file?<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua">  DefaultInitEnv PHPRC        "/etc/php5/cgi"<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua">  # Maximum requests a process handles before it is terminated<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua">  MaxRequestsPerProcess       1000<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua">  # Maximum number of PHP processes<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua">  MaxProcessCount             10<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua">  # Number of seconds of idle time before a process is terminated<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua">  IPCCommTimeout              300<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua">  IdleTimeout                 240<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua">  #Or use this if you use the file above<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua">  FCGIWrapper /usr/bin/php-cgi .php<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua">  ServerLimit           500<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua">  StartServers            3<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua">  MinSpareThreads         3<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua">  MaxSpareThreads        10<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua">  ThreadsPerChild        10<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua">  MaxClients            300<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;background:aqua">  MaxRequestsPerChild  1000</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:varnish-misc-bounces@varnish-cache.org" target="_blank">varnish-misc-bounces@varnish-cache.org</a> [mailto:<a href="mailto:varnish-misc-bounces@varnish-cache.org" target="_blank">varnish-misc-bounces@varnish-cache.org</a>] <b>On Behalf Of </b>nick tailor<br>
<b>Sent:</b> Tuesday, February 26, 2013 7:28 PM<br><b>To:</b> Stephen Strickland<br><b>Cc:</b> <a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br><b>Subject:</b> Re: Varnish with mod prefork vs mpm worker with mod-fcgid<u></u><u></u></span></p>
<div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I believe it has to do with the new processes being spawned. You might need to tweak the fastCGI processes to allow more request per process in one of your confs<u></u><u></u></p>
<div><p class="MsoNormal"><u></u> <u></u></p></div><div><div style="border:solid #dddddd 1.0pt;padding:9.0pt .25in 9.0pt .25in;background:#eeeeee"><pre style="background:#eeeeee;border:none;padding:0in"><span style="font-size:9.0pt"><u></u> <u></u></span></pre>
<pre style="background:#eeeeee;border:none;padding:0in"><span style="font-size:9.0pt">  MaxRequestsPerProcess       1000<u></u><u></u></span></pre><pre style="background:#eeeeee;border:none;padding:0in"><span style="font-size:9.0pt">  MaxProcessCount             5<u></u><u></u></span></pre>
<pre style="background:#eeeeee;border:none;padding:0in"><span style="font-size:9.0pt">  IPCCommTimeout              600<u></u><u></u></span></pre><pre style="background:#eeeeee;border:none;padding:0in"><span style="font-size:9.0pt">  IdleTimeout                 600<u></u><u></u></span></pre>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Hope that helps<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Cheers<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Nick Tailor<u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On Tue, Feb 26, 2013 at 3:30 PM, Stephen Strickland <<a href="mailto:webmaster@serviidb.com" target="_blank">webmaster@serviidb.com</a>> wrote:<u></u><u></u></p>
<div><div><p class="MsoNormal">I running a site with Drupal 7 and with apache2 installed initially I was using mod prefork, I was getting varnish hit rates at least high 80’s or middle 90s.  I changed to mpm worker with mod_fcgid and now I am now getting an average of 25%.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Anyone out there know of anything that could be causing this?<u></u><u></u></p></div></div><p class="MsoNormal"><br>_______________________________________________<br>
varnish-misc mailing list<br><a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br><a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><u></u><u></u></p>
</div><p class="MsoNormal"><u></u> <u></u></p></div></div></div><div class="MsoNormal" align="center" style="text-align:center"><hr size="1" width="100%" noshade style="color:#a0a0a0" align="center"></div><p class="MsoNormal">
No virus found in this message.<br>Checked by AVG - <a href="http://www.avg.com" target="_blank">www.avg.com</a><br>Version: 2013.0.2899 / Virus Database: 2641/6135 - Release Date: 02/26/13<u></u><u></u></p></div></div></blockquote>
</div><br></div>