apache:architecture
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
apache:architecture [2014/05/24 20:37] – [optimize load module apache] admin | apache:architecture [2015/06/25 05:32] – [Config disable warning log from browser] admin | ||
---|---|---|---|
Line 3: | Line 3: | ||
MPM(Multi Processing Module) | MPM(Multi Processing Module) | ||
===== MPM Prefork Architecture ===== | ===== MPM Prefork Architecture ===== | ||
+ | Basic configuration: | ||
* StartServers: | * StartServers: | ||
* MinSpareServers: | * MinSpareServers: | ||
- | * MaxSpareServers: | + | * MaxSpareServers: |
+ | * MaxClients: | ||
{{: | {{: | ||
+ | Config example:< | ||
+ | < | ||
+ | StartServers | ||
+ | MinSpareServers | ||
+ | MaxSpareServers | ||
+ | MaxClients | ||
+ | MaxRequestsPerChild | ||
+ | </ | ||
+ | check config: | ||
+ | * check number of httpd process with none client request:< | ||
+ | ps -eaf | grep httpd | ||
+ | </ | ||
+ | root 1629 | ||
+ | apache | ||
+ | apache | ||
+ | apache | ||
+ | apache | ||
+ | apache | ||
+ | apache | ||
+ | </ | ||
+ | * run load test with 20 concurrecy requests to server:< | ||
+ | ab -n 200 -c 20 http:// | ||
+ | </ | ||
+ | ps -eaf | grep httpd | ||
+ | root 1013 | ||
+ | apache | ||
+ | apache | ||
+ | apache | ||
+ | apache | ||
+ | apache | ||
+ | apache | ||
+ | apache | ||
+ | apache | ||
+ | apache | ||
+ | apache | ||
+ | apache | ||
+ | apache | ||
+ | </ | ||
===== MPM worker Architecture ===== | ===== MPM worker Architecture ===== | ||
* StartServers: | * StartServers: | ||
Line 192: | Line 232: | ||
</ | </ | ||
==== optimize load module php ==== | ==== optimize load module php ==== | ||
+ | ===== Custom Config for Apache ===== | ||
+ | ==== Config disable warning log from browser ==== | ||
+ | With this config, the log will display in PHP error log but they don't display in browser side\\\ | ||
+ | Update httpd.conf | ||
+ | <code php> | ||
+ | < | ||
+ | php_admin_flag display_errors off | ||
+ | </ | ||
+ | </ | ||
+ |
apache/architecture.txt · Last modified: 2022/10/29 16:15 by 127.0.0.1