Simple but important performance check

Events happening in the community are now at Drupal community events on www.drupal.org.
oxford-dev's picture

I recently had quite a simple drupal site with only a few dozens of nodes and each page was taking 7+ seconds to load.

It turned out be because xdebugger and profiler were enabled in php.ini, pages are now <1 second.

Definitly one of those 'DOH!!' moments.

This does serve as a lesson to think outside the box a little when looking at performance.

Comments

I would think that, in most

Garrett Albright's picture

I would think that, in most cases, these would not be enabled by default. But yes, they should be turned off on all production servers.

I've looked for these

calbasi's picture

I've looked for these variable sin my php.ini and I can't find them... Are they in all the php.ini files?

Ps.: I was looking for them at /usr/local/lib/php.ini in an updated CentOS, Zend optimized.

Regards

Web developer: www.calbasi.net

Have someone got the answer

calbasi's picture

Have someone got the answer to my question?

Regards

Web developer: www.calbasi.net

On CentOS your actual php.ini

Jamie Holly's picture

On CentOS your actual php.ini file is /etc/php.ini. Open that up and search for xdebug. Also look in the /etc/php.d/ folder and see if there is an xdebug config file in there. If not then you don't have xdebug installed.

You can also go to /admin/reports/status/php in your Drupal site and see if there's a section for xdebug in there. If not then it isn't installed.


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

High performance

Group notifications

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