server performance , out of memory etc

8 views
Skip to first unread message

tom

unread,
Jun 27, 2018, 8:36:01 AM6/27/18
to Ruby on Rails: Talk
hi, 
i was wondering what a typical setup for a small web app is.

my challenge currently is that my server kills some processes because im out of memory.

i am running ruby 2.3, nginx, passenger, mta, sidekick.

i have 4gb ram and i am on digital ocean. i have barely any traffic on the site.

what "should" that server be handle? 
what does your configuration look like? care to share configs?

thx

Walter Lee Davis

unread,
Jun 27, 2018, 9:08:42 AM6/27/18
to rubyonra...@googlegroups.com
Wow. That's quite a lot of RAM to be starved like that. I've been running four moderately-traffic'd Rails apps, along with a smattering of PHP apps, on one "droplet" with (I had to go look at the control panel) 1GB RAM and 30GB SSD. It's been up and running for four years. There's a Rails 3.2 app, a Rails 4.0 app, a Rails 4.2 app, and a Rails 5.1 app. There's also two major PHP apps that get a lot of love from mostly spammers, and one minor one that never gets any traffic. I'm not holding this up as a bastion of good devops, but just to give you the counterpoint that your server is probably not your problem.

What application server are you using, and which database? I'm on Passenger (mod_passenger compiled into Apache), using MySQL.

Walter
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMfHstCNvt65wFQzDy-fptU3aDM3YAkjj24LV6pfpFCoEg%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages