Is this normal?

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

16 Replies

Read this:

http://www.linuxatemyram.com/

@waldo:

Read this:

http://www.linuxatemyram.com/

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.

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

@Guspaz:

@waldo:

Read this:

http://www.linuxatemyram.com/

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… :)

@alexfoxy:

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">http://modrails.com/documentation/Users%20guide%20Nginx.html#PassengerMaxPoolSize

Thanks, I'll give it a go.. I've set it to 4 for now!

Also if you're not already using it try ruby enterprise edition http://www.rubyenterpriseedition.com/ it uses less ram.

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 :)

What's the output of ps aux --sort -rss (any lines with 0 in the rss column can be ignored)

Here you go: http://i53.tinypic.com/15nriue.jpg

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

A

Well your top 5 processes are using ~280mb what does the output of free -m say? (And plain text or a picture are both fine)

total used free shared buffers cached

Mem: 512 401 110 0 8 45

-/+ buffers/cache: 348 164

Swap: 127 11 116

A

oh that didn't work v well! here's an image : http://i55.tinypic.com/xf5jdt.png

You're using 348MB you're fine the bit you want to look at is the +/- buffers/cache line.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct