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


Ignore:
Timestamp:
May 11, 2013, 4:29:36 PM (11 years ago)
Author:
jazz
Comment:

--

Legend:

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

    v5 v6  
    5959               useBodyEncodingForURI="true" />
    6060}}}
     61
     62== 2013-05-11 ==
     63
     64 * 也許因為註冊人數變多了,開始會遇到 Tomcat 記憶體不足的現象。因此做了點小的調整:
     65 * 因為 Hadoop 的資源使用量並不大,因此把 hadoop-env.sh 的 HADOOP_HEAPSIZE 調降到 256M - /opt/crawlzilla/nutch/conf/hadoop-env.sh
     66{{{
     67# The maximum amount of heap to use, in MB. Default is 1000.
     68export HADOOP_HEAPSIZE=256
     69}}}
     70 * 其次,修改 mapred-site.xml 的預設 mapper 個數與 reducer 個數。 - /opt/crawlzilla/nutch/conf/mapred-site.xml
     71{{{
     72   <property>
     73    <name>mapred.tasktracker.map.tasks.maximum</name>
     74    <value>6</value>
     75    <description>The maximum number of map tasks that will be run
     76    simultaneously by a task tracker.
     77    </description>
     78  </property>
     79  <property>
     80    <name>mapred.tasktracker.reduce.tasks.maximum</name>
     81    <value>2</value>
     82    <description>
     83    </description>
     84  </property>
     85}}}
     86 * 增加 Tomcat 的 HEAPSIZE 到 4GB - /opt/crawlzilla/tomcat/bin/catalina.sh
     87{{{
     88case "`uname`" in
     89CYGWIN*) cygwin=true;;
     90OS400*) os400=true;;
     91Darwin*) darwin=true;;
     92esac
     93
     94## Add by Jazz - 2013-05-11
     95export CATALINA_OPTS="-Xms1024m -Xmx4096m"
     96
     97# resolve links - $0 may be a softlink
     98PRG="$0"
     99}}}