Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jun 27, 2012 2:53 am 
Offline
Newbie

Joined: Wed Jun 27, 2012 2:50 am
Posts: 3
Hello, I ran the following command:

ps axo %mem,comm,pid,euser | sort -nr | head -n 10

to check the top memory consuming processes.

I am always getting apache2 service by www-data user as the top memory consumers, there are close to 10 of these. The thing is even after restarting apache, these processes start showing up immediately.

I have just a Wordpress installation on the server and can confirm that it is not generating any such data files via php.

Can anyone please help - I am running out of RAM just by running one wordpress install :(


Top
   
PostPosted: Wed Jun 27, 2012 6:24 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Are you? You probably aren't running out of RAM, although those processes are behaving normally. (PHP typically infects Apache with an on-the-fly interpreter.)

What does the output of "free -m" say?

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Wed Jun 27, 2012 7:04 am 
Offline
Newbie

Joined: Wed Jun 27, 2012 2:50 am
Posts: 3
Thanks for replying.

Here is the output of free -m:


total used free shared buffers cached
Mem: 487 440 46 0 8 135
-/+ buffers/cache: 297 190
Swap: 511 82 429



Also, I am regularly getting these Disk I/O alerts from Linode.


Top
   
PostPosted: Wed Jun 27, 2012 5:55 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
I'm assuming you're using Apache, mod_php, and mpm-prefork... what is your MaxClients set to in your Apache configuration?

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Sun Jul 01, 2012 5:45 pm 
Offline
Newbie

Joined: Wed Jun 27, 2012 2:50 am
Posts: 3
MaxClients is set to 40. Earlier it was set to 10 but started getting this error meesage of "consider increasing maxclients" after which i set the number to 40.

My Apache processes still take up close to 70MB RAM each which means at this rate the server will be able to handle just ~6 apache processes. The sad thing is I am noticing traffic drop after moving to Linode now :(


Top
   
PostPosted: Sun Jul 01, 2012 8:01 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
What's KeepaliveTimeout set to? Should be maybe 5 seconds, tops. Also, mod_php is a horrible, terrible thing.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group