HADOOP-7154. Should set MALLOC_ARENA_MAX in hadoop-env.sh. Contributed by Todd Lipcon.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1079605 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Todd Lipcon 2011-03-08 23:51:23 +00:00
parent 6d9ded1072
commit ad459690e0
2 changed files with 7 additions and 0 deletions

View File

@ -326,6 +326,8 @@ Release 0.22.0 - Unreleased
HADOOP-6970. SecurityAuth.audit should be generated under /build. (boryas)
HADOOP-7154. Should set MALLOC_ARENA_MAX in hadoop-env.sh (todd)
OPTIMIZATIONS
HADOOP-6884. Add LOG.isDebugEnabled() guard for each LOG.debug(..).

View File

@ -78,6 +78,11 @@ then
exit 1
fi
# Newer versions of glibc use an arena memory allocator that causes virtual
# memory usage to explode. This interacts badly with the many threads that
# we use in Hadoop. Tune the variable down to prevent vmem explosion.
export MALLOC_ARENA_MAX=${MALLOC_ARENA_MAX:-4}
# some Java parameters
if [ "$JAVA_HOME" != "" ]; then
#echo "run java in $JAVA_HOME"