[
https://issues.apache.org/jira/browse/HBASE-3561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13033597#comment-13033597
]
stack commented on HBASE-3561:
------------------------------
I committed mention of helloworldagent.jar. I shouldn't have.
> 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, hbase-env-commented.diff
>
>
> 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 <blablablablabla>
> 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