我使用spring cloud netflix构建微服务应用程序,我正在使用Eureka服务器(点对点通信),我的微服务注册了eureka服务器。一切都按预期工作。
但是在日志中我每隔10-15分钟就会看到警告。
我做了一些研究,我的理解是它监控由JMX支持的注册表。有没有人见过这个问题,或者任何人都可以提出一些很好的建议来解决什么是最好的解决方案。我们可以禁用此监控吗?
WARN 1 --- [ Finalizer] c.netflix.servo.jmx.JmxMonitorRegistry : Unable to un-register Monitor:MonitorConfig{name=Discovery-PeerNodeClient- 172.17.0.1, tags=class=NamedConnectionPool, policy=DefaultPublishingPolicy}
javax.management.InstanceNotFoundException: com.netflix.servo:name=Discovery-PeerNodeClient- 172.17.0.1_Reuse,class=NamedConnectionPool,type=COUNTER,id=Discovery-PeerNodeClient- 172.17.0.1
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:427)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:415)
at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:546)
at com.netflix.servo.jmx.JmxMonitorRegistry.unregister(JmxMonitorRegistry.java:123)
at com.netflix.servo.DefaultMonitorRegistry.unregister(DefaultMonitorRegistry.java:143)
at com.netflix.servo.monitor.Monitors.unregisterObject(Monitors.java:199)
at com.netflix.http4.NamedConnectionPool.shutdown(NamedConnectionPool.java:188)
at org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager.shutdown(ThreadSafeClientConnManager.java:293)
at org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager.finalize(ThreadSafeClientConnManager.java:165)
at java.lang.System$2.invokeFinalize(System.java:1213)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:98)
at java.lang.ref.Finalizer.access$100(Finalizer.java:34)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:210)