homepage Welcome to WebmasterWorld Guest from 54.198.42.105
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Memory problems on server
how can you tell which script is at fault?
londrum




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

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?

 

phranque




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

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

cmpe




msg:4469049
 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?

londrum




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

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

linux7802




msg:4485748
 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved