I have done a test using last snapshot 1.x but that does not work
Add to the elasticsearch script -->
JAVA_OPTS="-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=9400
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false"
After starting jconsole and connect to elasticsearch bootstrap, then no ES
MBeans appear
I see from the code that we have commented those lines in Bootstrap. This
is perhaps the explanation
private static Tuple<Settings, Environment> setupJmx(Tuple<Settings,
Environment> tuple) {
// We disable JMX on by default, since we don't really want the
overhead of RMI (and RMI GC...)
// if (tuple.v1().get(JmxService.SettingsConstants.CREATE_CONNECTOR)
== null) {
// // automatically create the connector if we are bootstrapping
// Settings updated =
settingsBuilder().put(tuple.v1()).put(JmxService.SettingsConstants.CREATE_CONNECTOR,
true).build();
// tuple = new Tuple<Settings, Environment>(updated, tuple.v2());
// }
return tuple;
}
On Friday, May 24, 2013 11:23:38 AM UTC+2, Nicolas Labrot wrote:
Hello,
JMX is a common way to monitor a lot of Java Apps and a lot a monitor apps
have JMX connector. I read on this group that Shay does not recommend JMX
for monitoring ES. Stats API is prefered. Is there any reason for that ?
I know JMX has a cost. But with low frequency queries, it become
unnoticeable.
Regards,
Nicolas
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.