Posted by oxford-dev on July 15, 2010 at 11:29am
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
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.
The Boise Drupal Guy!
I've looked for these
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
Have someone got the answer to my question?
Regards
Web developer: www.calbasi.net
On CentOS your actual php.ini
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.