Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Occasionally, my website that's hosted with GoDaddy is crashing due to physical memory overload. My host told me that PHP processes are overloading the server, and to try to find out which WordPress plugin is responsible for this, but when I run top, I only get this:

PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
9204  thisusr   38  18  287m  68m  40m S  0.0  0.2   0:43.58 php
11175 thisusr   38  18  286m  66m  40m S  0.0  0.2   0:37.86 php
13536 thisusr   38  18  279m  60m  40m S  0.0  0.2   0:21.61 php
14091 thisusr   38  18  284m  66m  40m S  0.0  0.2   0:18.29 php
14285 thisusr   20   0  136m 1456  668 S  0.0  0.0   0:00.02 pure-ftpd
15101 thisusr   20   0  135m 1500  704 S  0.0  0.0   0:00.04 pure-ftpd
17461 thisusr   20   0 98956  15m 2712 S  0.0  0.0   0:00.00 cpsrvd-ssl
17466 thisusr   20   0 99092  15m 2712 S  0.0  0.0   0:00.00 cpsrvd-ssl
17745 thisusr   20   0 14908 1132  944 R  0.0  0.0   0:00.00 top
18979 thisusr   20   0  104m 1984 1004 S  0.0  0.0   0:00.35 sshd
18983 thisusr   20   0 11508 1332 1100 S  0.0  0.0   0:00.04 bash

How do I find which WordPress plugin maps to each process with "php" as the command?

share|improve this question
    
may be helpful to advise what plugins you have. For example, anything that would manipulate images i.e plugins that use imagick or php GD –  Liam Sorsby Apr 11 at 8:08
    
Are you able to run top on your GoDaddy hosting? Or are you testing this locally? However, WordPress plugins probably don't necessarily run in separate processes. –  w3d Apr 12 at 14:12
    
I ran top on my GoDaddy server to get the output in my question. –  runningonplants Apr 14 at 10:33
1  
EVERYTHING IS GODADDY'S FAULT :P –  William D. Edwards Sep 23 at 13:43

3 Answers 3

up vote 1 down vote accepted

Actually, there is a way to tell which plugins may be the problem. The P3 plugin (ironically, written by GoDaddy) can be used to generate a report of what each plugin is doing in terms of runtime. Longer run times will usually correlate with more resources consumed and give you some initial guidance on which plugins to examine first.

share|improve this answer

Unfortunately, with WordPress you will not be able to know which plugin is consuming resources. You will have to disable the plugins one by one and then try. You can even optimize the database so that it does not consumes much resources.

It may be helpful to indicate which hosting plan you have with GoDaddy.

share|improve this answer
    
Thanks for your comment. I'm using Economy Linux Hosting with cPanel. GoDaddy told me even if I upgrade, the Physical Memory limit will remain 512MB –  runningonplants Apr 11 at 16:04
    
At times 512MB is not sufficient for wordpress plugins to work. Try disabling unwanted plugins. One by one disable the plugins and check if your website consumes a lot of resources. There will be one plugin causing this problem. –  MilesWeb Apr 12 at 4:31

Now a days Godaddy allows us to buy a higher physical Resource Level. Buy 1024 and use less plugins, I had same issue with my site but I used fewer plugins and bought 1024 (Resource Level 2). Now my site is running well with 10k visitors daily.

share|improve this answer

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.