| 145 | * <參考> [http://bobcares.com/blog/?p=71 Configuring Apache for Maximum Performance] |
| 146 | * <參考> [http://www.devside.net/articles/apache-performance-tuning Apache Performance Tuning] |
| 147 | {{{ |
| 148 | prefork [default MPM for Apache 2.0 and 1.3]: |
| 149 | |
| 150 | * Apache 1.3-based. |
| 151 | * Multiple processes, 1 thread per process, processes handle requests. |
| 152 | * Used for security and stability. |
| 153 | * Has higher memory consumption and lower performance over the newer Apache 2.0-based threaded MPMs. |
| 154 | worker: |
| 155 | |
| 156 | * Apache 2.0-based. |
| 157 | * Multiple processes, many threads per process, threads handle requests. |
| 158 | * Used for lower memory consumption and higher performance. |
| 159 | * Does not provide the same level of isolation request-to-request, as a process-based MPM does. |
| 160 | }}} |
| 161 | {{{ |
| 162 | MaxClients ≈ (RAM - size_all_other_processes)/(size_apache_process) |
| 163 | }}} |