It’s been ages since I did Rails, but I remember that back then memory leaks were just a fact of life and you had to have a system that monitors the server processes and restarts them when the memory usage gets too high.
I truly hope that’s not still the case.