Is this normal?
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:
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
@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.
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
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
ps aux --sort -rss
(any lines with 0 in the rss column can be ignored)
(is it easier to post these as plain text for you guys?)
A
free -m
say? (And plain text or a picture are both fine)
Mem: 512 401 110 0 8 45
-/+ buffers/cache: 348 164
Swap: 127 11 116
A