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 @@
- 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