scalecube / scalecube-cluster

ScaleCube Cluster is a lightweight Java VM implementation of SWIM: Scalable Weakly-consistent Infection-style Process Group Membership Protocol. features cluster membership, failure detection, and gossip protocol library.
http://scalecube.github.io/
Apache License 2.0
263 stars 88 forks source link

Unregister JMX bean. #363

Closed SammyVimes closed 3 years ago

SammyVimes commented 3 years ago

JMX bean is registered in ClusterImpl but is not unregistered. This leads to a memory leak, as JMX registry is a GC root (because of a static field that holds JMX models).

Also: I added resources clean up in some of the tests in ClusterTest

ronenhamias commented 3 years ago

@SammyVimes thank you!