Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a website who is having a high CPU usage. The only way I know of it, is the information I get from the support people of the hosting company.

Is there any other way for me to become informed of the resource usage done by my website? (specifically the plugins, but not only them)

Thanks.

share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

You need a so called profiler to measure which part of your application does make use of CPU and Memory Resources. XDebug is such a profiler for example. Using it will show you exactly which part of your application uses how much of CPU and memory.

share|improve this answer
    
Thank you Hakre, I will use this as a basis for a following question. –  Tal Galili Aug 24 '10 at 15:08
    
Here it is: wordpress.stackexchange.com/questions/828/… –  Tal Galili Aug 24 '10 at 15:13
add comment

I don't know of a way to do this automatically but if you use SSH you can run the top command and watch it while you were on the website using whatever the plugin does to see if it spikes.

You can also do this in Cpanel but you would have to continually refresh the page.

share|improve this answer
add comment

It is extremely difficult / impossible to get the data on CPU usage on different plugins. They are after all just php functions. But because functions get called all over the place when a page is generated it's hard to see what's using how much.

What you could do is to measure all of php. You could try to disable/ enable plugins. This will give you an indication. But CPU usage can very much depending on content, users etc.

share|improve this answer
    
Thanks GT. Do you know of a plugin that might do this automatically ? –  Tal Galili Aug 20 '10 at 21:16
    
Not a plugin, but a PHP extension, see my answer. So to say, yeah, it's possible. –  hakre Aug 24 '10 at 12:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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