简体   繁体   中英

where does the MBEAN server store all the metrics?

I am new to JMX. I heard that MBEAN's write to MBEAN server locally. And I am wondering where does the MBEAN server store all the metrics? what happens when the MBEAN server crashes? all the metrics are lost?

The MBean server is just a component of your application. A regular Java object implementing the MBeanServer interface.

Most metrics MBeans are probably just storing their data in memory, like most Java objects.

Yes, the data will be lost if the server/application/JVM crashes, just like all other in-memory data, unless you have something else reading it out and storing it somewhere else.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM