Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EAD7F17A62 for ; Tue, 21 Oct 2014 20:43:04 +0000 (UTC) Received: (qmail 6381 invoked by uid 500); 21 Oct 2014 20:43:04 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 6333 invoked by uid 500); 21 Oct 2014 20:43:04 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 6314 invoked by uid 99); 21 Oct 2014 20:43:03 -0000 Received: from mx1-us-east.apache.org (HELO mx1-us-east.apache.org) (54.164.171.186) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2014 20:43:03 +0000 Received: from mx1-us-east.apache.org (localhost [127.0.0.1]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id 660A043BCC; Tue, 21 Oct 2014 20:43:23 +0000 (UTC) Received: by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org, from userid 111) id 5A35C43C30; Tue, 21 Oct 2014 20:43:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mx1-us-east.apache.org X-Spam-Level: ** X-Spam-Status: No, score=2.2 required=10.0 tests=DC_PNG_UNO_LARGO,HTML_MESSAGE, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mail-qa0-f53.google.com (mail-qa0-f53.google.com [209.85.216.53]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id C835B43BCC; Tue, 21 Oct 2014 20:43:22 +0000 (UTC) Received: by mail-qa0-f53.google.com with SMTP id v10so1424429qac.26 for ; Tue, 21 Oct 2014 13:43:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=oUcZus8ChIhMV1aLZJ9jaF5bIJD0/C5bUhebRefaav4=; b=Ug+XKuKE8kYDx/MPtQvkwb7jX7sZf3rXOL4eEOjgrTXWkMTyNNZCJEOKO5jk7788LF 0859pCwZ+DuucpCkaP/xYTcCg4gz0pknGddZNN1xGvMjZcLWkvesSx8cDgcP9Z4XEN1q Aq4ckScl2ST7WIMx0FQA69rv7ksxcq17N86xjutboBj9xgqtiRAheAK4piTXP9x3w72S D2B8uZA4NYCTZ9vmkW04ZjT3iOjoqWSYCGy577FlQ/XBGoAyj6dVUBgz1G8buC7rmgc6 tNHge6HwsdTSgKGNoz4SECapoPsPcWUdeRtjDVwD17wEGd7m6ugcMfHOVsHORyugHcB0 dxOg== MIME-Version: 1.0 X-Received: by 10.224.75.7 with SMTP id w7mr50574108qaj.26.1413924181581; Tue, 21 Oct 2014 13:43:01 -0700 (PDT) Received: by 10.229.51.130 with HTTP; Tue, 21 Oct 2014 13:43:00 -0700 (PDT) Date: Tue, 21 Oct 2014 16:43:00 -0400 Message-ID: Subject: Re: Missing MBeans in JMX From: Otis Gospodnetic To: user-digest@zookeeper.apache.org Cc: user@zookeeper.apache.org Content-Type: multipart/related; boundary=001a11c2fdc0955a1a0505f4e060 X-Virus-Scanned: ClamAV using ClamSMTP --001a11c2fdc0955a1a0505f4e060 Content-Type: multipart/alternative; boundary=001a11c2fdc0955a160505f4e05f --001a11c2fdc0955a160505f4e05f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, From: Biju N > > 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 < > otis.gospodnetic@gmail.com> wrote: > > > Hi, > > > > I'm running ZK 3.4.6 and am having difficulty monitoring it with SPM > > , which is showing errors like "Can't read jm= x > > attribute javax.management.AttributeNotFoundException: No such attribut= e: > > NumAliveConnection." > > > > So I used JMXC to dump everything > this > > ZK has in JMX, but was surprised to see NO ZK-specific MBeans in the JM= X > > 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=3D/srv/zookeeper/log > > -Dzookeeper.root.logger=3DINFO,CONSOLE -cp > > > > > /srv/zookeeper/zookeeper/bin/../build/classes:/srv/zookeeper/zookeeper/bi= n/../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/zookeepe= r/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/zookeep= er/bin/../src/java/lib/*.jar:/srv/zookeeper/zookeeper/bin/../conf:* > > -Dcom.sun.management.jmxremote.port=3D3000 > > -Dcom.sun.management.jmxremote.ssl=3Dfalse > > -Dcom.sun.management.jmxremote.authenticate=3Dfalse > > -Dcom.sun.management.jmxremote > > -Dcom.sun.management.jmxremote.local.only=3Dfalse* > > 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/ > > > > --001a11c2fdc0955a160505f4e05f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

From:=C2=A0Biju N <bijuatapache@gmail.com>
<= div>=C2=A0
Hi Otis,
=C2=A0 =C2=A0Are you able to connect to ZK through "jconsole" or = something similar to
see whether you are able to see data?

<= br>
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: Pend= ingRevalidationCount
javax.management.Attri= buteNotFoundException: No such attribute: AvgRequestLatency
javax.management.AttributeNotFoundException: No such attri= bute: MaxRequestLatency
javax.management.At= tributeNotFoundException: No such attribute: MinRequestLatency
javax.management.AttributeNotFoundException: No such at= tribute: NumAliveConnections
javax.manageme= nt.AttributeNotFoundException: No such attribute: MaxClientCnxnsPerHost
javax.management.AttributeNotFoundException: N= o such attribute: OutstandingRequests
javax= .management.AttributeNotFoundException: No such attribute: PacketsReceived<= /div>
javax.management.AttributeNotFoundException= : No such attribute: PacketsSent

=
And these MBeans just don't seem to be there= at all.

I'm sending a JConso= le screenshot and hope the ML will not remove it.=C2=A0 If it removes it, I= 'll post it somewhere.

Any help would be greatly appreciated.

Thanks,
Otis
--
Monitoring * Alerting * A= nomaly Detection * Centralized Log Management
S= olr & Elasticsearch Support *=C2=A0http://sematext.com/

3D"Inline=C2=A0
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 S= PM
> <
http://sema= text.com/spm/>, which is showing errors like "Can't read jm= x
> attribute javax.management.AttributeNotFoundException: No such attribu= te:
> NumAliveConnection."
>
> So I used JMXC <https://github.com/sematext/jmxc> to dump everything thi= s
> ZK has in JMX, but was surprised to see NO ZK-specific MBeans in the J= MX
> 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=3D/srv/zookeeper/log > -Dzookeeper.root.logger=3DINFO,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/zooke= eper/zookeeper/bin/../lib/netty-3.7.0.Final.jar:/srv/zookeeper/zookeeper/bi= n/../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/zook= eeper/bin/../src/java/lib/*.jar:/srv/zookeeper/zookeeper/bin/../conf:*
> -Dcom.sun.management.jmxremote.port=3D3000
> -Dcom.sun.management.jmxremote.ssl=3Dfalse
> -Dcom.sun.management.jmxremote.authenticate=3Dfalse
> -Dcom.sun.management.jmxremote
> -Dcom.sun.management.jmxremote.local.only=3Dfalse*
> 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/
>


--001a11c2fdc0955a160505f4e05f-- --001a11c2fdc0955a1a0505f4e060--