You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by Rakesh R <ra...@huawei.com> on 2012/06/22 12:33:19 UTC

Connect Jconsole remotely to the zookeeper server

Hi All,

JMX remote monitoring:
---------------------------
I failed to find any configuration for the 'jmxPort' in the zookeeper. I've hardcoded the jmx port and other remote configurations in the zkServer.sh script file as follows and able to connect remotely.

-Dcom.sun.management.jmxremote.port=5000
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false

Does zookeeper support remote connection. Is there anything I'm missing?

Thanks & Regards,
Rakesh

Re: Connect Jconsole remotely to the zookeeper server

Posted by Santosh Reddy <sa...@gmail.com>.
Rakesh R <ra...@...> writes:

> add "JMXPORT=<portnumber>" in zkServer.sh after 
JMXLOCALONLY=false
 fi
JMXPORT=<portnumber>



RE: Connect Jconsole remotely to the zookeeper server

Posted by Rakesh R <ra...@huawei.com>.
Thanks a lot Pat. I'll also try using the same.
________________________________________
From: Patrick Hunt [phunt@apache.org]
Sent: Tuesday, June 26, 2012 3:23 AM
To: dev@zookeeper.apache.org
Subject: Re: Connect Jconsole remotely to the zookeeper server

On Sat, Jun 23, 2012 at 11:24 PM, Rakesh R <ra...@huawei.com> wrote:
> My question is, whether zookeeper should expose 'jmxremote' parameters as configurable items[one suggestion like env variable as follows]. So that OM can configure it and start multiple servers? Also application users can use these to connect to the zk server remotely.
> -Dcom.sun.management.jmxremote.port=$JMXPORT

Would using SERVER_JVMFLAGS work for this? (that's what I use)

Patrick

Re: Connect Jconsole remotely to the zookeeper server

Posted by Patrick Hunt <ph...@apache.org>.
On Sat, Jun 23, 2012 at 11:24 PM, Rakesh R <ra...@huawei.com> wrote:
> My question is, whether zookeeper should expose 'jmxremote' parameters as configurable items[one suggestion like env variable as follows]. So that OM can configure it and start multiple servers? Also application users can use these to connect to the zk server remotely.
> -Dcom.sun.management.jmxremote.port=$JMXPORT

Would using SERVER_JVMFLAGS work for this? (that's what I use)

Patrick

RE: Connect Jconsole remotely to the zookeeper server

Posted by Rakesh R <ra...@huawei.com>.
Thanks a lot Pat for your time and reply.

Oh! it seems  I didn't explain clearly :(

Actually I was searching to connect jconsole remotely to the zk server and I'm able to connect,  after configuring the following arguments in zkServer.sh
-Dcom.sun.management.jmxremote.port=5000
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false

As you explained, I understand "zookeeper supported in the sense that the jvm supports it"

But my use case is: 
I'm having OM for managing all the processes in the cluster, he will manage my ZooKeeper cluster. Now while installing and starting zookeeper instances,  OM won't be able to configure these 'jmxremote' parameters for multiple instances as it needs to configure different jmx ports for the zk servers. 

My question is, whether zookeeper should expose 'jmxremote' parameters as configurable items[one suggestion like env variable as follows]. So that OM can configure it and start multiple servers? Also application users can use these to connect to the zk server remotely.
-Dcom.sun.management.jmxremote.port=$JMXPORT

-Rakesh
________________________________________
From: Patrick Hunt [phunt@apache.org]
Sent: Friday, June 22, 2012 10:25 PM
To: dev@zookeeper.apache.org
Subject: Re: Connect Jconsole remotely to the zookeeper server

It's supported in the sense that the jvm supports it. I'm not sure
what you're asking.

Patrick

On Fri, Jun 22, 2012 at 3:33 AM, Rakesh R <ra...@huawei.com> wrote:
> Hi All,
>
> JMX remote monitoring:
> ---------------------------
> I failed to find any configuration for the 'jmxPort' in the zookeeper. I've hardcoded the jmx port and other remote configurations in the zkServer.sh script file as follows and able to connect remotely.
>
> -Dcom.sun.management.jmxremote.port=5000
> -Dcom.sun.management.jmxremote.authenticate=false
> -Dcom.sun.management.jmxremote.ssl=false
>
> Does zookeeper support remote connection. Is there anything I'm missing?
>
> Thanks & Regards,
> Rakesh

Re: Connect Jconsole remotely to the zookeeper server

Posted by Patrick Hunt <ph...@apache.org>.
It's supported in the sense that the jvm supports it. I'm not sure
what you're asking.

Patrick

On Fri, Jun 22, 2012 at 3:33 AM, Rakesh R <ra...@huawei.com> wrote:
> Hi All,
>
> JMX remote monitoring:
> ---------------------------
> I failed to find any configuration for the 'jmxPort' in the zookeeper. I've hardcoded the jmx port and other remote configurations in the zkServer.sh script file as follows and able to connect remotely.
>
> -Dcom.sun.management.jmxremote.port=5000
> -Dcom.sun.management.jmxremote.authenticate=false
> -Dcom.sun.management.jmxremote.ssl=false
>
> Does zookeeper support remote connection. Is there anything I'm missing?
>
> Thanks & Regards,
> Rakesh