I have tested my website on http://www.webpagetest.org/, and I found my website performance is very bad. I have used minifying of CSS and JavaScript, and reducing the pic size; performance is still very bad.
How do I solve this problem?

  • 6
    Your question is very broad and I think you could do some homework first. A lot has already been written about this. Have you searched? What did you find? What did you try and how did it work for you? Have you even visited /admin/config/development/performance on your site? Nov 18, 2011 at 12:09
  • APC
    – kalabro
    Nov 18, 2011 at 12:28

3 Answers 3


You can guess all you want and experiment, but the only way to actually achieve meaningful results is to profile the system to figure out where the bottlenecks are. There are many ways to accomlish this.

You can use the Performance module to identify slow pages.

You can use xhprof and the Devel module to identify memory problems, and show slow functions and queries.

Are you running APC? If not, you should. Stick the apc.php file somewhere safe and check the statistics to make sure you don't have cache churn.

Install DB Tuner and see what the mysqltuner results and recommendations are, particularly with regards to buffer sizes and query cache size.

You can also read up on profiling and optimizing Apache

You could also experiment with Zend Server CE as it includes a PHP optimizer in addition to opcode caching.

  • "Stick the apc.php file somewhere safe" --> how?
    – john
    Apr 7, 2012 at 0:09
  • 1
    Essentially, protect it with .htaccess. Put in a password protected directory, or put in a <Files> and restrict it to your IP, or use any of the other access restrictions that Apache provides.
    – mpdonadio
    Apr 7, 2012 at 0:16

In addition to what MPD writes: before you have a look at tools that complement Drupal, have a look at the settings in Drupal. Make sure you enable caching and CSS/Js aggregation on /admin/config/development/performance.

Also check your theme settings: some themes (like Zen) have a developer mode which forces the theme registry to be rebuilt on every page load, which can be handy for developing, but a huge performance hit at the same time.


You can use Minify module. Minify module minify the JavaScript using Google compiler. It also works with "Boost" and "Aggregate JavaScript files" so you can also get advantage of combining multiple JavaScript files which is default option in Drupal 7.

Minify module also minify HTML.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.