java.net.UnknownHostException: ip-X-X-X-X: ip-X-X-X-X: Name or service not known
at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1642)
at net.rubyeye.xmemcached.monitor.XMemcachedMbeanServer.initialize(XMemcachedMbeanServer.java:74)
at net.rubyeye.xmemcached.monitor.XMemcachedMbeanServer.<init>(XMemcachedMbeanServer.java:64)
at net.rubyeye.xmemcached.monitor.XMemcachedMbeanServer.<clinit>(XMemcachedMbeanServer.java:57)
at net.rubyeye.xmemcached.impl.Optimizer.<init>(Optimizer.java:68)
at net.rubyeye.xmemcached.impl.MemcachedConnector.<init>(MemcachedConnector.java:587)
I'm getting exception for:
even do
xmemcached.jmx.enable
is not enabled . I think we should move checking for the flag before any processing. I mean this line: https://github.com/killme2008/xmemcached/blob/master/src/main/java/net/rubyeye/xmemcached/monitor/XMemcachedMbeanServer.java#L84if you agree I can create a PR