Optimizing Apache Memory Usage | Mpm prefork settings

Опубликовано: 26 Сентябрь 2018
на канале: Chris Titus Tech
18,250
244

This video goes over optimizing apache memory usage by configuring mpm prefork module to optimal values for your server.

UPDATE: Run this curl command and it will just tell you what you should put
curl -sL https://raw.githubusercontent.com/ric... | perl

Commands used:
Check Apache Memory usage
ps -ylC apache2 --sort:rss | awk '{sum+=$8; ++n} END {print "Tot="sum"("n")";print "Avg="sum"/"n"="sum/n/1024"MB"}'
Launch Memory manager / resource viewer
'htop' OR you can use 'top' for less options and visuals

Values to calculate:
Total System Memory Free - Buffer / Apache2 MB usage = MaxRequestWorkers, ServerLimit, and MaxClients

My Settings in Video: Server Instance (Standard) 1 dedicated vCPU with 3.5 GB of Memory

prefork MPM
StartServers: number of server processes to start
MinSpareServers: minimum number of server processes which are kept spare
MaxSpareServers: maximum number of server processes which are kept spare
MaxRequestWorkers: maximum number of server processes allowed to start
MaxConnectionsPerChild: maximum number of requests a server process serves
StartServers 3
MinSpareServers 5
MaxSpareServers 10
ServerLimit 45
MaxClients 45
MaxRequestWorkers 45
MaxConnectionsPerChild 2000

45 processes x 68 MB per = 3060 MB .

►► Digital Downloads ➜ https://www.cttstore.com
►► Reddit ➜   / christitustech  
►► Titus Tech Talk ➜    / titustechtalk  
►► Twitch ➜   / christitustech  


Смотрите видео Optimizing Apache Memory Usage | Mpm prefork settings онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Chris Titus Tech 26 Сентябрь 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 18,250 раз и оно понравилось 244 людям.