What sort of limits do you think are good? RLimitCPU - say 70-80% ?
RLimitNPROC should not be less than MaxClients, and for things like SuExec and possibly the new php-cgi it may spawn more child processes, so something like (MaxClients + 20)?
RLimitMEM is per process limit so I can suggest to find maximum value of virtual memory size and then double it ( (ps h -U apache -ovsz | sort -rn | head -1) * 2 ) * 1024) (you have to multiply by 1024 because it reports back in KB and RLimitMEM is in bytes)
Across all of my systems: this was the highest number of an individual system 4464189440 This was the average of several dozen 2981020558
So a Good(?) proposed limit: RLimitCPU 75 RLimitNPROC 535 (assuming max clients is 512) RLimitMEM 3500000000
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum