0

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.

3

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.

1

I have this answer for you. you need to configure an apache module called : apache-status. there is also a project called pimped apache status wich is build on this apache feature: here is the info : https://github.com/axelhahn/pimped-apache-status

0

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.

0

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.

  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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