To clarify, Having the options duplicated wouldn't really be a problem, except when javaagent is duped I get three agents started. To demonstrate I made this: https://github.com/tims/HelloWorldAgent It prints hello world once per second, but I'm getting 3 lines printed every second.
I have made a jira for this here: https://issues.apache.org/jira/browse/HBASE-3561 On 24 February 2011 11:42, Tim Sell <[email protected]> wrote: > Hi, > I'm using trunk > > I've been trying to pass a javaagent in by configuring it in hbase-env.sh > I've noticed some weird behaviour. It seems to start three agents, > which with the agent I really want to use seems to be breaking it, it > never quite starts. > > I created a hello world agent and I noticed that all the options seem > to be set three times. > The only thing I changed was adding the -javaagent to HBASE_MASTER_OPTS like > so: > export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS $HBASE_JMX_BASE > -Dcom.sun.management.jmxremote.port=10101 > -javaagent:/Users/tims/workspace/HelloWorldAgent/target/HelloWorldAgent-0.0.1-SNAPSHOT.jar" > > I ran ps aux | grep java, here's what the master looks like. > /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 > -javaagent:/Users/tims/workspace/HelloWorldAgent/target/HelloWorldAgent-0.0.1-SNAPSHOT.jar > -Dcom.sun.management.jmxremote.ssl=false > -Dcom.sun.management.jmxremote.authenticate=false > -Dcom.sun.management.jmxremote.port=10101 > -javaagent:/Users/tims/workspace/HelloWorldAgent/target/HelloWorldAgent-0.0.1-SNAPSHOT.jar > -Dcom.sun.management.jmxremote.ssl=false > -Dcom.sun.management.jmxremote.authenticate=false > -Dcom.sun.management.jmxremote.port=10101 > -javaagent:/Users/tims/workspace/HelloWorldAgent/target/HelloWorldAgent-0.0.1-SNAPSHOT.jar > -Dhbase.log.dir=/Users/tims/workspace/hbase-trunk/bin/../logs > -Dhbase.log.file=hbase-tims-master-grassmann.home.log > -Dhbase.home.dir=/Users/tims/workspace/hbase-trunk/bin/.. > -Dhbase.id.str=tims -Dhbase.root.logger=INFO,DRFA -classpath > /Users/tims/workspace/hbase-trunk/bin/../conf:/Library/Java/Home/lib/tools.jar:/Users/tims/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar:/Users/tims/.m2/repository/asm/asm/3.1/asm-3.1.jar: > etc > etc > org.apache.hadoop.hbase.master.HMaster start > > > I started the master without the java agent and yes indeed a bunch of > options are replicated three times. > I couldn't figure out the place where this is happening. Any ideas? >
