Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Kafka >> mail # user >> Re: [0.7.2] using JmxTool to watch stats


Copy link to this message
-
Re: [0.7.2] using JmxTool to watch stats
'kafka:type=kafka.SocketServerStats:NumProduceRequests' is not the correct
bean name. You can use jconsole to see the correct bean names.

Thanks,

Jun
On Thu, Apr 11, 2013 at 4:16 PM, Withers, Robert <[EMAIL PROTECTED]>wrote:

> I am having difficulty specifying a subset of stats to watch with JmxTool,
> in kafka 0.7.2.  Here is the command I am attempting to use, but I do not
> know how to specify the specific stat within SocketServerStats to watch.  I
> keep getting an error when trying any of the following:
>
> --object-name 'kafka:type=kafka.SocketServerStats:NumProduceRequests'
>
> Which gives me:
> Exception in thread "main" javax.management.MalformedObjectNameException:
> Invalid character ':' in value part of property
>         at javax.management.ObjectName.construct(ObjectName.java:618)
>         at javax.management.ObjectName.<init>(ObjectName.java:1382)
>         at kafka.tools.JmxTool$$anonfun$1.apply(JmxTool.scala:77)
>         at kafka.tools.JmxTool$$anonfun$1.apply(JmxTool.scala:77)
>         at
> scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206)
>         at
> scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206)
>         at scala.collection.Iterator$class.foreach(Iterator.scala:631)
>         at
> scala.collection.JavaConversions$JIteratorWrapper.foreach(JavaConversions.scala:474)
>         at
> scala.collection.IterableLike$class.foreach(IterableLike.scala:79)
>         at
> scala.collection.JavaConversions$JListWrapper.foreach(JavaConversions.scala:521)
>         at
> scala.collection.TraversableLike$class.map(TraversableLike.scala:206)
>         at
> scala.collection.JavaConversions$JListWrapper.map(JavaConversions.scala:521)
>         at kafka.tools.JmxTool$.main(JmxTool.scala:77)
>         at kafka.tools.JmxTool.main(JmxTool.scala)
>
> whereas, the following gives me the time stat, only:
>
> --object-name 'kafka:type=kafka.SocketServerStats.NumProduceRequests'
>
> Thanks for your help,
> Rob
>
>

 
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB