Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Re: Apache Memory Usage
PostPosted: Sun Dec 15, 2013 12:23 am 
Offline
Junior Member

Joined: Sat Mar 21, 2009 3:45 am
Posts: 48
On my system right now, I have 24 apache workers, each with a nominal RSS size of ~100MB. If you just add them all together, you'd conclude that I have 2.4 GB of apache processes + 250MB of mySQL on a 1GB Linode, Oh NOES!! But here is the thing, 'free' reports that I've got 50MB free, 14MB of buffers, and 276MB of disk cache, and I'm only using 40MB of swap. That doesn't add up.

The thing is, the RSS size of apache workers with mod_php generally includes a lot of shared memory. Using a script that tries to estimate the actual memory size of multi-process daemons suggests that apache is using something closer to 390MB, with 100MB of that shared, and about 290MB distributed amongst the individual processes, which only works out to about 12MB of dedicated memory per worker.

So, bottom line, your problem probably isn't apache at all (at least not from the evidence you've shared). The nginx reverse proxy is still worthwhile to do, eventually.


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


Who is online

Users browsing this forum: No registered users and 1 guest


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