7

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?

6
  • 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 Commented Apr 11, 2014 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.
    – MrWhite
    Commented Apr 12, 2014 at 14:12
  • I ran top on my GoDaddy server to get the output in my question. Commented Apr 14, 2014 at 10:33
  • 2
    EVERYTHING IS GODADDY'S FAULT :P
    – William
    Commented Sep 23, 2014 at 13:43
  • I also have Resource Level 2 however my sites are going down 10 times a day and not helped me at all. How many domains do you have on this hosting account? Commented Mar 17, 2015 at 17:15

3 Answers 3

4

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.

Edit 2020:

So the P3 Profiler plugin might be dead. There is a new Health Check plugin from Automattic that should do an adequate job of replacing P3 and if you have shell access to your server/site, you can also use the WordPress Command Line Interface (wp cli) and run wp doctor check --all for more complete checks.

2
  • P3 plugin no longer works Commented Oct 8, 2020 at 18:58
  • This is a six year-old answer, I'm not surprised.
    – JCL1178
    Commented Oct 27, 2020 at 21:10
3

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.

0
1

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.

2
  • 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 Commented Apr 11, 2014 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
    Commented Apr 12, 2014 at 4:31

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