Repository: kafka
Updated Branches:
  refs/heads/trunk f540f4a91 -> c7bc5366d


KAFKA-2514: change default JVM options in kafka-run-class.sh.

GC is set to G1 collector.

Author: Manikumar reddy O <[email protected]>

Reviewers: Ismael Juma <[email protected]>, Jun Rao <[email protected]>

Closes #218 from omkreddy/KAFKA-2514


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

Branch: refs/heads/trunk
Commit: c7bc5366dd874bf956873ba0f60c2c2820052fb3
Parents: f540f4a
Author: Manikumar reddy O <[email protected]>
Authored: Mon Sep 28 08:40:32 2015 -0700
Committer: Jun Rao <[email protected]>
Committed: Mon Sep 28 08:40:32 2015 -0700

----------------------------------------------------------------------
 bin/kafka-run-class.sh          | 2 +-
 bin/windows/kafka-run-class.bat | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/c7bc5366/bin/kafka-run-class.sh
----------------------------------------------------------------------
diff --git a/bin/kafka-run-class.sh b/bin/kafka-run-class.sh
index d8a111e..d98533d 100755
--- a/bin/kafka-run-class.sh
+++ b/bin/kafka-run-class.sh
@@ -137,7 +137,7 @@ fi
 
 # JVM performance options
 if [ -z "$KAFKA_JVM_PERFORMANCE_OPTS" ]; then
-  KAFKA_JVM_PERFORMANCE_OPTS="-server -XX:+UseParNewGC -XX:+UseConcMarkSweepGC 
-XX:+CMSClassUnloadingEnabled -XX:+CMSScavengeBeforeRemark 
-XX:+DisableExplicitGC -Djava.awt.headless=true"
+  KAFKA_JVM_PERFORMANCE_OPTS="-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 
-XX:InitiatingHeapOccupancyPercent=35 -XX:+DisableExplicitGC 
-Djava.awt.headless=true"
 fi
 
 

http://git-wip-us.apache.org/repos/asf/kafka/blob/c7bc5366/bin/windows/kafka-run-class.bat
----------------------------------------------------------------------
diff --git a/bin/windows/kafka-run-class.bat b/bin/windows/kafka-run-class.bat
index 4aa2ab8..644969e 100644
--- a/bin/windows/kafka-run-class.bat
+++ b/bin/windows/kafka-run-class.bat
@@ -109,7 +109,7 @@ IF ["%KAFKA_HEAP_OPTS%"] EQU [""] (
 
 rem JVM performance options
 IF ["%KAFKA_JVM_PERFORMANCE_OPTS%"] EQU [""] (
-       set KAFKA_JVM_PERFORMANCE_OPTS=-server -XX:+UseCompressedOops 
-XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled 
-XX:+CMSScavengeBeforeRemark -XX:+DisableExplicitGC -Djava.awt.headless=true
+       set KAFKA_JVM_PERFORMANCE_OPTS=-server -XX:+UseG1GC 
-XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 
-XX:+DisableExplicitGC -Djava.awt.headless=true
 )
 
 IF ["%CLASSPATH%"] EQU [""] (

Reply via email to