Project

General

Profile

Actions

Feature #18821

closed

Set PassengerMaxRequests and PassengerMemoryLimit to reasonable values

Added by Lukas Zapletal about 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman modules
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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

Actions

Also available in: Atom PDF