简体   繁体   中英

Infinispan JMX error

Hello I'm getting following error:

ERROR JmxUtil - ISPN000034: There's already an cache manager instance registered under 'org.infinispan' JMX domain. If you want to allow multiple instances configured with same JMX domain enable 'allowDuplicateDomains' attribute in 'globalJmxStatistics' config element

My question is where and how can i configure this option programmatically and is there a method to unregister the cacheManager from JMX so this error will not occur everytime.

You can allow multiple cache managers to register in the same JMX domain with

new GlobalConfigurationBuilder().globalJmxStatistics().allowDuplicateDomains(true)

However, if you have multiple cache managers active at a time, you should ideally configure a different domain for each of them with

new GlobalConfigurationBuilder().globalJmxStatistics().jmxDomain("domain")

Also, make sure you call cacheManager.stop() when you stop using a cache manager to unregister its MBeans from JMX.

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