Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.