Slides from “Forum PHP Paris”
I just talked at the Forum PHP Paris about tuning and cache. The talk was titled “Optimisation d’un site web 2.0 : le cas wat.tv“.
Here are the slides (in french).
Posted in PHP, Talks | No Comments »
I just talked at the Forum PHP Paris about tuning and cache. The talk was titled “Optimisation d’un site web 2.0 : le cas wat.tv“.
Here are the slides (in french).
Posted in PHP, Talks | No Comments »
I’ve been playing with varnish for a few days now. Until now, I have been using lighttpd as an HTTP accelerator, in front of my apache servers.
I love lighttpd a lot : it is simple, very efficient, and quite customizable through lua. But it is not a great HTTP accelerator :
I had to find a better alternative…
Posted in HTTP | 1 Comment »
A friend of mine pointed me to some nice tuning slides, written by Ilia Alshanetsky (PHP 5.2 release manager).
Posted in PHP, Tuning | No Comments »
If you have already used apache on a medium/heavily loaded website, you already know the limitations of the pre-fork model traditionnaly used by apache. Each client connection uses a dedicated apache process, and a dedicated PHP interpreter, each process consuming a couple Megs (50-150MB of RAM for large PHP apps) of RAM.
When using KeepAlives (KeepAlive On), apache processes are mostly idle, waiting for the client to send another HTTP request. When not using KeepAlives (KeepAlive Off), page load times are slower, because each object requires a new TCP connection to be opened - and the server can be overloaded by the number of TCP open/closes.
Read the rest of this entry »
Posted in HTTP, Tuning | No Comments »
I have seen quite a few PHP apps with hundreds of defines. Those are generally loaded on each request, and when every tuning has already been done, those define can amount to a significant proportion of the PHP execution time. Here is a little benchmark :
Read the rest of this entry »
Posted in PHP, Tuning | No Comments »