Skip to content

Memory leak is possible #38

@artem-v

Description

@artem-v

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions