分享

hadoop的内存heap大小的配置参数 .

此为小知识点,相信大家一看就明白,一般heap大小的表示为-Xmx。。


1、tasktracker的heapsize的大小设置
  1. <property>
  2.   <name>mapred.child.java.opts</name>
  3.   <value>-Xmx200m</value>
  4.   <description>Java opts for the task tracker child processes.  
  5.   The following symbol, if present, will be interpolated: @taskid@ is replaced
  6.   by current TaskID. Any other occurrences of '@' will go unchanged.
  7.   For example, to enable verbose gc logging to a file named for the taskid in
  8.   /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  9.         -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  10.   
  11.   The configuration variable mapred.child.ulimit can be used to control the
  12.   maximum virtual memory of the child processes.
  13.   </description>
  14. </property>
复制代码




2、namenode、datanode和jobtracker的heapsize的设置:
hadoop-env.sh中的HADOOP_HEAPSIZE的变量来制定


没找到任何评论,期待你打破沉寂

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条