Feature #18821
closedSet PassengerMaxRequests and PassengerMemoryLimit to reasonable values
Description
We leave these values unconfigured which means no restarting is performed. Ruby VM is known to grow on memory and due nature of it's memory model, it never returns memory back to OS and due fragmentation it grows slowly. The only way out on CRuby (MRI) is to restart processes after some time, it should not happend more than once per day as a generic rule of thumb.
Now, Passenger provides tools to do this automatically, it can restart after N served requests and/or after memory goes above threshold. We should be able to setup reasonable default values (100,000 requests and 1 GB memory per instance) to prevent OOM kills which happens on production installs.
https://www.phusionpassenger.com/library/config/apache/reference/#passengermemorylimit
https://www.phusionpassenger.com/library/config/apache/reference/#passengermaxrequests