Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-8821

Errors in JVM_OPTS and cassandra_parms environment vars

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Fix Version/s: 2.1.x, 2.2.x
    • Component/s: None
    • Labels:
      None
    • Environment:

      Ubuntu 14.04 LTS amd64

    • Severity:
      Low

      Description

      Repos:
      deb http://www.apache.org/dist/cassandra/debian 21x main
      deb-src http://www.apache.org/dist/cassandra/debian 21x main

      The cassandra init script
      /etc/init.d/cassandra
      is sourcing the environment file
      /etc/cassandra/cassandra-env.sh
      twice. Once directly from the init script, and again inside
      /usr/sbin/cassandra
      The result is arguments in JVM_OPTS are duplicated.

      Further the JVM opt
      -XX:CMSWaitDuration=10000
      is defined twice if jvm >= 1.7.60.

      Also, for the environment variable CASSANDRA_CONF used in this context
      -XX:CompileCommandFile=$CASSANDRA_CONF/hotspot_compiler"
      is undefined when
      /etc/cassandra/cassandra-env.sh
      is sourced from the init script.

      Lastly the variable cassandra_storagedir is undefined in
      /usr/sbin/cassandra
      when used in this context
      -Dcassandra.storagedir=$cassandra_storagedir

        Attachments

        1. 8821_2.1.txt
          3 kB
          Michael Shuler
        2. 8821_2.0.txt
          2 kB
          Michael Shuler

          Issue Links

            Activity

              People

              • Assignee:
                mshuler Michael Shuler
                Reporter:
                tmoschou Terry Moschou
                Authors:
                Michael Shuler
                Reviewers:
                Eric Evans
              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: