Comments on: Performance tuning a server in less than three minutes while being slashdotted http://178.63.27.54:8080/statictangents/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/ Random tangents Sun, 05 Aug 2012 08:15:18 +0000 hourly 1 By: MJ Martell http://178.63.27.54:8080/statictangents/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-8590 Sun, 05 Aug 2012 08:15:18 +0000 http://178.63.27.54:8080/statictangents/?p=690#comment-8590 GREAT! Messed up the GD apache2.conf file.

Seems that by following your tutorial on performance tuning, I mistakenly changed the instead of the one you suggested. Now whenever I hit restart in debian squeeze for apache2 and mysql, everything seems ok.

Except when I goto my site on the net where there is justy a blank screen.

NOW what do I do?

]]>
By: ehcache.net http://178.63.27.54:8080/statictangents/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-1657 Thu, 06 Jan 2011 03:21:08 +0000 http://178.63.27.54:8080/statictangents/?p=690#comment-1657 Performance tuning a server in less than three minutes while being slashdotted…

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 …

]]>
By: Martijn Heemels http://178.63.27.54:8080/statictangents/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-722 Mon, 17 May 2010 22:13:12 +0000 http://178.63.27.54:8080/statictangents/?p=690#comment-722 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’s dog slow, and really bogs down your server especially if it has to fork dozens of processes fast, like when you’re slashdotted. You only want to tear down processes when they’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.

]]>
By: wp-popular.com » Blog Archive » Performance tuning a server in less than three minutes while being slashdotted | Stochastic Geometry http://178.63.27.54:8080/statictangents/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-626 Thu, 01 Apr 2010 01:28:48 +0000 http://178.63.27.54:8080/statictangents/?p=690#comment-626 […] the rest here: Performance tuning a server in less than three minutes while being slashdotted | Stochastic Geometry Tags: apache, mysql, performance, […]

]]>
By: Malte http://178.63.27.54:8080/statictangents/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-589 Sun, 14 Mar 2010 19:28:52 +0000 http://178.63.27.54:8080/statictangents/?p=690#comment-589 Next to WP Super Cache I can recommend Semiologic Cache from the SemPro package. It has good memcache support and goes the needed bit better than WP Super Cache. But that’s the problem: Don’t blame Apache / MySql for the misuse WordPress plays on them.

Some more information about caching on wp can be found over there @ ask apache.

]]>
By: Performance tuning a server in less than three minutes while being slashdotted | Linux Shtuff http://178.63.27.54:8080/statictangents/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-586 Sun, 14 Mar 2010 13:33:07 +0000 http://178.63.27.54:8080/statictangents/?p=690#comment-586 […] From stochasticgeometry.ie […]

]]>
By: Max’ Lesestoff zum Wochenende | PHP hates me - Der PHP Blog http://178.63.27.54:8080/statictangents/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-578 Sat, 13 Mar 2010 06:00:00 +0000 http://178.63.27.54:8080/statictangents/?p=690#comment-578 […] 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 […]

]]>
By: Not-so-shortlisted! | Stochastic Geometry http://178.63.27.54:8080/statictangents/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-571 Fri, 12 Mar 2010 18:33:26 +0000 http://178.63.27.54:8080/statictangents/?p=690#comment-571 […] didn’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’ve been […]

]]>
By: abcphp.com http://178.63.27.54:8080/statictangents/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-568 Thu, 11 Mar 2010 18:03:41 +0000 http://178.63.27.54:8080/statictangents/?p=690#comment-568 Performance tuning a server in less than three minutes while being slashdotted…

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 …

]]>
By: Mark Dennehy http://178.63.27.54:8080/statictangents/2010/03/10/performance-tuning-a-server-in-three-minutes-while-being-slashdotte/comment-page-1/#comment-565 Thu, 11 Mar 2010 12:41:57 +0000 http://178.63.27.54:8080/statictangents/?p=690#comment-565 In reply to Mats Lindh.

Yup Mats, it’s the swap that kills you every time! That’s the idea behind ServerLimit – don’t let Apache run too many processes and trigger that first swap, because if it swaps once, odds are that that’s the first stumble and a few minutes later the whole server faceplants at speed.

Varnish is something I’ve been talking about with Conor (the sysadmin for boards.ie) actually, but it’s not really a three-minute first aid thing. Even memcached is a bit of a stretch for the first aid mindset 😀

]]>