A
A
Alexander Korolev2015-12-15 13:22:14
Ruby on Rails
Alexander Korolev, 2015-12-15 13:22:14

How to optimize server resource usage for Rails applications?

Good afternoon.
I have a VPS with four RAILS applications - while 10 people visit there per day. RAM - 1GB plus 512MB swap.
Three applications work fine, when I turn on the third - the memory is running out.
You can somehow defeat this without adding memory (that is, somehow twist something, but not to build the kernel from the sources).
What I use when deploying: rvm + unicorn + nginx, each application has 2 workers.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Wolf, 2015-12-15
@kunashir

Four unicorns for 1GB? Yes, and 2 workers ?!
Here, either change the server (to a puma, for example), or remove 1 worker from all applications.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question