Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 75D6D10370 for ; Wed, 11 Sep 2013 14:37:54 +0000 (UTC) Received: (qmail 22135 invoked by uid 500); 11 Sep 2013 14:37:54 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 21491 invoked by uid 500); 11 Sep 2013 14:37:53 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 21115 invoked by uid 99); 11 Sep 2013 14:37:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Sep 2013 14:37:52 +0000 Date: Wed, 11 Sep 2013 14:37:52 +0000 (UTC) From: "Brandon Williams (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CASSANDRA-6006) Value of JVM_OPTS is partially lost when enabling JEMallocAllocator in cassandra-env.sh MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-6006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brandon Williams resolved CASSANDRA-6006. ----------------------------------------- Resolution: Fixed Fix Version/s: 2.0.1 Thanks, done in 1ae996d38259ad6d18fef7344b745eba8af56a4d > Value of JVM_OPTS is partially lost when enabling JEMallocAllocator in cassandra-env.sh > --------------------------------------------------------------------------------------- > > Key: CASSANDRA-6006 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6006 > Project: Cassandra > Issue Type: Bug > Components: Config > Environment: Linux, cassandra 2.0.0 > Reporter: Nikolai Grigoriev > Priority: Minor > Fix For: 2.0.1 > > > In conf/cassandra-env.sh I see this: > {code} > # Configure the following for JEMallocAllocator and if jemalloc is not available in the system > # library path (Example: /usr/local/lib/). Usually "make install" will do the right thing. > # export LD_LIBRARY_PATH=/lib/ > # JVM_OPTS="-Djava.library.path=/lib/" > {code} > When I have enabled JEMalloc I have noticed that Cassandra complained about JAMM agent not being configured. Then I have realized that a bunch of JVM settings do not get passed to JVM, like heap size etc. This is because here the new argument replaces the previous value of JVM_OPTS instead of being added to it. > Here is the diff: > {code} > *** cassandra-env.sh.orig 2013-08-28 13:07:53.000000000 +0000 > --- cassandra-env.sh 2013-09-11 13:25:12.904640141 +0000 > *************** > *** 227,233 **** > # Configure the following for JEMallocAllocator and if jemalloc is not available in the system > # library path (Example: /usr/local/lib/). Usually "make install" will do the right thing. > # export LD_LIBRARY_PATH=/lib/ > ! # JVM_OPTS="-Djava.library.path=/lib/" > # uncomment to have Cassandra JVM listen for remote debuggers/profilers on port 1414 > # JVM_OPTS="$JVM_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1414" > --- 227,233 ---- > # Configure the following for JEMallocAllocator and if jemalloc is not available in the system > # library path (Example: /usr/local/lib/). Usually "make install" will do the right thing. > # export LD_LIBRARY_PATH=/lib/ > ! # JVM_OPTS="$JVM_OPTS -Djava.library.path=/lib/" > # uncomment to have Cassandra JVM listen for remote debuggers/profilers on port 1414 > # JVM_OPTS="$JVM_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1414" > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira