Hi, From: Biju N <[email protected]> >
> Hi Otis, > Are you able to connect to ZK through "jconsole" or something similar to > see whether you are able to see data? > I am able to connect to JMX with Jconsole, but I don't see ZK-specific MBeans in there. For example, when I'm trying to collects stats via JMX I get errors like: javax.management.AttributeNotFoundException: No such attribute: PendingRevalidationCount javax.management.AttributeNotFoundException: No such attribute: AvgRequestLatency javax.management.AttributeNotFoundException: No such attribute: MaxRequestLatency javax.management.AttributeNotFoundException: No such attribute: MinRequestLatency javax.management.AttributeNotFoundException: No such attribute: NumAliveConnections javax.management.AttributeNotFoundException: No such attribute: MaxClientCnxnsPerHost javax.management.AttributeNotFoundException: No such attribute: OutstandingRequests javax.management.AttributeNotFoundException: No such attribute: PacketsReceived javax.management.AttributeNotFoundException: No such attribute: PacketsSent And these MBeans just don't seem to be there at all. I'm sending a JConsole screenshot and hope the ML will not remove it. If it removes it, I'll post it somewhere. Any help would be greatly appreciated. Thanks, Otis -- Monitoring * Alerting * Anomaly Detection * Centralized Log Management Solr & Elasticsearch Support * http://sematext.com/ [image: Inline image 1] > On Mon, Oct 20, 2014 at 9:19 PM, Otis Gospodnetic < > [email protected]> 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/ > > > >
