Reduce Rails Memory Usage, Fix Leaks, R14 and Save Money on Heroku Updated Apr 26, 2023 5 minute read In theory, you can run both Rails web server and Sidekiq process on one 512mb Heroku dyno. For side projects with small traffic, saving $7/month always comes in handy. Unfortunately when trying to fit two Ruby processes on one dyno you can run into memory issues, leaks and R14 quota exceeded error
![Reduce Rails Memory Usage, Fix Leaks, R14, Save Money on Heroku [4 Tips]](https://cdn-ak-scissors.b.st-hatena.com/image/square/e3bc1cefeaa3ed5c6f73c6c795fa8187ee6021a7/height=288;version=1;width=512/https%3A%2F%2Fpawelurbanek.com%2Fassets%2Fpig-represents-saving-money-on-heroku-2d7543382abaf45f25c54acb474d389536034d92a759e0317178e6d1f3ac2f15.jpg)