cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcken...@apache.org
Subject git commit: Add new CMS GC flags on Windows launch scripts for JVM > 7u60
Date Wed, 13 Aug 2014 18:56:46 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 aab471179 -> e00bb4a2a


Add new CMS GC flags on Windows launch scripts for JVM > 7u60

Patch by Josh McKenzie, reviewed by jbellis for CASSANDRA-7714


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/e00bb4a2
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/e00bb4a2
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/e00bb4a2

Branch: refs/heads/cassandra-2.1
Commit: e00bb4a2a03a00b528e6d4c7c324f1fe9e9e3d83
Parents: aab4711
Author: Joshua McKenzie <josh.mckenzie@datastax.com>
Authored: Wed Aug 13 13:50:37 2014 -0500
Committer: Joshua McKenzie <josh.mckenzie@datastax.com>
Committed: Wed Aug 13 13:50:37 2014 -0500

----------------------------------------------------------------------
 conf/cassandra-env.ps1 | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/e00bb4a2/conf/cassandra-env.ps1
----------------------------------------------------------------------
diff --git a/conf/cassandra-env.ps1 b/conf/cassandra-env.ps1
index f6505de..168f322 100644
--- a/conf/cassandra-env.ps1
+++ b/conf/cassandra-env.ps1
@@ -274,6 +274,11 @@ Function SetCassandraEnvironment
     {
         $env:JVM_OPTS="$env:JVM_OPTS -XX:+UseCondCardMark"
     }
+    if ( (($env:JVM_VERSION.CompareTo("1.7") -ge 0) -and ($env:JVM_PATCH_VERSION.CompareTo("60")
-ge 0)) -or
+         ($env:JVM_VERSION.CompareTo("1.8") -ge 0))
+    {
+        $env:JVM_OPTS="$env:JVM_OPTS -XX:+CMSParallelInitialMarkEnabled -XX:+CMSEdenChunksRecordAlways"
+    }
 
     # GC logging options -- uncomment to enable
     # $env:JVM_OPTS="$env:JVM_OPTS -XX:+PrintGCDetails"


Mime
View raw message