Skip to content

Commit

Permalink
HDDS-1503. Reduce garbage generated by non-netty threads in datanode …
Browse files Browse the repository at this point in the history
…ratis server (#813)
  • Loading branch information
lokeshj1703 authored May 14, 2019
1 parent 02c9efc commit 6bcc1dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hadoop-ozone/common/src/main/bin/ozone
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ function ozonecmd_case
;;
datanode)
HADOOP_SUBCMD_SUPPORTDAEMONIZATION="true"
HDDS_DN_OPTS="${HDDS_DN_OPTS} -Dlog4j.configurationFile=${HADOOP_CONF_DIR}/dn-audit-log4j2.properties"
# Add JVM parameter (org.apache.ratis.thirdparty.io.netty.allocator.useCacheForAllThreads=false)
# for disabling netty PooledByteBufAllocator thread caches for non-netty threads.
# This parameter significantly reduces GC pressure for Datanode.
# Corresponding Ratis issue https://issues.apache.org/jira/browse/RATIS-534.
HDDS_DN_OPTS="${HDDS_DN_OPTS} -Dlog4j.configurationFile=${HADOOP_CONF_DIR}/dn-audit-log4j2.properties -Dorg.apache.ratis.thirdparty.io.netty.allocator.useCacheForAllThreads=false"
HADOOP_OPTS="${HADOOP_OPTS} ${HDDS_DN_OPTS}"
HADOOP_CLASSNAME=org.apache.hadoop.ozone.HddsDatanodeService
OZONE_RUN_ARTIFACT_NAME="hadoop-ozone-datanode"
Expand Down

0 comments on commit 6bcc1dc

Please sign in to comment.