Welcome to WebmasterWorld Guest from

Forum Moderators: bakedjake

Message Too Old, No Replies

Memory problems on server

how can you tell which script is at fault?



12:40 pm on Jun 14, 2012 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member

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?


8:33 pm on Jun 14, 2012 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

if you can open a terminal session with telnet or ssh, for example, you could try the 'top' Unix utility [unixtop.org] such as:

top -o size


2:00 am on Jun 25, 2012 (gmt 0)

Hey londrum,

Log into WHM and type "process manager" in the Find box at the top left.

Or under "System Health" click on "Process Manager"

Click on the Memory % column until it is sorted highest to lowest.

What does "server going down" mean? Like you can't access anything at all?


4:51 pm on Jun 29, 2012 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member

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


1:53 am on Aug 17, 2012 (gmt 0)

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...

top -d2c

Featured Threads

Hot Threads This Week

Hot Threads This Month