Fcgid settings for a shared environment in cPanel
Fcgid is known to use lots of ram due its way of keeping process alive even after the request is resolved.
To make sure your server is kept in rails, you need to use certain limits or settings to keep everything under control.
These are my current settings for now:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
MaxRequestsPerProcess 1000 FcgidMaxProcesses 200 FcgidProcessLifeTime 7200 MaxProcessCount 500 FcgidIOTimeout 400 FcgidIdleTimeout 600 FcgidIdleScanInterval 90 FcgidBusyTimeout 300 FcgidBusyScanInterval 80 ErrorScanInterval 3 ZombieScanInterval 3 <strong>DefaultMinClassProcessCount 0</strong> <strong>DefaultMaxClassProcessCount 3</strong> <strong>MaxRequestLen 20468982</strong> |