Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Aug 06, 2011 9:43 pm 
Offline
Newbie

Joined: Wed Jun 29, 2011 2:26 am
Posts: 2
I have a 512MB Linode with 3 websites with basically nonexistent traffic, each site running on Rails with Unicorn as the app server behind nginx.

The output of free -m is
...................total........used.......free........shared..buffers..cache
Mem:...........497........404.........92..........0..........5..........43
-/+ buffers/cache:......356.........141
Swap:..........255........247..........8

Things are going unimaginably slowly. How can I figure out what's going wrong?


Top
   
 Post subject:
PostPosted: Sun Aug 07, 2011 6:17 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

_________________
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: Sun Aug 07, 2011 8:04 am 
Offline
Newbie

Joined: Wed Jun 29, 2011 2:26 am
Posts: 2
Thanks for replying!

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
deploy 6525 0.4 8.8 66168 44912 ? Sl 06:26 0:23 unicorn_rails w
deploy 6528 0.4 8.7 66220 44452 ? Sl 06:26 0:23 unicorn_rails w
deploy 6522 0.4 8.7 66216 44344 ? Sl 06:26 0:23 unicorn_rails w
deploy 6499 0.4 8.6 66180 43948 ? Sl 06:26 0:23 unicorn_rails w
deploy 6493 0.2 8.2 52000 42184 ? Sl 06:26 0:16 unicorn_rails w
deploy 6502 0.2 7.3 49480 37608 ? Sl 06:26 0:16 unicorn_rails w
deploy 7004 0.5 7.0 44644 35828 ? Sl 07:32 0:08 unicorn_rails w
deploy 6562 0.3 4.9 58176 25128 ? Sl 06:26 0:20 unicorn_rails w
deploy 6565 0.3 4.9 58124 24984 ? Sl 06:26 0:20 unicorn_rails w
deploy 6568 0.3 4.8 58092 24872 ? Sl 06:26 0:20 unicorn_rails w
deploy 6571 0.3 4.8 58088 24764 ? Sl 06:26 0:20 unicorn_rails w
deploy 7163 3.9 2.7 19116 14200 ? Rl 07:58 0:00 unicorn_rails w
postgres 6947 0.0 1.5 47624 7764 ? Ss 07:21 0:00 postgres: deplo
postgres 6927 0.0 1.4 47632 7624 ? Ss 07:17 0:00 postgres: deplo
postgres 7019 0.0 1.4 47632 7600 ? Ss 07:34 0:00 postgres: deplo
deploy 2561 0.1 0.9 10572 4808 ? Sl Aug06 1:09 unicorn_rails m
deploy 2538 0.1 0.8 10568 4356 ? Sl Aug06 1:09 unicorn_rails m
deploy 2585 0.1 0.7 10564 3644 ? Sl Aug06 1:09 unicorn_rails m
root 7137 0.0 0.5 8404 2696 ? Ss 07:57 0:00 sshd: deploy [p
postgres 6653 0.0 0.4 47496 2516 ? Ss 06:29 0:00 postgres: deplo
postgres 6652 0.0 0.4 47496 2504 ? Ss 06:29 0:00 postgres: deplo
postgres 6654 0.0 0.4 47496 2496 ? Ss 06:29 0:00 postgres: deplo
postgres 6651 0.0 0.4 47496 2476 ? Ss 06:29 0:00 postgres: deplo
postgres 6649 0.0 0.4 47568 2444 ? Ss 06:28 0:00 postgres: deplo
postgres 6648 0.0 0.4 47568 2424 ? Ss 06:28 0:00 postgres: deplo
postgres 6646 0.0 0.4 47568 2416 ? Ss 06:28 0:00 postgres: deplo
postgres 6647 0.0 0.4 47568 2364 ? Ss 06:28 0:00 postgres: deplo

I should note that in desperation I rebooted last night, and free -m now reports I'm using 157 of 255 MB swap.


Top
   
 Post subject:
PostPosted: Sun Aug 07, 2011 11:59 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
I see 400mb being used by unicorn processes this doesn't leave much for anything else, can you reduce the number of workers?

_________________
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: Performance and Tuning
PostPosted: Wed Aug 17, 2011 10:18 pm 
Offline

Joined: Wed Aug 17, 2011 11:31 am
Posts: 1
Website: http://www.salonspotter.com/
I did not understand also the errors show. For my recommendation I think you should have to consult to an expert on that field so that it can be fixed immediately.

hair expert

_________________
hair expert


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