| 1 | # prefork MPM |
| 2 | # StartServers: number of server processes to start |
| 3 | # MinSpareServers: minimum number of server processes which are kept spare |
| 4 | # MaxSpareServers: maximum number of server processes which are kept spare |
| 5 | # MaxRequestWorkers: maximum number of server processes allowed to start |
| 6 | # MaxConnectionsPerChild: maximum number of requests a server process serves |
| 7 | |
| 8 | <IfModule mpm_prefork_module> |
| 9 | StartServers 5 |
| 10 | MinSpareServers 5 |
| 11 | MaxSpareServers 10 |
| 12 | # 150 MaxRequestWorkers is way too high. (20 may also be too high.) we don't need that many, and it caused shop.fsf.org to swap and fail. 15 is better. -- sudoman 2017-08-03 |
| 13 | # Quidam: Restored to 150, which is below the default and below what the vm can take. the swap issue needs to be reevaluated. The machine was failing to serve requests |
| 14 | # sudoman: 150 is wayy too high. apache was using 2 GB ram and 1 GB swap with 130 processes. restarting it with 150 workers caused the ram to be almost used up immediately. 75 is a good compromise. if you want more workers, give the vm more ram. |
| 15 | # sudoman: i gave the shop 2 GB more memory, so 150 should be fine. -- 2018-10-04 |
| 16 | MaxRequestWorkers 150 |
| 17 | MaxConnectionsPerChild 5000 |
| 18 | </IfModule> |
| 19 | |
| 20 | # vim: syntax=apache ts=4 sw=4 sts=4 sr noet |