cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Williams (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CASSANDRA-6006) Value of JVM_OPTS is partially lost when enabling JEMallocAllocator in cassandra-env.sh
Date Wed, 11 Sep 2013 14:37:52 GMT

     [ 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=<JEMALLOC_HOME>/lib/
> # JVM_OPTS="-Djava.library.path=<JEMALLOC_HOME>/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=<JEMALLOC_HOME>/lib/
> ! # JVM_OPTS="-Djava.library.path=<JEMALLOC_HOME>/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=<JEMALLOC_HOME>/lib/
> ! # JVM_OPTS="$JVM_OPTS -Djava.library.path=<JEMALLOC_HOME>/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

Mime
View raw message