You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2012/07/25 15:45:38 UTC
svn commit: r1365583 - /hbase/branches/0.94/bin/hbase-config.sh
Author: stack
Date: Wed Jul 25 13:45:38 2012
New Revision: 1365583
URL: http://svn.apache.org/viewvc?rev=1365583&view=rev
Log:
HBASE-6450 HBase startup should be with MALLOC_MAX_ARENA set
Modified:
hbase/branches/0.94/bin/hbase-config.sh
Modified: hbase/branches/0.94/bin/hbase-config.sh
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/bin/hbase-config.sh?rev=1365583&r1=1365582&r2=1365583&view=diff
==============================================================================
--- hbase/branches/0.94/bin/hbase-config.sh (original)
+++ hbase/branches/0.94/bin/hbase-config.sh Wed Jul 25 13:45:38 2012
@@ -81,6 +81,10 @@ if [ -f "${HBASE_CONF_DIR}/hbase-env.sh"
. "${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 \