Return-Path: X-Original-To: apmail-hbase-commits-archive@www.apache.org Delivered-To: apmail-hbase-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 108DB764F for ; Tue, 27 Sep 2011 01:07:48 +0000 (UTC) Received: (qmail 97389 invoked by uid 500); 27 Sep 2011 01:07:47 -0000 Delivered-To: apmail-hbase-commits-archive@hbase.apache.org Received: (qmail 97369 invoked by uid 500); 27 Sep 2011 01:07:47 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 97361 invoked by uid 99); 27 Sep 2011 01:07:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 01:07:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 01:07:45 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 8745A2388ACC for ; Tue, 27 Sep 2011 01:07:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1176148 - /hbase/branches/0.89/bin/hbase-config.sh Date: Tue, 27 Sep 2011 01:07:24 -0000 To: commits@hbase.apache.org From: nspiegelberg@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20110927010724.8745A2388ACC@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: nspiegelberg Date: Tue Sep 27 01:07:24 2011 New Revision: 1176148 URL: http://svn.apache.org/viewvc?rev=1176148&view=rev Log: HBASE: Add JMX/YouKit config options Summary: Adds config options back into bin/hbase-config.sh . These options are currently commented out in conf/hbase-env.sh Test Plan: mvn -Dskiptests install; ./bin/start-hbase.sh DiffCamp Revision: 117518 Reviewed By: kannan CC: nspiegelberg, kannan Tasks: #213939: verify your commits in trunk Revert Plan: OK Modified: hbase/branches/0.89/bin/hbase-config.sh Modified: hbase/branches/0.89/bin/hbase-config.sh URL: http://svn.apache.org/viewvc/hbase/branches/0.89/bin/hbase-config.sh?rev=1176148&r1=1176147&r2=1176148&view=diff ============================================================================== --- hbase/branches/0.89/bin/hbase-config.sh (original) +++ hbase/branches/0.89/bin/hbase-config.sh Tue Sep 27 01:07:24 2011 @@ -108,3 +108,28 @@ EOF exit 1 fi fi + +HBASE_JMX_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false" +HBASE_JMX_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxremote.authenticate=false" +# HBASE_JMX_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxremote.password.file=$HBASE_HOME/conf/jmxremote.passwd" +# HBASE_JMX_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxremote.access.file=$HBASE_HOME/conf/jmxremote.access" +HBASE_MASTER_JMX_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxremote.port=8090" +HBASE_REGIONSERVER_JMX_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxremote.port=8091" + +# YourKit Java Profiling +# Note that you need to have yjpagent.so & yjp.jar on your computer and have +# LD_LIBRARY_PATH entry to their dir location. for example: +# export LD_LIBRARY_PATH=/usr/local/hadoop/:$LD_LIBRARY_PATH +HBASE_YOURKIT_PROFILE="-agentlib:yjpagent" + +# Java debugging options. +# By default, local hbase instances are setup with the remote debugging +# enabled for the HMaster (which also functions as regionserver) on port 1044 +# Zookeeper debug is configured on port 1045 +HBASE_MASTER_DBG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8070 $HBASE_GC_OPTIONS" +HBASE_REGIONSERVER_DBG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8071 $HBASE_GC_OPTIONS" +HBASE_ZOOKEEPER_DBG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8072" + +export HBASE_MASTER_OPTS="$HBASE_MASTER_DBG_OPTS $HBASE_MASTER_JMX_OPTS" +export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_DBG_OPTS $HBASE_REGIONSERVER_JMX_OPTS" +export HBASE_ZOOKEEPER_OPTS="$HBASE_ZOOKEEPER_DBG_OPTS"