Skip to content

Shared Data filling up when deploying/undeploying networks generating OutOfMemory errors #41

@gdepourtales

Description

@gdepourtales

Hi

First of all thanks a lot for bringing us Vertigo. It's a very valuable piece of software.

Our use case makes use of many networks deploying/undeploying them many times. After a while we experienced always OutOfMemory errors. After investigating with VisualVM, we found out that the PermGen was filling out with new classes being loaded and never removed.

After experimenting a bit, we added the following lines after undeploying to clean the shared data left by vertigo :

vertigo.undeployNetwork(DEFAULT_CLUSTER, networkName);
// Clean up Shared Data
getVertx().sharedData().getSet(DEFAULT_CLUSTER).remove(networkName);
getVertx().sharedData().removeMap("default." + DEFAULT_CLUSTER + "." + networkName);
getVertx().sharedData().removeMap("default.deployments." + DEFAULT_CLUSTER + "." + networkName);
getVertx().sharedData().removeMap(DEFAULT_CLUSTER + "." + networkName);

After adding those 4 lines, we don't get any OutOfMemory anymore.

Are we doing something wrong (for example forgetting to unregister components or removing components) ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions