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

enable jamm for OpenJDK >= 1.6.0.23

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.1.3
    • Packaging
    • None
    • openjdk

    Description

      we tested jamm with OpenJDK, it works well starting at 1.6.0.23, so I suggest

      — cassandra-env.sh.dist 2012-07-19 12:24:44.938886154 +0600
      +++ cassandra-env.sh 2012-07-19 12:28:34.913886847 +0600
      @@ -119,8 +119,10 @@

      1. add the jamm javaagent
        check_openjdk=`"${JAVA:-java}" -version 2>&1 | awk '{if (NR == 2) {print $1}}'`
        -if [ "$check_openjdk" != "OpenJDK" ]
        +check_openjdk_is_good_for_jamm=`"${JAVA:-java}" -version 2>&1 | awk -F "_|\"" '/1\.6\.0/ && $3 < 23 {print "bad" }

        '`
        +if [ "$check_openjdk" = "OpenJDK" ] && [ "$check_openjdk_is_good_for_jamm" = "bad" ]
        then
        +else
        JVM_OPTS="$JVM_OPTS -javaagent:$CASSANDRA_HOME/lib/jamm-0.2.5.jar"
        fi

      Attachments

        1. 4447-4.txt
          3 kB
          paul cannon
        2. 4447.txt
          0.7 kB
          Brandon Williams

        Activity

          People

            thepaul paul cannon
            chipitsine Ilya Shipitsin
            paul cannon
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: