Updated Branches: refs/heads/cassandra-2.0 9bb16c3c9 -> 613354136
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/61335413 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/61335413 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/61335413 Branch: refs/heads/cassandra-2.0 Commit: 6133541364d6e14f934e36012b2be691ae07db9f Parents: 9bb16c3 Author: Brandon Williams <[email protected]> Authored: Mon Oct 14 12:39:44 2013 -0500 Committer: Brandon Williams <[email protected]> Committed: Mon Oct 14 12:40:22 2013 -0500 ---------------------------------------------------------------------- conf/cassandra-env.sh | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/61335413/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"
