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?
Asked
Active
Viewed 2,756 times
1 Answers
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

Frederic Close
- 9,389
- 6
- 56
- 67
-
And if we are not using Spring? – OneCricketeer Aug 02 '22 at 18:12