zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Biju N <bijuatapa...@gmail.com>
Subject Re: Missing MBeans in JMX
Date Tue, 21 Oct 2014 01:56:39 GMT
Hi Otis,
   Are you able to connect to ZK through "jconsole" or something similar to
see whether you are able to see data?

On Mon, Oct 20, 2014 at 9:19 PM, Otis Gospodnetic <
otis.gospodnetic@gmail.com> wrote:

> Hi,
>
> I'm running ZK 3.4.6 and am having difficulty monitoring it with SPM
> <http://sematext.com/spm/>, which is showing errors like "Can't read jmx
> attribute javax.management.AttributeNotFoundException: No such attribute:
> NumAliveConnection."
>
> So I used JMXC <https://github.com/sematext/jmxc> to dump everything this
> ZK has in JMX, but was surprised to see NO ZK-specific MBeans in the JMX
> what so ever!
>
> Is there something one has to do to enable JMX?
>
> This is how this ZK is running:
>
> /srv/zookeeper/jdk/bin/java -Dzookeeper.log.dir=/srv/zookeeper/log
> -Dzookeeper.root.logger=INFO,CONSOLE -cp
>
> /srv/zookeeper/zookeeper/bin/../build/classes:/srv/zookeeper/zookeeper/bin/../build/lib/*.jar:/srv/zookeeper/zookeeper/bin/../lib/slf4j-log4j12-1.6.1.jar:/srv/zookeeper/zookeeper/bin/../lib/slf4j-api-1.6.1.jar:/srv/zookeeper/zookeeper/bin/../lib/netty-3.7.0.Final.jar:/srv/zookeeper/zookeeper/bin/../lib/log4j-1.2.16.jar:/srv/zookeeper/zookeeper/bin/../lib/jline-0.9.94.jar:/srv/zookeeper/zookeeper/bin/../zookeeper-3.4.6.jar:/srv/zookeeper/zookeeper/bin/../src/java/lib/*.jar:/srv/zookeeper/zookeeper/bin/../conf:*
> -Dcom.sun.management.jmxremote.port=3000
> -Dcom.sun.management.jmxremote.ssl=false
> -Dcom.sun.management.jmxremote.authenticate=false
> -Dcom.sun.management.jmxremote
> -Dcom.sun.management.jmxremote.local.only=false*
> org.apache.zookeeper.server.quorum.QuorumPeerMain
> /srv/zookeeper/zookeeper/bin/../conf/zoo.cfg
>
> Is some key property missing here?
>
> Thanks,
> Otis
> --
> Monitoring * Alerting * Anomaly Detection * Centralized Log Management
> Solr & Elasticsearch Support * http://sematext.com/
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message