Performance Tuning Apache

From Michael's Information Zone
Jump to navigation Jump to search

I do not know what I am doing with this, these are just notes I pulled elsewhere.

Workers and Children

[1]The following is the first step in knowing how many max request workers should be used.

ps -ylC httpd --sort:rss | awk '{sum+=$8; ++n} END {print "Tot="sum"("n")";print "Avg="sum"/"n"="sum/n/1024"MB"}'

If I understand things correctly (which I probably don't), I should be able to increase the number of workers from default 30 to 60.

  • Average per process : ~150M (I round up to 200M)
  • Total RAM : 15667M - 512M (for server overhead) = 15155M
  • 15155M / 200M = ~79
  • https://serverfault.com/questions/353828/finding-average-size-of-single-apache-process-for-setting-maxclients