Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在我的 java 代码中实现 JMX 以在 JMX 计数器上显示度量。我需要什么 XML 文件,例如 MBEAN。请我需要一些指导,这是非常重要的。
我最终构建了一个 jar 文件并从终端运行。那么需要在代码中实现什么?
由于您使用的是 Spring,我将从这里的 Spring 文档开始:JMX。该文档写得很好,并准确地描述了如何做到这一点。