Creating rubies on rails takes less memory

I am trying to run a Ruby on Rails ( redmine ) project on VPS. It works, but it takes up quite a bit of RAM. The rails application is very easy to use compared to the rest of the VPS. I also have lighttpd on the server.

I am new to Ruby and know that there are several ways to run webapp in Ruby. I am currently just using webrick (and everything is fine by running it manually). Is there any other way to run webapp that is more memory efficient?

+4
source share
2 answers

The rails really just capture memory, this is a hell of a lot of application. One of the things you can do is try installing Ruby Enterprise Edition, but if you are on a VPS there is probably not much chance of it. But perhaps the best option is to abandon the application on the hero and no longer worry about it. You will have other difficulties, such as setting up email to deal with them, but otherwise Heroku is the best thing that ever happened to rails (I think, at least maybe Merb: P)

+2
source

If you are new to Rails, configurations and even Linux, the best option would be Apache / Nginx + Phusion Passenger + REE . If your VPS is something you control, such as Slicehost, Webbynode, Linode or the like, then this will be an easier route.

Slicehost articles should help you a lot by going through each step of setting up your VPS. And the steps even work on other VPS hosting companies, just match the Linux distribution.

If you are really green for RoR and configured VPSes's-es (?), And if you do not need more than 512 MB of fragment - I agree with Chuck, start with Heroku until you hit about 3-4 dinosaurs. And since the Redmine demo is on Heroku - you know that it works!

+1
source

Source: https://habr.com/ru/post/1301075/


All Articles