You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2015/05/15 05:06:35 UTC

[23/50] [abbrv] incubator-kylin git commit: KYLIN-756 enforce all customized jvm settings located in setenv.sh

KYLIN-756 enforce all customized jvm settings located in setenv.sh


Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/32ceeee7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/32ceeee7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/32ceeee7

Branch: refs/heads/streaming-localdict
Commit: 32ceeee715318c36bee47639c5c4ac864eb687db
Parents: 50c31c6
Author: honma <ho...@ebay.com>
Authored: Thu May 7 16:06:26 2015 +0800
Committer: honma <ho...@ebay.com>
Committed: Thu May 7 16:06:26 2015 +0800

----------------------------------------------------------------------
 bin/kylin.sh  | 8 ++++----
 bin/setenv.sh | 6 ++++--
 2 files changed, 8 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/32ceeee7/bin/kylin.sh
----------------------------------------------------------------------
diff --git a/bin/kylin.sh b/bin/kylin.sh
index 532900b..9386ce8 100644
--- a/bin/kylin.sh
+++ b/bin/kylin.sh
@@ -37,9 +37,9 @@ then
 
     export HBASE_CLASSPATH_PREFIX=${tomcat_root}/bin/bootstrap.jar:${tomcat_root}/bin/tomcat-juli.jar:${tomcat_root}/lib/*:$HBASE_CLASSPATH_PREFIX
     export HBASE_CLASSPATH=$hive_dependency:${HBASE_CLASSPATH}
-    export JAVA_OPTS="-Xms2048M -Xmx2048M -XX:MaxPermSize=512m"
 
-    hbase ${JAVA_OPTS} ${KYLIN_EXTRA_START_OPTS} \
+    # KYLIN_EXTRA_START_OPTS is for customized settings, checkout bin/setenv.sh
+    hbase ${KYLIN_EXTRA_START_OPTS} \
     -Djava.util.logging.config.file=${tomcat_root}/conf/logging.properties \
     -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
     -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true \
@@ -101,9 +101,9 @@ then
 
         mkdir -p ${KYLIN_HOME}/ext
         export HBASE_CLASSPATH=$hive_dependency:${KYLIN_HOME}/lib/*:${KYLIN_HOME}/ext/*:${HBASE_CLASSPATH}
-        export JAVA_OPTS="-Xms4g -Xmx4g -XX:MaxPermSize=512m"
 
-        hbase ${JAVA_OPTS} ${KYLIN_EXTRA_START_OPTS} \
+        # KYLIN_EXTRA_START_OPTS is for customized settings, checkout bin/setenv.sh
+        hbase ${KYLIN_EXTRA_START_OPTS} \
         -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
         -Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true \
         -Dkylin.hive.dependency=${hive_dependency} \

http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/32ceeee7/bin/setenv.sh
----------------------------------------------------------------------
diff --git a/bin/setenv.sh b/bin/setenv.sh
index 53f614d..1d485c2 100755
--- a/bin/setenv.sh
+++ b/bin/setenv.sh
@@ -1,12 +1,14 @@
 #!/bin/bash
 
+# (if your're deploying KYLIN on a powerful server and want to replace the default conservative settings)
 # uncomment following to for it to take effect
+export KYLIN_JVM_SETTINGS="-Xms1024M -Xmx4096M -XX:MaxPermSize=128M"
 # export KYLIN_JVM_SETTINGS="-Xms16g -Xmx16g -XX:MaxPermSize=512m -XX:NewSize=3g -XX:MaxNewSize=3g -XX:SurvivorRatio=4 -XX:+CMSClassUnloadingEnabled -XX:+CMSParallelRemarkEnabled -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:CMSInitiatingOccupancyFraction=70 -XX:+DisableExplicitGC"
 
-# uncomment following to for it to take effect
+# uncomment following to for it to take effect(the values need adjusting to fit your env)
 # export KYLIN_DEBUG_SETTINGS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -javaagent:${KYLIN_HOME}/lib/CustomAgent.jar -Dcom.ebay.lnp.rmiagent.port=8080"
 
-# uncomment following to for it to take effect
+# uncomment following to for it to take effect(the values need adjusting to fit your env)
 # export KYLIN_LD_LIBRARY_SETTINGS="-Djava.library.path=/apache/hadoop/lib/native/Linux-amd64-64"
 
 export KYLIN_EXTRA_START_OPTS=""