<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Performance tuning a server in less than three minutes while being slashdotted</title>
	<atom:link href="http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/</link>
	<description>Articles on random topics in Programming, Systems Administration, Academia and Industry by Mark Dennehy</description>
	<lastBuildDate>Fri, 27 Jan 2012 18:39:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: ehcache.net</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-1657</link>
		<dc:creator>ehcache.net</dc:creator>
		<pubDate>Thu, 06 Jan 2011 03:21:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-1657</guid>
		<description>&lt;strong&gt;Performance tuning a server in less than three minutes while being slashdotted...&lt;/strong&gt;

So you wrote a blog post about something that seemed fairly innocuous, but for whatever reason, it caught the attention of one of the major sites and now your server load is at 110 and climbing, the ssh command line session is taking thirty seconds to ...</description>
		<content:encoded><![CDATA[<p><strong>Performance tuning a server in less than three minutes while being slashdotted&#8230;</strong></p>
<p>So you wrote a blog post about something that seemed fairly innocuous, but for whatever reason, it caught the attention of one of the major sites and now your server load is at 110 and climbing, the ssh command line session is taking thirty seconds to &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martijn Heemels</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-722</link>
		<dc:creator>Martijn Heemels</dc:creator>
		<pubDate>Mon, 17 May 2010 22:13:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-722</guid>
		<description>You want the processes torn down rapidly instead of hanging about waiting on someone who’s hit the stumble button twenty seconds ago and is now off browsing fark while you wait on them.

I have to disagree here. The control method for that scenario is KeepAliveTimeout. I would suggest changing the default 15 to much lower, such as 2 seconds. This prevents the server from keeping a process reserved for 15 seconds.

Forking processes can put a serious load on your server. It&#039;s dog slow, and really bogs down your server especially if it has to fork dozens of processes fast, like when you&#039;re slashdotted. You only want to tear down processes when they&#039;re leaking memory, which you mentioned. Therefore, I have found the following pattern works very well.

Set MinSpareServers to around 20 so you have enough processes started and waiting to serve. Set MaxSpareServers a bit higher, such as 30. Set MaxRequestsPerChild to 1000 or something high, so you only kill processes when they done plenty of work. MaxClients should be set to the amount of processes your apache can run without swapping, and definitely not too high. You can calculate this number by dividing the amount of RAM available to Apache by the maximum memory used by any Apache process. ServerLimit is set automatically and can be removed from the config.

Also, do not underestimate the effect of a byte-code cache such as APC, or Zend Optimizer+. It will avoid the PHP engine having to compile your PHP application for each and every request and will speed up each request quite a lot, at the expense of some memory. It wil help a lot.

The rest of your tips are great, so thanks for the article.</description>
		<content:encoded><![CDATA[<p>You want the processes torn down rapidly instead of hanging about waiting on someone who’s hit the stumble button twenty seconds ago and is now off browsing fark while you wait on them.</p>
<p>I have to disagree here. The control method for that scenario is KeepAliveTimeout. I would suggest changing the default 15 to much lower, such as 2 seconds. This prevents the server from keeping a process reserved for 15 seconds.</p>
<p>Forking processes can put a serious load on your server. It&#8217;s dog slow, and really bogs down your server especially if it has to fork dozens of processes fast, like when you&#8217;re slashdotted. You only want to tear down processes when they&#8217;re leaking memory, which you mentioned. Therefore, I have found the following pattern works very well.</p>
<p>Set MinSpareServers to around 20 so you have enough processes started and waiting to serve. Set MaxSpareServers a bit higher, such as 30. Set MaxRequestsPerChild to 1000 or something high, so you only kill processes when they done plenty of work. MaxClients should be set to the amount of processes your apache can run without swapping, and definitely not too high. You can calculate this number by dividing the amount of RAM available to Apache by the maximum memory used by any Apache process. ServerLimit is set automatically and can be removed from the config.</p>
<p>Also, do not underestimate the effect of a byte-code cache such as APC, or Zend Optimizer+. It will avoid the PHP engine having to compile your PHP application for each and every request and will speed up each request quite a lot, at the expense of some memory. It wil help a lot.</p>
<p>The rest of your tips are great, so thanks for the article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wp-popular.com &#187; Blog Archive &#187; Performance tuning a server in less than three minutes while being slashdotted &#124; Stochastic Geometry</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-626</link>
		<dc:creator>wp-popular.com &#187; Blog Archive &#187; Performance tuning a server in less than three minutes while being slashdotted &#124; Stochastic Geometry</dc:creator>
		<pubDate>Thu, 01 Apr 2010 01:28:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-626</guid>
		<description>[...] the rest here: Performance tuning a server in less than three minutes while being slashdotted &#124; Stochastic Geometry Tags: apache, mysql, performance, [...]</description>
		<content:encoded><![CDATA[<p>[...] the rest here: Performance tuning a server in less than three minutes while being slashdotted | Stochastic Geometry Tags: apache, mysql, performance, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Malte</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-589</link>
		<dc:creator>Malte</dc:creator>
		<pubDate>Sun, 14 Mar 2010 19:28:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-589</guid>
		<description>Next to WP Super Cache I can recommend &lt;a href=&quot;http://www.semiologic.com/software/sem-cache/&quot; rel=&quot;nofollow&quot;&gt;Semiologic Cache&lt;/a&gt; from the SemPro package. It has good memcache support and goes the needed bit better than WP Super Cache. But that&#039;s the problem: Don&#039;t blame Apache / MySql for the misuse Wordpress plays on them.

Some more information about caching on wp can be found over there &lt;a href=&quot;http://www.askapache.com/wordpress/fastest-caching-plugins.html&quot; rel=&quot;nofollow&quot;&gt;@ ask apache&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Next to WP Super Cache I can recommend <a href="http://www.semiologic.com/software/sem-cache/" rel="nofollow">Semiologic Cache</a> from the SemPro package. It has good memcache support and goes the needed bit better than WP Super Cache. But that&#8217;s the problem: Don&#8217;t blame Apache / MySql for the misuse WordPress plays on them.</p>
<p>Some more information about caching on wp can be found over there <a href="http://www.askapache.com/wordpress/fastest-caching-plugins.html" rel="nofollow">@ ask apache</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Performance tuning a server in less than three minutes while being slashdotted &#124; Linux Shtuff</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-586</link>
		<dc:creator>Performance tuning a server in less than three minutes while being slashdotted &#124; Linux Shtuff</dc:creator>
		<pubDate>Sun, 14 Mar 2010 13:33:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-586</guid>
		<description>[...] From stochasticgeometry.ie [...]</description>
		<content:encoded><![CDATA[<p>[...] From stochasticgeometry.ie [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max&#8217; Lesestoff zum Wochenende &#124; PHP hates me - Der PHP Blog</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-578</link>
		<dc:creator>Max&#8217; Lesestoff zum Wochenende &#124; PHP hates me - Der PHP Blog</dc:creator>
		<pubDate>Sat, 13 Mar 2010 06:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-578</guid>
		<description>[...] Versionen auf dem System zu haben und die aktuelle Anwendung bzw ihre Unit-Tests damit zu testen   Performance tuning a server in less than three minutes while being slashdotted Netter Artikel wie man kurzfristig schnell seinen Server pimpen kann und vor dem Zusammenbruch [...]</description>
		<content:encoded><![CDATA[<p>[...] Versionen auf dem System zu haben und die aktuelle Anwendung bzw ihre Unit-Tests damit zu testen   Performance tuning a server in less than three minutes while being slashdotted Netter Artikel wie man kurzfristig schnell seinen Server pimpen kann und vor dem Zusammenbruch [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Not-so-shortlisted! &#124; Stochastic Geometry</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-571</link>
		<dc:creator>Not-so-shortlisted! &#124; Stochastic Geometry</dc:creator>
		<pubDate>Fri, 12 Mar 2010 18:33:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-571</guid>
		<description>[...] didn&#8217;t notice at the time, what with all the reddit fun, and then all the fun that happened on the server as a result of all the reddit fun, but @susan_lanigan kindly pointed out that I&#8217;ve been [...]</description>
		<content:encoded><![CDATA[<p>[...] didn&#8217;t notice at the time, what with all the reddit fun, and then all the fun that happened on the server as a result of all the reddit fun, but @susan_lanigan kindly pointed out that I&#8217;ve been [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abcphp.com</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-568</link>
		<dc:creator>abcphp.com</dc:creator>
		<pubDate>Thu, 11 Mar 2010 18:03:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-568</guid>
		<description>&lt;strong&gt;Performance tuning a server in less than three minutes while being slashdotted...&lt;/strong&gt;

So you wrote a blog post about something that seemed fairly innocuous, but for whatever reason, it caught the attention of one of the major sites and now your server load is at 110 and climbing, the ssh command line session is taking thirty seconds to ...</description>
		<content:encoded><![CDATA[<p><strong>Performance tuning a server in less than three minutes while being slashdotted&#8230;</strong></p>
<p>So you wrote a blog post about something that seemed fairly innocuous, but for whatever reason, it caught the attention of one of the major sites and now your server load is at 110 and climbing, the ssh command line session is taking thirty seconds to &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Dennehy</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-565</link>
		<dc:creator>Mark Dennehy</dc:creator>
		<pubDate>Thu, 11 Mar 2010 12:41:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-565</guid>
		<description>Yup Mats, it&#039;s the swap that kills you every time! That&#039;s the idea behind ServerLimit - don&#039;t let Apache run too many processes and trigger that first swap, because if it swaps once, odds are that that&#039;s the first stumble and a few minutes later the whole server faceplants at speed.

Varnish is something I&#039;ve been talking about with Conor (the sysadmin for boards.ie) actually, but it&#039;s not really a three-minute first aid thing. Even memcached is a bit of a stretch for the first aid mindset :D</description>
		<content:encoded><![CDATA[<p>Yup Mats, it&#8217;s the swap that kills you every time! That&#8217;s the idea behind ServerLimit &#8211; don&#8217;t let Apache run too many processes and trigger that first swap, because if it swaps once, odds are that that&#8217;s the first stumble and a few minutes later the whole server faceplants at speed.</p>
<p>Varnish is something I&#8217;ve been talking about with Conor (the sysadmin for boards.ie) actually, but it&#8217;s not really a three-minute first aid thing. Even memcached is a bit of a stretch for the first aid mindset <img src='http://www.stochasticgeometry.ie/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Dennehy</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-564</link>
		<dc:creator>Mark Dennehy</dc:creator>
		<pubDate>Thu, 11 Mar 2010 12:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-564</guid>
		<description>Jordi beat you to it Artur :D 
Doesn&#039;t work so well here, because comments were on, but at the worst point I used WP-SuperCache&#039;s lockdown function which does almost exactly what you&#039;re suggesting, but in an easier-to-manage way.</description>
		<content:encoded><![CDATA[<p>Jordi beat you to it Artur <img src='http://www.stochasticgeometry.ie/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
Doesn&#8217;t work so well here, because comments were on, but at the worst point I used WP-SuperCache&#8217;s lockdown function which does almost exactly what you&#8217;re suggesting, but in an easier-to-manage way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Dennehy</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-563</link>
		<dc:creator>Mark Dennehy</dc:creator>
		<pubDate>Thu, 11 Mar 2010 12:24:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-563</guid>
		<description>Yup, like I said to Mikko, it&#039;s very odd. But what I saw here was that when that was increased (I had it set to 2000 at one point), load shot up much faster; turning it down to single digits improved performance. I have theories as to why; I don&#039;t know for certain and it&#039;s kindof bugging me a bit if I&#039;m blunt about it.</description>
		<content:encoded><![CDATA[<p>Yup, like I said to Mikko, it&#8217;s very odd. But what I saw here was that when that was increased (I had it set to 2000 at one point), load shot up much faster; turning it down to single digits improved performance. I have theories as to why; I don&#8217;t know for certain and it&#8217;s kindof bugging me a bit if I&#8217;m blunt about it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Dennehy</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-562</link>
		<dc:creator>Mark Dennehy</dc:creator>
		<pubDate>Thu, 11 Mar 2010 12:22:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-562</guid>
		<description>Yup, that works too... until someone tries to comment on that page, at which point it goes a bit sideways. 
But yes, for anything that can be made static, that&#039;s how to do it. Here though, WP-SuperCache was doing that and the load was still passing 130 at times (I&#039;m actually surprised the server was still responsive at the shell at all at those points).</description>
		<content:encoded><![CDATA[<p>Yup, that works too&#8230; until someone tries to comment on that page, at which point it goes a bit sideways.<br />
But yes, for anything that can be made static, that&#8217;s how to do it. Here though, WP-SuperCache was doing that and the load was still passing 130 at times (I&#8217;m actually surprised the server was still responsive at the shell at all at those points).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Dennehy</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-561</link>
		<dc:creator>Mark Dennehy</dc:creator>
		<pubDate>Thu, 11 Mar 2010 12:20:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-561</guid>
		<description>In practice here, increasing MaxRequestsPerChild in the prefork MPM drove load up, not down. It&#039;s &lt;em&gt;not&lt;/em&gt; supposed to do that under normal usage, you&#039;re completely correct. I have two theories as to why it acted oddly:&lt;ul&gt;
&lt;li&gt;There may be a dodgy plugin or module installed that&#039;s causing that for me (if your child leaks memory, MaxRequestsPerChild is your control mechanism).&lt;/li&gt;	
&lt;li&gt;Or it could be the nature of the traffic - if you have a &lt;em&gt;lot&lt;/em&gt; of high bounce rate traffic coming in (and if it&#039;s slashdot or reddit or whomever, that&#039;s what you see), then nonstandard settings may work better - KeepAlive off, for example, which is the opposite of what you want normally. You want the processes torn down rapidly instead of hanging about waiting on someone who&#039;s hit the stumble button twenty seconds ago and is now off browsing fark while you wait on them.&lt;/li&gt;
&lt;/ul&gt;

</description>
		<content:encoded><![CDATA[<p>In practice here, increasing MaxRequestsPerChild in the prefork MPM drove load up, not down. It&#8217;s <em>not</em> supposed to do that under normal usage, you&#8217;re completely correct. I have two theories as to why it acted oddly:
<ul>
<li>There may be a dodgy plugin or module installed that&#8217;s causing that for me (if your child leaks memory, MaxRequestsPerChild is your control mechanism).</li>
<li>Or it could be the nature of the traffic &#8211; if you have a <em>lot</em> of high bounce rate traffic coming in (and if it&#8217;s slashdot or reddit or whomever, that&#8217;s what you see), then nonstandard settings may work better &#8211; KeepAlive off, for example, which is the opposite of what you want normally. You want the processes torn down rapidly instead of hanging about waiting on someone who&#8217;s hit the stumble button twenty seconds ago and is now off browsing fark while you wait on them.</li>
</ul>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Dennehy</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-560</link>
		<dc:creator>Mark Dennehy</dc:creator>
		<pubDate>Thu, 11 Mar 2010 12:12:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-560</guid>
		<description>Nope, APC was on the &quot;to-do list&quot;. The problem was, this server&#039;s my side project site, and work has been eating every waking hour for a few months so progress along the TDL has been seriously slow. 

WP SuperCache _is_ installed; but since this was a three-minute guide, several good measures weren&#039;t mentioned. Installing WP-SuperCache or WP-TotalCache, changing out from Apache to lighttp or nginx, installing more RAM (turns out I can&#039;t do that with this box :( ) -- all very good approaches which I&#039;ve tried in the past, but you can&#039;t get them done in three minutes :D The whole point of this post was to be the server version of first aid, not scheduled surgery, and if you&#039;d ever seen or received CPR, you know &lt;em&gt;exactly&lt;/em&gt; what I mean when I say that first aid&#039;s not exactly clean and tidy :D</description>
		<content:encoded><![CDATA[<p>Nope, APC was on the &#8220;to-do list&#8221;. The problem was, this server&#8217;s my side project site, and work has been eating every waking hour for a few months so progress along the TDL has been seriously slow. </p>
<p>WP SuperCache _is_ installed; but since this was a three-minute guide, several good measures weren&#8217;t mentioned. Installing WP-SuperCache or WP-TotalCache, changing out from Apache to lighttp or nginx, installing more RAM (turns out I can&#8217;t do that with this box <img src='http://www.stochasticgeometry.ie/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  ) &#8212; all very good approaches which I&#8217;ve tried in the past, but you can&#8217;t get them done in three minutes <img src='http://www.stochasticgeometry.ie/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  The whole point of this post was to be the server version of first aid, not scheduled surgery, and if you&#8217;d ever seen or received CPR, you know <em>exactly</em> what I mean when I say that first aid&#8217;s not exactly clean and tidy <img src='http://www.stochasticgeometry.ie/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mats Lindh</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-559</link>
		<dc:creator>Mats Lindh</dc:creator>
		<pubDate>Thu, 11 Mar 2010 11:50:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-559</guid>
		<description>We&#039;ve seen quite a few of these spikes at several of our sites, and the first times around on a new vm there was one thing that killed us each time: swapping. As soon as Apache gets tired and hogs up a bit more memory than you initially planned and the traffic comes in, things will start swapping. And when things start swapping, you&#039;re out of luck. 

I&#039;d also suggest taking a look at varnish, which you can drop in quite quickly with the standard settings to be able to handle a very high load. The default configuration (depending on the version you install, probably) will however skip any cache handling for requests with cookies, which may come from tracking scripts such as google analytics. There&#039;s pre-made rules to get around that problem for certain cookies, or you can just allow it to cache all content, regardless of any current cookies.

The key to getting varnish up and running is to simply move apache to port 81, set that apache as the backend in varnish and put varnish on port 80.</description>
		<content:encoded><![CDATA[<p>We&#8217;ve seen quite a few of these spikes at several of our sites, and the first times around on a new vm there was one thing that killed us each time: swapping. As soon as Apache gets tired and hogs up a bit more memory than you initially planned and the traffic comes in, things will start swapping. And when things start swapping, you&#8217;re out of luck. </p>
<p>I&#8217;d also suggest taking a look at varnish, which you can drop in quite quickly with the standard settings to be able to handle a very high load. The default configuration (depending on the version you install, probably) will however skip any cache handling for requests with cookies, which may come from tracking scripts such as google analytics. There&#8217;s pre-made rules to get around that problem for certain cookies, or you can just allow it to cache all content, regardless of any current cookies.</p>
<p>The key to getting varnish up and running is to simply move apache to port 81, set that apache as the backend in varnish and put varnish on port 80.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Artur Ejsmont</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-556</link>
		<dc:creator>Artur Ejsmont</dc:creator>
		<pubDate>Thu, 11 Mar 2010 09:36:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-556</guid>
		<description>Hi : ) nice article

Depending on the website and what article is causing the problem you could consider even much dirtier and more efficient tuning hack : )

To push performance to the limit you could add a temporary rewrite rule to the htaccess and place static html of that page somewhere in web root heheehhe ultimate caching performance ;-)

Sure it an useless hack for dynamic websites but still ..... if its just one article that is killing the server and it will last for a day you might get away with some banners/tags/menus etc being cached statically.  

In the mean time you can do all the above and consider real caching + &#039;useless calls reductions&#039; but hey ... your page is showing already so no pressure : )

on the other note, setting MaxRequestsPerChild = 3 kind of kills the purpose here i guess. what it does is not process cant handle more than 3 concurrent requests but process can handle 3 requests and then dies. when it dies a new process will be spawned so efectively you get new apache spawn every 3 hits : / ouch defaut 0 means process will not die and can run forever. Or did i get something wrong here?

Art</description>
		<content:encoded><![CDATA[<p>Hi : ) nice article</p>
<p>Depending on the website and what article is causing the problem you could consider even much dirtier and more efficient tuning hack : )</p>
<p>To push performance to the limit you could add a temporary rewrite rule to the htaccess and place static html of that page somewhere in web root heheehhe ultimate caching performance <img src='http://www.stochasticgeometry.ie/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Sure it an useless hack for dynamic websites but still &#8230;.. if its just one article that is killing the server and it will last for a day you might get away with some banners/tags/menus etc being cached statically.  </p>
<p>In the mean time you can do all the above and consider real caching + &#8216;useless calls reductions&#8217; but hey &#8230; your page is showing already so no pressure : )</p>
<p>on the other note, setting MaxRequestsPerChild = 3 kind of kills the purpose here i guess. what it does is not process cant handle more than 3 concurrent requests but process can handle 3 requests and then dies. when it dies a new process will be spawned so efectively you get new apache spawn every 3 hits : / ouch defaut 0 means process will not die and can run forever. Or did i get something wrong here?</p>
<p>Art</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Rose</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-547</link>
		<dc:creator>Mark Rose</dc:creator>
		<pubDate>Thu, 11 Mar 2010 01:21:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-547</guid>
		<description>MaxRequestsPerChild   3 .... what??

I would set that to 1000. If you only let a child serve 3 requests before dying and reforking, you&#039;re going to spend a lot of time in system calls making and destroying processes.

But to tune Apache properly, you need to install a modern web server like Nginx... hah.</description>
		<content:encoded><![CDATA[<p>MaxRequestsPerChild   3 &#8230;. what??</p>
<p>I would set that to 1000. If you only let a child serve 3 requests before dying and reforking, you&#8217;re going to spend a lot of time in system calls making and destroying processes.</p>
<p>But to tune Apache properly, you need to install a modern web server like Nginx&#8230; hah.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordi Boggiano</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-536</link>
		<dc:creator>Jordi Boggiano</dc:creator>
		<pubDate>Wed, 10 Mar 2010 22:52:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-536</guid>
		<description>Another idea for that kind of temporary hit on one unique page that I think would save you more than memcache and that would work on any site no matter whether you have a memcache plugin ready to be installed, is to just save the html of the page into some static html file and force-serve that for the particular url that gets all the hits with a RewriteRule /url/blah /path/to.html [L]

Cheers,
Jordi</description>
		<content:encoded><![CDATA[<p>Another idea for that kind of temporary hit on one unique page that I think would save you more than memcache and that would work on any site no matter whether you have a memcache plugin ready to be installed, is to just save the html of the page into some static html file and force-serve that for the particular url that gets all the hits with a RewriteRule /url/blah /path/to.html [L]</p>
<p>Cheers,<br />
Jordi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikko</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-534</link>
		<dc:creator>Mikko</dc:creator>
		<pubDate>Wed, 10 Mar 2010 22:35:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-534</guid>
		<description>Hi,

I don&#039;t really get the MaxRequestsPerChild 3 setting here. This setting defines[1] how often the child is killed and respawned (in your case after every three request). Doesn&#039;t killing / spawning children so often actually hurt performance here?

[1] http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxrequestsperchild</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I don&#8217;t really get the MaxRequestsPerChild 3 setting here. This setting defines[1] how often the child is killed and respawned (in your case after every three request). Doesn&#8217;t killing / spawning children so often actually hurt performance here?</p>
<p>[1] <a href="http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxrequestsperchild" rel="nofollow">http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxrequestsperchild</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Harrison</title>
		<link>http://www.stochasticgeometry.ie/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-532</link>
		<dc:creator>Richard Harrison</dc:creator>
		<pubDate>Wed, 10 Mar 2010 22:10:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=690#comment-532</guid>
		<description>Just in case, you were using APC right? 

The WP SuperCache plugin is another quick win for Wordpress users.</description>
		<content:encoded><![CDATA[<p>Just in case, you were using APC right? </p>
<p>The WP SuperCache plugin is another quick win for WordPress users.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

