CPU use and memory

Kojieumesmo - April 23, 2008 - 22:49

Im having problems with one Drupal based site. My hosting company calls me and tells me that my application is using too much memory and CPU resources. I´m not using too much modules, just core and basics like CCK, Views... The configuration is ok, the caching is on and css compacting too.

I changed the caching time to get a better performance. What more i can do to optimize the CPU and RAM using?

Thanks

did they tell you how much

rexster - April 23, 2008 - 23:34

did they tell you how much cpu/memory you're using and how much is consider normal??

some hosting company (usually overselling) have very strict and very low limit on this. like 1% cpu which is easily passed by any site with significant traffic.

if this is your host, then consider moving to another host.
read their TOS/AUP. see the resource usage. they must have point exactly how much cpu you can use.
host which only say you cant use too much cpu is not good (imho).
they much put exactly how much is considered over limit.

my host have this point which say:
"Use 25% or more of system CPU resources for longer than 90 seconds"
which is somewhat reasonable especially for high traffic site.

www.NGoBRoL.com

more information needed

rernst - April 23, 2008 - 23:43

Who is your host?

Some shared hosting providers consider any use beyond 'featherweight' systems to be 'too much'. That's part of the problem. You might consider a different hosting provider.

Alternatively, have you considered downloading and installing the development module to let you peer into the internals a bit more.

If you have a dedicated server or a virtual server (something with root access) you might consider installing a bytecode cache like apc

I agree. It sounds like

purrin - April 24, 2008 - 12:41

I agree. It sounds like their host is either very restrictive because of overselling per cpu or they are a really small shop that has older equipment.

-=- christopher

My conclusion

Kojieumesmo - April 24, 2008 - 19:21

I find some answers, but i´m not sure that this will solve my problem.
Actions to improve CPU usage and RAM performance:

- The statistic module (watchdog) uses high CPU resources, so i deactivate it to make some tests.
- Look for unused filters, and deactivate them.
- Clean the session table every week.
- Optimize database every week.

Other solutions that i found, but i didn´t tested:
- http://wtanaka.com/drupal/system - Better performance system module patch
- http://2bits.com/articles/measuring-memory-consumption-by-drupal-bootstr... - Another patch to optimize

And i'm considering a migration to a new hosting service.

 
 

Drupal is a registered trademark of Dries Buytaert.