Changes between Version 4 and Version 5 of jazz/demo.crawlzilla.info


Ignore:
Timestamp:
Apr 4, 2013, 10:34:06 AM (11 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/demo.crawlzilla.info

    v4 v5  
    3838 * [參考] [http://stackoverflow.com/questions/13631994/what-is-the-best-practice-for-tomcat-performance-tuning-in-amazon-ubuntu-instanc What is the best practice for tomcat performance tuning in Amazon ubuntu instance?]
    3939
    40  * 此外,也發現 Apache2 的 Keep-Alive 時間很長,因此需要對 Apache2 的 mod_proxy 做一些調整
     40 * 此外,也發現 Apache2 的 '''Keep-Alive 時間很長''',因此需要對 Apache2 的 mod_proxy 做一些調整
    4141   * [參考] http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass
    4242{{{
     
    4545  SetEnv proxy-nokeepalive 1
    4646}}}
     47 * 同樣地,我們也降低 Tomcat 自身的 Keep-Alive 時間,縮短 Timeout,讓資源可以快速釋放出來。
     48   * [參考] [http://stackoverflow.com/questions/1542502/java-server-cpu-usage-at-100-after-two-days-continous-running-with-about-110-us Java server cpu usage at 100% after two days continous running with about 110 users]
     49   * [參考] [http://www.virtualzone.de/2010/11/tomcat-apache-high-cpu-usage.html  Tomcat & Apache: High CPU Usage]
     50{{{
     51## 編輯 /opt/crawlzilla/tomcat/conf/server.xml
     52    <Connector port="8080" protocol="HTTP/1.1"
     53               keepAliveTimeout="2000"
     54               connectionTimeout="2000"
     55               redirectPort="8443" URIEncoding="UTF-8"
     56               compression="on"
     57               compressableMimeType="application/octet-stream,text/html,text/xml,text/plain,application/x-javascript,image/gif,text/css,image/gif,application/vnd.ms-excel,application/pdf"
     58               enableLookups="false"
     59               useBodyEncodingForURI="true" />
     60}}}