HBASE-6450 HBase startup should be with MALLOC_MAX_ARENA set

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1365584 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2012-07-25 13:45:51 +00:00
parent c5af2aeb18
commit 1eaed9925b
1 changed files with 4 additions and 0 deletions

View File

@ -104,6 +104,10 @@ if [ -f "${HBASE_CONF_DIR}/hbase-env.sh" ]; then
. "${HBASE_CONF_DIR}/hbase-env.sh" . "${HBASE_CONF_DIR}/hbase-env.sh"
fi fi
# Newer versions of glibc use an arena memory allocator that causes virtual
# memory usage to explode. Tune the variable down to prevent vmem explosion.
export MALLOC_ARENA_MAX=${MALLOC_ARENA_MAX:-4}
if [ -z "$JAVA_HOME" ]; then if [ -z "$JAVA_HOME" ]; then
for candidate in \ for candidate in \
/usr/lib/jvm/java-6-sun \ /usr/lib/jvm/java-6-sun \