You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When hazelcast.jmx option is enabled MBeans are created for every Hazelcast object but are never removed.
When destroying Hazelcast object with destroy() method, DistributedObjectEvent::getDistributedObject() throws DistributedObjectDestroyedException and stops the process of unregistering MBeans. MBeans are left forever causin memory leaks and can be seen in visualvm.
Also there are eventually strange numbers in totalAddedItemCount (should be 100)
The code I've run:
public static void main(String [] args) throws InterruptedException {
Config config = new Config();
HazelcastInstance instance = Hazelcast.newHazelcastInstance(config);
for (int i = 0; i < 100000; i++) {
IQueue<String> q = instance.getQueue(String.format("queue_%08d", i));
for(int j = 0; j < 100; j++) {
q.offer("test_" + j);
}
q.destroy();
}
}
The heap without hazelcast.jmx=true:
The heap with hazelcast.jmx=true:
The text was updated successfully, but these errors were encountered:
When hazelcast.jmx option is enabled MBeans are created for every Hazelcast object but are never removed.
When destroying Hazelcast object with destroy() method, DistributedObjectEvent::getDistributedObject() throws DistributedObjectDestroyedException and stops the process of unregistering MBeans. MBeans are left forever causin memory leaks and can be seen in visualvm.
Also there are eventually strange numbers in totalAddedItemCount (should be 100)
The code I've run:
The heap without hazelcast.jmx=true:
The heap with hazelcast.jmx=true:
The text was updated successfully, but these errors were encountered: