You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brandon Williams (JIRA)" <ji...@apache.org> on 2012/07/30 20:19:35 UTC
[jira] [Reopened] (CASSANDRA-4447) enable jamm for OpenJDK >=
1.6.0.23
[ https://issues.apache.org/jira/browse/CASSANDRA-4447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brandon Williams reopened CASSANDRA-4447:
-----------------------------------------
Assignee: paul cannon (was: Brandon Williams)
Looks like we need to make this sh-compatible.
> enable jamm for OpenJDK >= 1.6.0.23
> -----------------------------------
>
> Key: CASSANDRA-4447
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4447
> Project: Cassandra
> Issue Type: Improvement
> Components: Packaging
> Environment: openjdk
> Reporter: Ilya Shipitsin
> Assignee: paul cannon
> Priority: Trivial
> Fix For: 1.1.3
>
> Attachments: 4447-2.txt, 4447-3.txt, 4447.txt
>
>
> 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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira