Dear all,

Do you have any suggestions for the performance tuning for drupal 7.x?
I've installed drupal7 successfully,but seems that it is too slow for me,sometimes it takes around 7 seconds to get the response result back!

My testing site only have two users as so far,with some testing pages I've created.
My machine configuration as below:

IBM T61
Intel Core(TM)2 Duo CPU T7300 @ 2.0 GHZ
2G Memory

Others
PHP 5.3.3
MySQL 5.1

Thanks in advance!!

Comments

Poieo’s picture

Do you have core compression and css/js agreegation turned on?

You can use http://drupal.org/project/boost for anonymous users.

You can also install memcache/varnish on your machine if you're a command line guru.

Either way, a 7 second page load points to some deeper issues somewhere. You're machine specs should be able to handle the site. You don't have 200 modules installed do you?

JackyWang’s picture

Hi Poieo,

Thanks a million for your suggestions!
I'll have a try like what you've said.

And now I have around 120 modules for my testing site ~

Poieo’s picture

120 modules is WAY TOO many unless you've got some really good caching in place for performance. That's the source of your problem. If you can disable and uninstall half of them, you'll see a big difference. I can't think of any reason why you would need more than 60 modules on one site...except for 'testing'...but you'll pay a performance price trying to run that many.

JackyWang’s picture

Dear all,

I had another questions that were there any ways for making some blocks or pages as static ones(html format) in advance for the later services.

And also if these blocks or pages don't have access controls any more,I think this request is reasonable,right?

aathewise’s picture

I assume you are running the drupal site on localhost?

The best (and most pricey) way to get the fastest speeds for your site is to get a Solid State Hard drive (SSD). Your pages will load at a maximum of .03 ms (locally) because the I/O is so high, even with your 120 modules. I could give you way more reasons on why to upgrade to a SSD for hosting purposes but there are too many.

Please leave any questions/comments and I will answer :p

simpsda.com

JackyWang’s picture

Hi simpsda,

Thank you very much for your response!
Yes,I am running the test on my localhost. Will take a close look at what you've posted here!

Clean’s picture

For local development in windows, I recommended Zend Server CE (Not tested in other platform or live site, but I heard positive feedback a lot). Followed this step-by-step which you speed will be faster every step you applied.

1.) Use Chrome or Opera when no need Firebug, quite snappy
2.) Read the 1st post of this thread:
http://drupal.org/node/1174314
The said setting could speed things up on WAMP a lot but ...
3.) No way it can match Zend server CE out of the box, which you can download for free
4.) How to set up Zend Server:
http://drupal.org/node/348202#comment-3349704
5.) With the said setting my average click respose time is about 1 sec.
6.) You can push it further by applied MySql setting folowed this tutorial:
http://tiger-fish.com/blog/wamp-server-and-drupal-running-slowly
7.) Disabled update manager and system loggings when not using
8.) Enjoy a whole new world of Drupal

I take me a night to discovered this solution.

This applied to both Drupal 6 & 7. Most page load instantly when click, module page need about 1 sec waiting for 30 modules installed, but not that fast when enable/disable module. A bit annoying when you want to use drupal like a native program or plain html page;)

John

rwilson0429’s picture

Setting the values shown below in my php.ini improved my sites performance drastically.

; Determines the size of the realpath cache to be used by PHP. This value should
; be increased on systems where PHP opens many files to reflect the quantity of
; the file operations performed.
; http://php.net/realpath-cache-size
realpath_cache_size = 1M

; Duration of time, in seconds for which to cache realpath information for a given

; file or directory. For systems with rarely changing files, consider increasing this
; value.
; http://php.net/realpath-cache-ttl
realpath_cache_ttl = 300

You may also want check out http://www.achieveinternet.com/enterprise-drupal-blogs/enterprise-drupal-performance-caching-hosting/5-things-you-can-do-improve-performance-and-scal

ReggieW

plato1123’s picture

Nice one, this seems to have dramatically improved my site's performance as well, changing average load times across a multi-site VPS from about 7 seconds to about 4 seconds. Wow!

Bhanuji’s picture

This module helps with indexing the tables..

This will increase the performance of your site.

Note: Currently this module is for Drupal 6.
Please see Reference

Thanks

TMDHosting’s picture

The optimization of your environment depends on multiple things, most importantly the access rate of the site, number of concurrent connections and database size. If you are using managed service It is recommended to contact your host for additional assistance on optimizing your server's environment.

Still to optimize the performance of your website I would highly recommend you to check the topic right here:

https://drupal.org/node/97347

In addition, I would highly recommend you disabling any modules that the website does not use or need. In case you are using watchdog, you may want to frequently check the watchdog database table to prevent it from growing too large. In some cases it is even better to disable the feature.

Good Luck