Skip to content

Commit

Permalink
Disable useCacheForAllThreads for Ratis
Browse files Browse the repository at this point in the history
Ratis recommend disabling
`org.apache.ratis.thirdparty.io.netty.allocator.useCacheForAllThreads`
to reduce unnecessary GC pressure. This has shown to reduce up to 10%
memory overhead in some performance tests.

pr-link: Alluxio#12476
change-id: cid-c338b27a9ca9f4f473e30aa92214cd47373335ee
  • Loading branch information
bf8086 authored Nov 9, 2020
1 parent 52b9756 commit b525a82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libexec/alluxio-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ fi
ALLUXIO_JAVA_OPTS+=" -Dlog4j.configuration=file:${ALLUXIO_CONF_DIR}/log4j.properties"
ALLUXIO_JAVA_OPTS+=" -Dorg.apache.jasper.compiler.disablejsr199=true"
ALLUXIO_JAVA_OPTS+=" -Djava.net.preferIPv4Stack=true"
ALLUXIO_JAVA_OPTS+=" -Dorg.apache.ratis.thirdparty.io.netty.allocator.useCacheForAllThreads=false"

ALLUXIO_LOGSERVER_LOGS_DIR="${ALLUXIO_LOGSERVER_LOGS_DIR:-${ALLUXIO_HOME}/logs}"
if [[ -n "${ALLUXIO_LOGSERVER_HOSTNAME}" ]]; then
Expand Down

0 comments on commit b525a82

Please sign in to comment.