Wordpress install: 1 running, 375 sleeping processes

wordpress

#1

VPS hosting with the full 4000 MB allotment.

This is getting to be a major problem. My load averages: 0.78, 0.99, 0.72. I have 1-3 running processes, a ton of sleeping processes, and my site is essentially unaccessible. I have tried disabling every plugin to no effect. My memory usage is less than half the 4096000K I am paying for and yet the site is so ridiculously slow when traffic is high.

Any ideas? Do I need to tweak an apache setting? My top is full of php5.cgi and apache2-psxxx like you’d expect.


#2

Update: My support ticket told me to “increase the available RAM.” facepalm


#3

Here’s my top:

top - 20:34:58 up 21:30, 1 user, load average: 0.60, 1.03, 0.83
Tasks: 364 total, 2 running, 362 sleeping, 0 stopped, 0 zombie
Cpu(s): 16.1%us, 9.7%sy, 0.0%ni, 70.1%id, 1.4%wa, 0.0%hi, 2.6%si, 0.0%st
Mem: 4096000k total, 4095148k used, 852k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 2459432k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
10025 timothyb 20 0 175m 66m 24m S 35 1.7 0:46.29 php5.cgi
21457 timothyb 20 0 155m 49m 23m S 7 1.2 0:12.10 php5.cgi
21451 timothyb 20 0 155m 49m 23m S 5 1.2 0:11.88 php5.cgi
21454 timothyb 20 0 156m 49m 23m S 5 1.2 0:15.97 php5.cgi
9821 timothyb 20 0 175m 66m 24m R 3 1.7 0:40.48 php5.cgi
24511 timothyb 20 0 161m 55m 23m S 3 1.4 0:02.39 php5.cgi
24509 timothyb 20 0 155m 49m 23m S 2 1.2 0:04.87 php5.cgi
20148 dhapache 20 0 264m 11m 2692 S 1 0.3 0:00.18 apache2-ps4
20677 dhapache 20 0 268m 13m 3532 S 1 0.3 0:00.28 apache2-ps4
21329 dhapache 20 0 264m 11m 2704 S 1 0.3 0:00.19 apache2-ps4
21692 dhapache 20 0 258m 12m 2712 S 1 0.3 0:00.31 apache2-ps4
18566 timothyb 20 0 19088 1480 944 R 0 0.0 0:31.92 top
20110 dhapache 20 0 266m 12m 2612 S 0 0.3 0:00.12 apache2-ps4
20165 dhapache 20 0 277m 15m 2792 S 0 0.4 0:00.31 apache2-ps4
20169 dhapache 20 0 264m 11m 2676 S 0 0.3 0:00.14 apache2-ps4
20253 dhapache 20 0 266m 12m 2688 S 0 0.3 0:00.29 apache2-ps4
20260 dhapache 20 0 266m 12m 2756 S 0 0.3 0:00.29 apache2-ps4