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

Memory leak is possible #38

Open
artem-v opened this issue Dec 13, 2017 · 0 comments
Open

Memory leak is possible #38

artem-v opened this issue Dec 13, 2017 · 0 comments
Labels

Comments

@artem-v
Copy link
Contributor

artem-v commented Dec 13, 2017

Try run this artificial example:

    for(;;) {
      StringConfigProperty orderedProp1 = configRegistry.stringProperty("orderedProp1");
      orderedProp1.addValidator(s -> true);
      orderedProp1.addCallback((s, s2) -> System.out.println(s));
    }

Open jconsole and look at OldGen, it grows. The problem is at:

io.scalecube.config.AbstractConfigProperty#setPropertyCallback
io.scalecube.config.PropertyCallback#addConfigProperty
@artem-v artem-v added the bug label Dec 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant