# Es remote monitoring through jmx

**URL:** <https://discuss.elastic.co/t/es-remote-monitoring-through-jmx/8608>\
**Category:** Elasticsearch\
**Created:** [August 2, 2012, 1:48pm UTC](https://discuss.elastic.co/t/es-remote-monitoring-through-jmx/8608 "2012-08-02T13:48:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sisu\_Alexandru](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@Sisu\_Alexandru](https://discuss.elastic.co/u/Sisu_Alexandru)\
**Post date:** [August 2, 2012, 1:48pm UTC](https://discuss.elastic.co/t/es-remote-monitoring-through-jmx/8608/1 "2012-08-02T13:48:59Z")

</div>

Hello,

Whats the way of connecting JConsole or VisualVM to a remote ES (assuming  
no firewall is active)?

I've read the docs from here:  
[http://www.elasticsearch.org/guide/reference/modules/jmx.html](http://www.elasticsearch.org/guide/reference/modules/jmx.html), but  
they didn't help me to much.

In the documentation there it is said that I have to set a port setting:  
where do I set it?  
And what would be the connection string for connecting to it? is it:  
[my.domain.com:9450](http://my.domain.com:9450) if I set the jmx port to 9450?

Thanks in advance,

Alex

---

<div class="post-metadata">

**Author:** ![Sisu\_Alexandru](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@Sisu\_Alexandru](https://discuss.elastic.co/u/Sisu_Alexandru)\
**Post date:** [August 2, 2012, 2:31pm UTC](https://discuss.elastic.co/t/es-remote-monitoring-through-jmx/8608/2 "2012-08-02T14:31:15Z")

</div>

I nailed it down, from the following 2 resources:

> <https://gist.github.com/mrflip/766608>

[http://visualvm.java.net/jmx\_connections.html](http://visualvm.java.net/jmx_connections.html)

So the following settings are needed:

in _elasticsearch.yml:_

jmx.create\_connector: true  
jmx.port: 9400-9500  
jmx.domain: elasticsearch

_when running it:_  
./bin/elasticsearch -Dcom.sun.management.jmxremote.ssl=false  
-Dcom.sun.management.jmxremote.authenticate=false  
-Dcom.sun.management.jmxremote.port=3333

Make sure: 3333, 9400-9500 ports are open.

Cheers,

Alex

On Thu, Aug 2, 2012 at 3:48 PM, Sisu Alexandru [sisu.eugen@gmail.com](mailto:sisu.eugen@gmail.com) wrote:

> Hello,
> 
> Whats the way of connecting JConsole or VisualVM to a remote ES (assuming  
> no firewall is active)?
> 
> I've read the docs from here:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/modules/jmx.html), but  
> they didn't help me to much.
> 
> In the documentation there it is said that I have to set a port setting:  
> where do I set it?  
> And what would be the connection string for connecting to it? is it:  
> [my.domain.com:9450](http://my.domain.com:9450) if I set the jmx port to 9450?
> 
> Thanks in advance,
> 
> Alex

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:18am UTC](https://discuss.elastic.co/t/es-remote-monitoring-through-jmx/8608/3 "2017-07-06T03:18:00Z")

</div>


