Changes between Version 4 and Version 5 of jazz/11-04-13


Ignore:
Timestamp:
Apr 14, 2011, 5:35:53 PM (14 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/11-04-13

    v4 v5  
    5252virtual memory          (kbytes, -v) 524288
    5353}}}
    54  * <2> 把 /etc/apache2/apache2.conf 改成只使用 prefork 模組,並且降低 KeepAlive 的時間,還有降低預設開啟的 apache process 數量。
     54 * <2> 把 /etc/apache2/apache2.conf 改成只使用 prefork 模組,並且降低 !KeepAliveTimeout 的時間(15秒降低到2秒),還有降低預設開啟的 apache process 數量。
    5555{{{
    5656#!diff
     
    143143 User ${APACHE_RUN_USER}
    144144}}}
     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{{{
     148prefork [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.
     154worker:
     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{{{
     162MaxClients ≈ (RAM - size_all_other_processes)/(size_apache_process)
     163}}}