From 1eaed9925bb39e4f1108c673b7eefad5a7708cfb Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Wed, 25 Jul 2012 13:45:51 +0000 Subject: [PATCH] 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 --- bin/hbase-config.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/hbase-config.sh b/bin/hbase-config.sh index 6df845af801..b0ac8c08d7e 100644 --- a/bin/hbase-config.sh +++ b/bin/hbase-config.sh @@ -104,6 +104,10 @@ if [ -f "${HBASE_CONF_DIR}/hbase-env.sh" ]; then . "${HBASE_CONF_DIR}/hbase-env.sh" 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 for candidate in \ /usr/lib/jvm/java-6-sun \