Updated Branches:
  refs/heads/trunk 1c1a8a37a -> 9ef53836c

Set MALLOC_ARENA_MAX when unset.
Patch by brandonwilliams for CASSANDRA-6126


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/9ef53836
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/9ef53836
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/9ef53836

Branch: refs/heads/trunk
Commit: 9ef53836c210e3802a849e33f27e5b924011cd2a
Parents: 1c1a8a3
Author: Brandon Williams <brandonwilli...@apache.org>
Authored: Mon Oct 14 12:39:44 2013 -0500
Committer: Brandon Williams <brandonwilli...@apache.org>
Committed: Mon Oct 14 12:41:39 2013 -0500

----------------------------------------------------------------------
 conf/cassandra-env.sh | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/9ef53836/conf/cassandra-env.sh
----------------------------------------------------------------------
diff --git a/conf/cassandra-env.sh b/conf/cassandra-env.sh
index 1ba1a46..c8cb49c 100644
--- a/conf/cassandra-env.sh
+++ b/conf/cassandra-env.sh
@@ -132,6 +132,10 @@ esac
 #MAX_HEAP_SIZE="4G"
 #HEAP_NEWSIZE="800M"
 
+# Set this to control the amount of arenas per-thread in glibc
+#MALLOC_ARENA_MAX=4
+
+
 if [ "x$MAX_HEAP_SIZE" = "x" ] && [ "x$HEAP_NEWSIZE" = "x" ]; then
     calculate_heap_sizes
 else
@@ -141,6 +145,10 @@ else
     fi
 fi
 
+if [ "x$MALLOC_ARENA_MAX" = "x" ]
+    MALLOC_ARENA_MAX=4
+fi
+
 # Specifies the default port over which Cassandra will be available for
 # JMX connections.
 JMX_PORT="7199"

Reply via email to