chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asrab...@apache.org
Subject svn commit: r793129 - in /hadoop/chukwa/trunk: CHANGES.txt bin/hicc.sh conf/chukwa-env.sh.template
Date Fri, 10 Jul 2009 22:38:21 GMT
Author: asrabkin
Date: Fri Jul 10 22:38:21 2009
New Revision: 793129

URL: http://svn.apache.org/viewvc?rev=793129&view=rev
Log:
CHUKWA-341. Heap space in HICC Jetty is configurable. Contributed by Jiaqi Tan.

Modified:
    hadoop/chukwa/trunk/CHANGES.txt
    hadoop/chukwa/trunk/bin/hicc.sh
    hadoop/chukwa/trunk/conf/chukwa-env.sh.template

Modified: hadoop/chukwa/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/CHANGES.txt?rev=793129&r1=793128&r2=793129&view=diff
==============================================================================
--- hadoop/chukwa/trunk/CHANGES.txt (original)
+++ hadoop/chukwa/trunk/CHANGES.txt Fri Jul 10 22:38:21 2009
@@ -34,6 +34,8 @@
 
   IMPROVEMENTS
 
+    CHUKWA-341. Heap space in HICC Jetty is configurable. (Jiaqi Tan via asrabkin)
+
     CHUKWA-284.  Checkpoint includes last byte Acked, not sent. (asrabkin)
 
     CHUKWA-25.  Archiver can group by cluster name. (asrabkin)

Modified: hadoop/chukwa/trunk/bin/hicc.sh
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/bin/hicc.sh?rev=793129&r1=793128&r2=793129&view=diff
==============================================================================
--- hadoop/chukwa/trunk/bin/hicc.sh (original)
+++ hadoop/chukwa/trunk/bin/hicc.sh Fri Jul 10 22:38:21 2009
@@ -34,10 +34,21 @@
   stop
 fi
 
+if [ ! -z "${CHUKWA_HICC_MAX_MEM}" ]; then
+  MAX_MEM="-Xmx${CHUKWA_HICC_MAX_MEM}"
+else
+  MAX_MEM=""
+fi
+if [ ! -z "${CHUKWA_HICC_MIN_MEM}" ]; then
+  MIN_MEM="-Xms${CHUKWA_HICC_MIN_MEM}"
+else
+  MIN_MEM=""
+fi
+
 WEB_SERVICE_COMMON=`ls ${CHUKWA_HOME}/lib/*.jar ${CHUKWA_HOME}/webapps/hicc.war`
 WEB_SERVICE_COMMON=`echo ${WEB_SERVICE_COMMON}| sed 'y/ /:/'`
 
-exec ${JAVA_HOME}/bin/java -DAPP=hicc \
+exec ${JAVA_HOME}/bin/java ${MAX_MEM} ${MIN_MEM} -DAPP=hicc \
                            -Dlog4j.configuration=chukwa-log4j.properties \
                            -DCHUKWA_HOME=${CHUKWA_HOME} \
                            -DCHUKWA_CONF_DIR=${CHUKWA_CONF_DIR} \

Modified: hadoop/chukwa/trunk/conf/chukwa-env.sh.template
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/conf/chukwa-env.sh.template?rev=793129&r1=793128&r2=793129&view=diff
==============================================================================
--- hadoop/chukwa/trunk/conf/chukwa-env.sh.template (original)
+++ hadoop/chukwa/trunk/conf/chukwa-env.sh.template Fri Jul 10 22:38:21 2009
@@ -70,3 +70,9 @@
 
 # Database URL prefix for Database Loader.
 export JDBC_URL_PREFIX=@TODO_CHUKWA_JDBC_URL_PREFIX@
+
+# HICC Jetty Server heap memory settings 
+# Specify min and max size of heap to JVM, e.g. 300M
+export CHUKWA_HICC_MIN_MEM=
+export CHUKWA_HICC_MAX_MEM=
+



Mime
View raw message