<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Den 27-02-2013 01:52, Stephen
Strickland skrev:<br>
</div>
<blockquote cite="mid:003501ce1484$c2c87a00$48596e00$@serviidb.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">When
I was using mpm-preform varnish worked great with a high hit
rate, but the server kept getting oom errors.</span></p>
</div>
</blockquote>
<br>
Yes, mpm_prefork can be pretty memory intensive with modern CMS'es.<br>
<br>
<blockquote cite="mid:003501ce1484$c2c87a00$48596e00$@serviidb.com"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></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"">
nick tailor [<a class="moz-txt-link-freetext" href="mailto:nick.tailor@gmail.com">mailto:nick.tailor@gmail.com</a>] <br>
<b>Sent:</b> Tuesday, February 26, 2013 7:50 PM<br>
<b>To:</b> Mark Strickland<br>
<b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<b>Subject:</b> Re: Varnish with mod prefork vs mpm worker
with mod-fcgid<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have heard of others having similar issue
with same setup. <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Generally they use mpm-prefork or mod
fcgi with varnish. I have heard using Nginx with varnish is
the way to go.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">What I would do, is disable modfcgi and
see if it changes. If it does you know the problems lies in
the settings. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p><br>
</p>
</div>
</div>
</blockquote>
<br>
<br>
It sounds like you should sanitize the output headers from Apache.
You might have a high number of hit_for_pass. That is the only
reasonable way that the low level server setup should be able to
influence caching performance.<br>
<br>
But a better advide might be to use both Apache with mpm_prefork and
NGINX on the site. Configure varnish to split the traffic and use
NGINX for static files and Apache mpm_prefork for PHP requests only.
That way you can configure the prefork with real conservative
settings to only have a limited number of apache-processes, and
maybe set MaxRequestsPerChild to avoid excessive ballooning of PHP
memory. The majority of the request will go to NGINX, which do not
use much memory in any case. That way you can keep maximum
compatibility with PHP-code and at the same time avoid oom problems.<br>
</body>
</html>