Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 36222 invoked from network); 28 Feb 2011 11:33:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Feb 2011 11:33:01 -0000 Received: (qmail 8283 invoked by uid 500); 28 Feb 2011 11:33:01 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 8141 invoked by uid 500); 28 Feb 2011 11:32:58 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 8118 invoked by uid 99); 28 Feb 2011 11:32:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Feb 2011 11:32:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Feb 2011 11:32:56 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DC8E141453 for ; Mon, 28 Feb 2011 11:32:36 +0000 (UTC) Date: Mon, 28 Feb 2011 11:32:36 +0000 (UTC) From: "Tim Sell (JIRA)" To: issues@hbase.apache.org Message-ID: <1918852825.1288.1298892756899.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1142657357.13553.1298558798960.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (HBASE-3561) OPTS arguments are duplicated MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-3561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13000233#comment-13000233 ] Tim Sell commented on HBASE-3561: --------------------------------- Hi stack, thanks for the quick fix. Just one minor note, the commented out lines in hbase-env should be reverted too. I've attached a patch to show the lines I mean. > OPTS arguments are duplicated > ----------------------------- > > Key: HBASE-3561 > URL: https://issues.apache.org/jira/browse/HBASE-3561 > Project: HBase > Issue Type: Bug > Components: scripts > Reporter: Tim Sell > Assignee: stack > Fix For: 0.90.2 > > Attachments: HelloWorldAgent.jar, config.txt > > > Some of the command line arguments constructed in the bash scripts are getting duplicated > Here is what my HMaster process looks like with a ps aux | grep java. > {code} > /Library/Java/Home/bin/java > -Xmx1000m > -ea -XX:+HeapDumpOnOutOfMemoryError -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode > -ea -XX:+HeapDumpOnOutOfMemoryError -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode > -ea -XX:+HeapDumpOnOutOfMemoryError -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode > -Dcom.sun.management.jmxremote.ssl=false > -Dcom.sun.management.jmxremote.authenticate=false > -Dcom.sun.management.jmxremote.port=10101 > -Dcom.sun.management.jmxremote.ssl=false > -Dcom.sun.management.jmxremote.authenticate=false > -Dcom.sun.management.jmxremote.port=10101 > -Dcom.sun.management.jmxremote.ssl=false > -Dcom.sun.management.jmxremote.authenticate=false > -Dcom.sun.management.jmxremote.port=10101 > -Dhbase.log.dir=/Users/tims/workspace/hbase-trunk/bin/../logs > -Dhbase.log.file=hbase-tims-master-grassmann.local.log > -Dhbase.home.dir=/Users/tims/workspace/hbase-trunk/bin/.. > -Dhbase.id.str=tims -Dhbase.root.logger=INFO,DRFA > -classpath > org.apache.hadoop.hbase.master.HMaster start > {code} > This wouldn't really be a problem except if you try to add a java agent in the hbase-env.sh like so: > {code} > export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS $HBASE_JMX_BASE -Dcom.sun.management.jmxremote.port=10101 -javaagent:lib/HelloWorldAgent.jar" > {code} > It adds the option 3 times and it starts three java agents. My example agent print hello world once per second, but I end up with three hello world lines per second. > I attached my HelloWorldAgent.jar to demonstrate. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira