Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Is this normal?
PostPosted: Tue Jul 12, 2011 11:20 am 
Offline
Senior Newbie

Joined: Mon Jul 11, 2011 6:59 am
Posts: 12
AOL: 96+Coombe+Dale
Location: United Kingdom
Hey.

I've just been monitoring the processes on my server and it appeared that almost all my memory had been used up.. and wondered if this was normal. See pic attached: http://i53.tinypic.com/n6uq14.jpg

Also, is it correct that there are so many "ruby" commands running? I have a few sites working through nginx and passenger so I thought that might be the reason why but where are there so many?!

Any help greatly appreciated :)

Alex


Last edited by alexfoxy on Tue Jul 12, 2011 11:46 am, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Tue Jul 12, 2011 11:31 am 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
Read this:
http://www.linuxatemyram.com/


Top
   
 Post subject:
PostPosted: Tue Jul 12, 2011 11:36 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
waldo wrote:


That does not apply in this situation. He's maxed out almost all his RAM with little cache.

Yes, you've got too many copies of Ruby running. They're consuming all your RAM.


Top
   
 Post subject:
PostPosted: Tue Jul 12, 2011 11:37 am 
Offline
Senior Newbie

Joined: Mon Jul 11, 2011 6:59 am
Posts: 12
AOL: 96+Coombe+Dale
Location: United Kingdom
hmm, thanks!


Top
   
 Post subject:
PostPosted: Tue Jul 12, 2011 11:41 am 
Offline
Senior Newbie

Joined: Mon Jul 11, 2011 6:59 am
Posts: 12
AOL: 96+Coombe+Dale
Location: United Kingdom
So.. does anyone know *why* I have lots of version of ruby running? It seems when I visit a site running on my server another process of ruby appears in my process list? Is that correct?

Alex


Top
   
 Post subject:
PostPosted: Tue Jul 12, 2011 11:47 am 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
Guspaz wrote:
waldo wrote:


That does not apply in this situation. He's maxed out almost all his RAM with little cache.

Yes, you've got too many copies of Ruby running. They're consuming all your RAM.


Oops, I guess I should've looked at his screenshot for more than 1/2 a second... :)


Top
   
 Post subject:
PostPosted: Tue Jul 12, 2011 12:08 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
alexfoxy wrote:
So.. does anyone know *why* I have lots of version of ruby running? It seems when I visit a site running on my server another process of ruby appears in my process list? Is that correct?

Alex


I'm guessing you're running passenger on nginx, check out this setting http://modrails.com/documentation/Users ... axPoolSize

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Tue Jul 12, 2011 12:31 pm 
Offline
Senior Newbie

Joined: Mon Jul 11, 2011 6:59 am
Posts: 12
AOL: 96+Coombe+Dale
Location: United Kingdom
Thanks, I'll give it a go.. I've set it to 4 for now!


Top
   
 Post subject:
PostPosted: Tue Jul 12, 2011 12:36 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Also if you're not already using it try ruby enterprise edition http://www.rubyenterpriseedition.com/ it uses less ram.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Wed Jul 13, 2011 5:01 am 
Offline
Senior Newbie

Joined: Mon Jul 11, 2011 6:59 am
Posts: 12
AOL: 96+Coombe+Dale
Location: United Kingdom
hmm, I'm running with maxPoolSize at 4 but only have 12mb free memory atm!

I looked on passenger-status and only 2 pools are active :
max = 4
count = 2
active = 0
inactive = 2
Waiting on global queue: 0

Do I simply need to update my server? I have various sites running on the server and in total they are getting about 8-10k hits per month with, on average, 8 page views per visit.

Any ideas, or is this one I need to work out myself?!! Thanks :)


Top
   
 Post subject:
PostPosted: Wed Jul 13, 2011 5:12 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
What's the output of
Code:
ps aux --sort -rss
(any lines with 0 in the rss column can be ignored)

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Wed Jul 13, 2011 5:35 am 
Offline
Senior Newbie

Joined: Mon Jul 11, 2011 6:59 am
Posts: 12
AOL: 96+Coombe+Dale
Location: United Kingdom
Here you go: http://i53.tinypic.com/15nriue.jpg

(is it easier to post these as plain text for you guys?)

A


Top
   
 Post subject:
PostPosted: Wed Jul 13, 2011 5:44 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Well your top 5 processes are using ~280mb what does the output of
Code:
free -m
say? (And plain text or a picture are both fine)

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Wed Jul 13, 2011 5:45 am 
Offline
Senior Newbie

Joined: Mon Jul 11, 2011 6:59 am
Posts: 12
AOL: 96+Coombe+Dale
Location: United Kingdom
total used free shared buffers cached
Mem: 512 401 110 0 8 45
-/+ buffers/cache: 348 164
Swap: 127 11 116

A


Top
   
 Post subject:
PostPosted: Wed Jul 13, 2011 5:47 am 
Offline
Senior Newbie

Joined: Mon Jul 11, 2011 6:59 am
Posts: 12
AOL: 96+Coombe+Dale
Location: United Kingdom
oh that didn't work v well! here's an image : http://i55.tinypic.com/xf5jdt.png


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


Who is online

Users browsing this forum: No registered users and 0 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