Using a PHP accelerator can greatly improve the performance of your PHP applications and the OpenX ad server is no exception. Installing a PHP accelerator is likely to improve OpenX performance more than any other single tuning technique.
We recently heard from Xuk, an OpenX publisher, who serves around 210 million impressions a month. Xuk’s ad server was showing signs of heavy load. As a result he decided to try installing an open source PHP accelerator and was kind enough to post some performance benchmarks of his ad server before and after installing a PHP accelerator.

As you can see from Xuk results, adding the PHP accelerator made a big difference. Requests per second are up from 28 per second to 88 per second whilst the system load is down 3.6 to 2.0. In our experience, Xuk’s results are pretty typical. We recommend OpenX publishers use a PHP accelerator to ensure they are getting the most out their existing hardware.
Thanks Xuk, this is a good reminder for OpenX publishers everywhere.
What’s your experience?
Have you experimented with using a PHP accelerator? Did you see similar results? Which PHP accelerator would you recommend and what performance gains would you expect?
–
Related links:

Tags:
We serve 100M impressions through Openads 2.4 daily using lighttpd, PHP5 and the XCache PHP opcode cacher. Works like a charm!
http://xcache.lighttpd.net/
We never ran Openads in production without an accelerator actually, but I recently did some benchmarking. This showed the same server could sustain roughly four times more requests per second with XCache than without!
Comment by Matthijs van der Klip — January 10, 2008 @ 12:27 pm
We use php-eaccelerator and it does save more than 60%.
Comment by Ernesto Vargas — January 11, 2008 @ 5:44 pm
@Matthijs: wow, are you serving 100M impressions daily with only one box/server?
And what are the requests/sec. in peak times the system must/can handle?
Regards, Heinz
Comment by Heinz — July 2, 2008 @ 11:48 am
Hi Heinz
I think you’ll find that’s 100M imps / month. That’s typically how we quote volumes of impressions served.
cheers, Oliver
Comment by Oliver George — July 2, 2008 @ 12:08 pm