Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JMX: Setup LazyReferenceManager according the docu raised an Exception: InstanceAlreadyExistsException #322

Open
zdenek-jonas opened this issue Oct 29, 2024 · 0 comments

Comments

@zdenek-jonas
Copy link
Contributor

This simple code with enabled logging debug produces error in log:

public class LazyCheckerTest
{

    @Test
    void LazyChecker()
    {
        LazyReferenceManager.set(LazyReferenceManager.New(
                Lazy.Checker(
                        Duration.ofMinutes(30).toMillis(), // timeout of lazy access
                        0.75                               // memory quota
                )
        ));

    }
}
19:03:45.394 [main] WARN  o.e.s.monitoring.MonitoringManager -- Failed to register JMX Bean
javax.management.InstanceAlreadyExistsException: org.eclipse.store:name=LazyReferenceManager
	at java.management/com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:436)
	at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1865)
	at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:960)
	at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:895)
	at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:320)
	at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:523)
	at [email protected]/org.eclipse.serializer.monitoring.MonitoringManager$JMX.registerMonitor(MonitoringManager.java:135)
	at [email protected]/org.eclipse.serializer.reference.LazyReferenceManager$Default.<init>(LazyReferenceManager.java:227)
	at [email protected]/org.eclipse.serializer.reference.LazyReferenceManager.New(LazyReferenceManager.java:166)
	at [email protected]/org.eclipse.serializer.reference.LazyReferenceManager.New(LazyReferenceManager.java:151)
	at [email protected]/org.eclipse.serializer.reference.LazyReferenceManager.New(LazyReferenceManager.java:142)
	at [email protected]/org.eclipse.serializer.reference.LazyReferenceManager.New(LazyReferenceManager.java:127)
	at [email protected]/org.eclipse.serializer.reference.LazyReferenceManager$Static.<clinit>(LazyReferenceManager.java:78)
	at [email protected]/org.eclipse.serializer.reference.LazyReferenceManager.set(LazyReferenceManager.java:67)
	at [email protected]/test.eclipse.store.integrations.spring.boot.LazyCheckerTest.LazyChecker(LazyCheckerTest.java:17)
@zdenek-jonas zdenek-jonas changed the title Setup LazyReferenceManager according the docu raised an Exception: InstanceAlreadyExistsException JMX: Setup LazyReferenceManager according the docu raised an Exception: InstanceAlreadyExistsException Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant