Skip to content

Tiny memory leak when using numpy in embedded sub interpreters #5857

Closed
@ndjensen

Description

@ndjensen

There appears to be a tiny memory leak somewhere in numpy that shows up when using numpy in embedded sub interpreters. I've seen this on RHEL 5 and RHEL 6 in long running server processes, and it appears to be there in all versions of numpy (though it's significantly smaller/slower in newer numpy releases). It's rather challenging to spot but I've written a test case that will illustrate the memory climbing higher continuously. See https://github.com/mrj0/jep/blob/v3.3.0rc/src/jep/test/numpy/TestNumpyMemoryLeak.java

The workaround is to eventually restart the process. If you have trouble running the test case, you may need to configure your environment variables PATH, LD_LIBRARY_PATH, or LD_PRELOAD depending on your system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    00 - BugEmbeddedIssues regarding embedded python interpreters

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions