I have recently setup a new VPS to host about 10 websites and at the start was getting consistent crashing issues seemingly caused from too many processes starting to zombie processes getting hung. It seemed that the default fcgid settings were way to low.
FcgidIdleTimeout 40 FcgidProcessLifeTime 30 FcgidMaxProcesses 20 FcgidMaxProcessesPerClass 8 FcgidMinProcessesPerClass 0 FcgidConnectTimeout 30 FcgidIOTimeout 45 FcgidInitialEnv RAILS_ENV production FcgidIdleScanInterval 10
Since then I have used the default fcgid settings from apache.org. The problem is now the server is using a lot of RAM, which is okay at the moment about 100MB - 200MB free but before using the defaults had over 1GB free. I am worried as I add more sites it's going to be too much and degrade performance.
FcgidInitialEnv RAILS_ENV production FcgidBusyScanInterval 120 FcgidBusyTimeout 300 FcgidConnectTimeout 3 FcgidErrorScanInterval 3 FcgidIdleScanInterval 120 FcgidIdleTimeout 300 FcgidIOTimeout 40 FcgidMaxProcesses 1000 FcgidMaxProcessesPerClass 100 FcgidMaxRequestInMem 65536 FcgidMaxRequestLen 131072 FcgidMaxRequestsPerProcess 0 FcgidMinProcessesPerClass 3 FcgidOutputBufferSize 65536 FcgidProcessLifeTime 3600 FcgidSpawnScore 1 FcgidSpawnScoreUpLimit 10 FcgidTerminationScore 2 FcgidTimeScore 1 FcgidZombieScanInterval 3
Any recommendations for these settings or areas I should be careful of. I am fairly new to Linux servers