Skip to content

Commit

Permalink
Only install jamm if setup requested
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain GÉRARD committed Nov 17, 2017
1 parent a9c7c74 commit 288ce1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions spec/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
node.default['cassandra']['saved_caches_dir'] = '/var/lib/cassandra/saved_caches'
node.default['cassandra']['snitch_conf'] = { 'dc' => 'testdc', 'rack' => 'testrack' }
node.override['cassandra']['setup_priam'] = true
node.override['cassandra']['setup_jamm'] = true
node.override['cassandra']['setup_jna'] = true
node.override['cassandra']['notify_restart'] = true
node.override['cassandra']['jvm']['g1'] = true
Expand Down
2 changes: 1 addition & 1 deletion templates/default/cassandra-env.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ fi
# provides hints to the JIT compiler
JVM_OPTS="$JVM_OPTS -XX:CompileCommandFile=$CASSANDRA_CONF/hotspot_compiler"

<% if node['cassandra']['jamm']['version'] -%>
<% if node['cassandra']['setup_jamm'] -%>
# add the jamm javaagent
if [ "$JVM_VENDOR" != "OpenJDK" -o "$JVM_VERSION" \> "1.6.0" ] \
|| [ "$JVM_VERSION" = "1.6.0" -a "$JVM_PATCH_VERSION" -ge 23 ]
Expand Down

0 comments on commit 288ce1b

Please sign in to comment.