i'm on a dedicated server but i've been having problems recently with the memory. my host says it keeps running out and bringing the server down. i can always reboot it again, but it goes down far too often.
my site is large, but not large enough to be using up all the resources. so there must be a particular script that is causing problems.
my entire site is built with php/mysql. my problem is that im a bit of a newbie when it comes to dedicated servers, and im not sure how to go about finding out which script it is.
is there an easy way in cpanel or WHM to see which one is causing the problems?
i think im going to have to learn how to use Shell, because i havent a clue about that at the moment. from what i have read that is the only way im going to be able to do it in the future... but... i figured this one out anyway. it was wordpress.
i was calling all the wordpress functions on my non-wordpress pages, so i could grab a few posts and print them out. using a little bit of php i found out that when you call all those functions the memory use goes up three-fold! so i have stopped including all those functions now, and im just doing some straight calls to the database instead, which seems to have solved the problem
you can compile php with the suphp, so that all the php process will be run under the respective user hosting account and by using the following command from the shell, you can easily found out which user hosting account is causing the memory usage problem on your server...