Increased response time after migrating PHP5.3 to PHP5.5

tvdijck's picture

We have just completed an update of PHP on our servers. We went from 5.3 to 5.5. We have a pretty big site with lots of nodes, blocks, views, modules and users. Everything was working "ok" (there are some area's we know we can improve) but now with php 5.5 our response time has almost tripled on our main Drupal 7 instalation. On other Drupal 7 instalation the response times went down.

Digging more in to this we found that there were 3 hooks that really caused this increase:
- init
- entity_property_info
- views_data

http://grab.by/yZhy

We are using all the goodies to increase our performance: PHP runs in FPM, we have memcache, varnish, PHP OPcache.

Has anyone else had some problems with using PHP 5.5 for a large site?

Comments

One possible explanation is a

pingers's picture

One possible explanation is a lot of silent warnings and notices being generated. Try turning on logging and changing the error_reporting setting in PHP to show notices and warnings. Also, if they're already being logged, this could be another factor in the slow down due to the volume of logging. Hope this helps.

Fix the code that throws the most errors first

mikeytown2's picture

Query that sorts php errors by occurrence in watchdog: http://groups.drupal.org/node/170339

Thanx for the sugestions. The

tvdijck's picture

Thanx for the sugestions.

The weirdest thing happened, overnight the response time had a massive drop. We are now running faster than we were on PHP 5.3 without changing a thing.

Looks like we gained 20% just by upgrading PHP and nothing broke, easy gain in the end!

High performance

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week