A Question on Memory Use & WordPress Sites

wordpress

#1

I’ve got a few WordPress sites, and a couple of them are experiencing craptons of 404s, which are apparently due to memory use and threads being killed.

The one that gets killed isn’t necessarily the high user, but rather it’s because it causes the per account max to be hit.

What can I do to see, more real time, what is using what, so I can see what is using what, so I can work out what might be using more resources?

I tried the stats/memory stuff in the panel/users, but it appears to be broke. I get a 404 when I go looking for the results, and looking around in the shell, in the logs directory reveals nothing really useful.

[font=Courier]
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
10966 tdiaz 20 0 0 0 0 Z 0 0.0 0:00.91 php5.cgi
10971 tdiaz 20 0 0 0 0 Z 0 0.0 0:00.72 php5.cgi
4952 tdiaz 20 0 205m 17m 7588 S 0 0.1 0:01.82 php5.cgi
5110 tdiaz 20 0 120m 16m 7436 S 0 0.1 0:00.37 php5.cgi
10355 tdiaz 20 0 131m 28m 7796 S 0 0.2 0:00.68 php5.cgi
10411 tdiaz 20 0 132m 28m 7508 S 0 0.2 0:00.21 php5.cgi
10844 tdiaz 22 2 65936 1676 1052 S 0 0.0 0:00.00 sshd
10845 tdiaz 22 2 99.7m 2192 1364 S 0 0.0 0:00.01 bash
10874 tdiaz 20 0 138m 34m 7580 S 0 0.2 0:00.23 php5.cgi
10884 tdiaz 22 2 18884 1180 944 R 0 0.0 0:00.00 top
[/font]


#2

you might need to contact support if you can’t access your logs dir.

if you have access to your app’s code, you could add some code to log memory use & processes… the stuff that DH generates is all aggregated by user, so it’s not very useful for tracking down memory hogs.