ip = InetAddress.getLocalHost().getHostAddress();
} catch (UnknownHostException e) {
logger.warn("Cannot find localhost ip", e);
}
EurekaServerIdentity identity = new EurekaServerIdentity(ip);
jerseyApacheClient.addFilter(new EurekaIdentityHeaderFilter(identity));
}
try {
String serviceUrlHost = new URL(serviceUrl).getHost();
Monitors.registerObject(serviceUrlHost, this);
} catch (Throwable e) {