简体   繁体   English

Infinispan JMX错误

[英]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. 我的问题是在哪里以及如何以编程方式配置此选项,是否有一种方法可以从JMX取消注册cacheManager,因此每次都不会发生此错误。

You can allow multiple cache managers to register in the same JMX domain with 您可以允许多个缓存管理器在同一个JMX域中注册

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. 此外,请确保在停止使用缓存管理器从JMX注销其MBean时调用cacheManager.stop()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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