diff --git bin/hbase-config.sh bin/hbase-config.sh index 63b4f05..1f25713 100644 --- bin/hbase-config.sh +++ bin/hbase-config.sh @@ -81,6 +81,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 \