Adding metrics to JMX

荒凉一梦 提交于 2019-12-11 02:14:56

问题


I have 2 questions regarding JMX: What can you measure in your application using JMX? Is it possible to add metrics to JMX? For instance: seeing how much time a certain operation took.

thanks


回答1:


You can add whatever metrics you like, you decide what you want to monitor.

For the second question, yes you can measure how much time some operation take.

One easy to implement your JMX metrics is to use Spring annotations :

http://docs.spring.io/spring/docs/3.2.4.RELEASE/spring-framework-reference/htmlsingle/#jmx-exporting



来源:https://stackoverflow.com/questions/19027800/adding-metrics-to-jmx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!