Skip to content

Possible memory leak when using NDB #789

Open
@luis5tb

Description

@luis5tb

After some investigation I think I hit some memory leak when using pyroute2.NDB. When executing the next https://github.com/luis5tb/bgp-agent/blob/main/bgp_agent/platform/utils/linux_net.py#L34-L43, on every execution I see that the memory allocated to the process increases:
http://paste.openstack.org/show/804952/

The next code was used to estimate that consumption per process after each time the above function got executed:
proc = psutil.Process(os.getpid())
LOG.info("MEMORY USAGE PER PROCESS: {}".format(proc.memory_info().rss))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions