cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Trubachev (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-8484) Value of variable JVM_OPTS is duplicated in command line arguments
Date Sat, 28 Mar 2015 15:26:53 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-8484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14385360#comment-14385360
] 

Andrey Trubachev commented on CASSANDRA-8484:
---------------------------------------------

This is affecting 2.0 and 2.1.

> Value of variable JVM_OPTS is duplicated in command line arguments
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-8484
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8484
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Config
>         Environment: debian/ubuntu
>            Reporter: Andrey Trubachev
>            Priority: Minor
>
> For example:
> {noformat}
> $ ps aux | grep cassandra
> cassand+   322  100 27.3 14942216 8995592 ?    SLl  16:28 117:30 java -ea -javaagent:/usr/share/cassandra/lib/jamm-0.2.8.jar
-XX:+CMSClassUnloadingEnabled -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms8043M
-Xmx8043M -Xmn1600M -XX:+HeapDumpOnOutOfMemoryError -Xss256k -XX:StringTableSize=1000003 -XX:+UseParNewGC
-XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1
-XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+UseTLAB -XX:CompileCommandFile=/hotspot_compiler
-XX:CMSWaitDuration=10000 -XX:+UseCondCardMark -Djava.net.preferIPv6Addresses=true -Dcom.sun.management.jmxremote.port=7199
-Dcom.sun.management.jmxremote.rmi.port=7199 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
-Dcassandra.metricsReporterConfigFile=/etc/vs/cassandra/graphite.yaml -ea -javaagent:/usr/share/cassandra/lib/jamm-0.2.8.jar
-XX:+CMSClassUnloadingEnabled -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms8043M
-Xmx8043M -Xmn1600M -XX:+HeapDumpOnOutOfMemoryError -Xss256k -XX:StringTableSize=1000003 -XX:+UseParNewGC
-XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1
-XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+UseTLAB -XX:CompileCommandFile=/etc/cassandra/hotspot_compiler
-XX:CMSWaitDuration=10000 -XX:+UseCondCardMark -Djava.net.preferIPv6Addresses=true -Dcom.sun.management.jmxremote.port=7199
-Dcom.sun.management.jmxremote.rmi.port=7199 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
-Dcassandra.metricsReporterConfigFile=/etc/vs/cassandra/graphite.yaml -Dlogback.configurationFile=logback.xml
-Dcassandra.logdir=/var/log/cassandra -Dcassandra.storagedir= -Dcassandra-pidfile=/var/run/cassandra/cassandra.pid
-cp /etc/cassandra:/usr/share/cassandra/lib/airline-0.6.jar:/usr/share/cassandra/lib/antlr-runtime-3.5.2.jar:/usr/share/cassandra/lib/commons-cli-1.1.jar:/usr/share/cassandra/lib/commons-codec-1.2.jar:/usr/share/cassandra/lib/commons-lang3-3.1.jar:/usr/share/cassandra/lib/commons-math3-3.2.jar:/usr/share/cassandra/lib/compress-lzf-0.8.4.jar:/usr/share/cassandra/lib/concurrentlinkedhashmap-lru-1.4.jar:/usr/share/cassandra/lib/disruptor-3.0.1.jar:/usr/share/cassandra/lib/guava-16.0.jar:/usr/share/cassandra/lib/high-scale-lib-1.0.6.jar:/usr/share/cassandra/lib/jackson-core-asl-1.9.2.jar:/usr/share/cassandra/lib/jackson-mapper-asl-1.9.2.jar:/usr/share/cassandra/lib/jamm-0.2.8.jar:/usr/share/cassandra/lib/javax.inject.jar:/usr/share/cassandra/lib/jbcrypt-0.3m.jar:/usr/share/cassandra/lib/jline-1.0.jar:/usr/share/cassandra/lib/jna-4.0.0.jar:/usr/share/cassandra/lib/json-simple-1.1.jar:/usr/share/cassandra/lib/libthrift-0.9.1.jar:/usr/share/cassandra/lib/logback-classic-1.1.2.jar:/usr/share/cassandra/lib/logback-core-1.1.2.jar:/usr/share/cassandra/lib/lz4-1.2.0.jar:/usr/share/cassandra/lib/metrics-core-2.2.0.jar:/usr/share/cassandra/lib/metrics-graphite-2.2.0.jar:/usr/share/cassandra/lib/netty-all-4.0.23.Final.jar:/usr/share/cassandra/lib/reporter-config-2.2.0-SNAPSHOT.jar:/usr/share/cassandra/lib/slf4j-api-1.7.2.jar:/usr/share/cassandra/lib/snakeyaml-1.11.jar:/usr/share/cassandra/lib/snappy-java-1.0.5.2.jar:/usr/share/cassandra/lib/stream-2.5.2.jar:/usr/share/cassandra/lib/stringtemplate-4.0.2.jar:/usr/share/cassandra/lib/super-csv-2.1.0.jar:/usr/share/cassandra/lib/thrift-server-0.3.7.jar:/usr/share/cassandra/apache-cassandra-2.1.2.jar:/usr/share/cassandra/apache-cassandra.jar:/usr/share/cassandra/apache-cassandra-thrift-2.1.2.jar:/usr/share/cassandra/cassandra-driver-core-2.0.5.jar:/usr/share/cassandra/netty-3.9.0.Final.jar:/usr/share/cassandra/stress.jar:
-XX:HeapDumpPath=/var/lib/cassandra/java_1418650085.hprof -XX:ErrorFile=/var/lib/cassandra/hs_err_1418650085.log
org.apache.cassandra.service.CassandraDaemon
> {noformat}
> Variable JVM_OPTS isn't cleaned up in cassandra-env.sh.
> And cassandra-env.sh is called twice: first time in /etc/init.d/cassandra and second
time in /usr/sbin/cassandra.
> {noformat}
> $ fgrep cassandra-env.sh /etc/init.d/cassandra /usr/sbin/cassandra
> /etc/init.d/cassandra:[ -e /etc/cassandra/cassandra-env.sh ] || exit 0
> /etc/init.d/cassandra:. /etc/cassandra/cassandra-env.sh
> /usr/sbin/cassandra:if [ -f "$CASSANDRA_CONF/cassandra-env.sh" ]; then
> /usr/sbin/cassandra:    . "$CASSANDRA_CONF/cassandra-env.sh"
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message