 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Brian Deshong: Top Ten List + CoderFaire Atlanta 2013
by Chris Cornutt April 12, 2013 @ 12:27:50
Brian Deshong has a new post to his site sharing some of the content (videos) from his upcoming CoderFaire Atlanta (April 20th) talk about web application performance that he's learned over his years in development.
Back in March, I gave a new talk at Atlanta PHP: "Top Ten List: PHP and Web Application Performance". This talk is a culmination of my ~14 years of experience primarily as a web application developer, but also as a systems administrator / DevOps-type. After working with PHP and web applications for so many years, I have amassed quite a few tricks for squeezing maximum performance out of web applications, PHP or otherwise.
The tips are presented by various people from around the web development (and PHP) community and relate to things like:
- Realpath cache settings
- Using offline processing
- Optimized queries
- Gzipping responses
- Caching everything
- Using a content delivery network
If you'd like to see Brian present the full talk, there's still time to get your ticket for CoderFaire - they're only $50 USD for the two day event.
voice your opinion now!
topten coderfaire conference performance tuning presentation atlanta
Systems Architect Blog: Apache2 vs Nginx for PHP application
by Chris Cornutt March 29, 2013 @ 10:41:38
On the Systems Architect blog there's a recent post from Lukasz Kujawa about comparing Apache2 and Nginx for PHP applications, specifically when using the PHP-FPM module. His tests are based on the results from three different application types - a large Zend Framework 1 app, a small PHP script and a WordPress installation.
If you've ever been trying to squeeze more out of hardware you must have come across Nginx (engine x). Nginx usually appears in context of PHP-FPM (FastCGI Process Manager) and APC (Alternative PHP Cache). This setup is often pitched to be the ultimate combo for a web server but what that really means? How much faster a PHP application is going to be on a different web server? I had to check it and the answer as often is - that depends.
He ran the tests on an Amazone EC2 instance and optimized the server to ensure that there was a little interference as possible. The used the Zend Optimizer Plus opcode cache and PHP 5.4 and set the logs to go to memory instead of disk. Graphs included in the post show the results of the benchmarking of each application, with the differences (in most cases) not being that wide of a gap.
There isn't big difference between Apache2 and Nginx in PHP context. Yes, Nginx can be much faster when delivering static content but it won't speed up PHP execution. Running a PHP script seams to be so CPU challenging task that it completely eclipse any gain from a web server.
voice your opinion now!
apache2 nginx performance benchmark zendframework1 wordpress native
Inviqa techPortal: New Relic for PHP Web Application Performance Monitoring
by Chris Cornutt March 15, 2013 @ 10:10:56
On the Inviqa techPortal today there's a new post talking about the New Relic monitoring service and what it has to offer PHP developers and their applications to help them manage things like performance and resources.
The performance of a web application plays a critical role in how an application is perceived by its users. It is important to measure it, identify the causes if it changes and react swiftly to any unexpected changes. This article describes an industry leading tool, New Relic, and how it can be used to monitor and improve your site performance. [...] New Relic is a real-time application monitoring service, providing various metrics about the performance of your production site, covering everything from application database queries through to the time it takes for the end-user to view a page.
They walk you through a "getting started" with the tool and how to get it running on your server - for PHP this means installing an "agent" extension and a local daemon for it to feed information back to. They then get into some of the data New Relic provides including application performance details, browser information, throughput and an Apdex score.
voice your opinion now!
performance monitoring newrelic application agent daemon
Kevin Schroeder: Why you should not use .htaccess (AllowOverride All) in production
by Chris Cornutt February 25, 2013 @ 10:31:09
Kevin Schroeder has posted the results of some research he did around using the "AllowOverride" setting in Apache. He found some interesting differences when it was set to "all".
Commonly known as .htaccess, AllowOverride is a neat little feature that allows you to tweak the server's behavior without modifying the configuration file or restarting the server. [...] Beyond the obvious security problems of allowing configuration modifications in a public document root there is also a performance impact. What happens with AllowOverride is that Apache will do an open() call on each parent directory from the requested file onward.
He includes the output from a strace call in the post - first showing the function calls with it set to "none" then the same request with the setting on "all". More "open" calls are being made in the second run, increasing the execution time by a decent amount.
voice your opinion now!
apache allowoverride all htaccess production setting performance
Patrick Allaert: Composer speeding up class autoloading
by Chris Cornutt January 28, 2013 @ 12:22:43
In this new post Patrick Allaert offers a solution that can help speed up the inclusion of files via the Composer autoloader (in addition to the already present "optimize-autoloader" option).
The problem with the classmap strategy and the nature of PHP is that there is no (easy) way to have a persistent variable across requests containing the classmap. [...] This [large returned array of mappings] can even take a big portion of your request's response time when you have hundreds or thousands of classes like it is the case with eZ Publish 5 being based on Symfony, where about 2 600 classes are involved.
He suggests something that could be included into the Composer functionality itself - creating symbolic links in the PSR-0 standard to the location of the files to make it easier for Composer to resolve their location (based on namespace, not having to find them). Some sample code is included showing an additional autoloader that then uses the vendor names to match the path directly.
voice your opinion now!
composer symlinks autoload speed performance
Kevin Schroeder: Why is FastCGI /w Nginx so much faster than Apache /w mod_php?
by Chris Cornutt January 08, 2013 @ 12:43:23
In this new post to his site Kevin Schroeder takes a look at the performance difference between Apache+mod_php and Nginx+FastCGI and why the second is noticeably faster than the second.
I was originally going to write a blog post about why NginX with FastCGI was faster than Apache with mod_php. I had heard a while ago that NginX running PHP via FastCGI was faster than Apache with mod_php and have heard people swear up and down that it was true. I did a quick test on it a while back and found some corresponding evidence. Today I wanted to examine it more in depth and see if I could get some good numbers on why this was the case. The problem was that I couldn't.
He uses a "hello world" script as a baseline to do some testing and the ab to run the numbers. His results show a pretty significant difference between the two setups and an "strace" on Apache showed a clear "winner" as to why it's slower (reading the .htaccess file). Once he turned this off, though, Apache jumped up and started performing better than Nginx.
This all makes sense. mod_php has PHP embedded in Apache and so it should be faster. If you're running only PHP on a web server then Apache still seems to be your best bet for performance. And if you are seeing a significant performance difference then you should check if AllowOverride is turned on. If it is, try moving that into httpd.conf and try again.
voice your opinion now!
nginx apache fastcgi phpfpm modphp performance htaccess
PHPMaster.com: Speeding Up Your CakePHP Websites
by Chris Cornutt October 09, 2012 @ 10:08:19
PHPMaster.com has a new tutorial posted sharing a few helpful hints about speeding up CakePHP-driven sites to help squeeze the most performance out of your site.
By applying a few simple modifications, and even some more complex enhancements, CakePHP can be sped up quite a bit. By the time you work your way through even half of these changes, the performance of your your CakePHP site will be comparable to many other popular PHP frameworks, with the advantage that your development speed will never falter!
There's several tips in their list - some a bit more difficult to accomplish than others, but worth the results:
- Upgrade CakePHP Versions
- Disable Debug Mode
- Disable Recursive Find Statements
- Cache Query Results
- Install Memory Based Caching
- Removing Apache and Installing Nginx
- Configure Nginx to use Memcached
- Remove MySQL and Install Percona
For more information on the CakePHP framework, see the project's main site.
voice your opinion now!
cakephp website optimize performance tuning tips
|
Community Events
Don't see your event here? Let us know!
|