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

Issue: Memory Leak when serving multiple models #999

Open
pratikluitel opened this issue May 9, 2022 · 4 comments
Open

Issue: Memory Leak when serving multiple models #999

pratikluitel opened this issue May 9, 2022 · 4 comments

Comments

@pratikluitel
Copy link

pratikluitel commented May 9, 2022

Description

I am encountering a memory leak when serving multiple MXNet models behind the same endpoint in multi-model-server.

I am using 2 docker containers, with the multi-model-server docker image, and serving 4 models in each container.
Here are the relevant parts of my docker compose file:
image

The issue

There is massive memory leak. One would expect the memory to clear after each inference, but it keeps on adding and adding until the multi-model-server stops.

This issue does not occur when I use separate containers to serve each model, serving one model per container, like so:
image

Only 500MB memory is consumed per model in this case, which does not increase at all on multiple inferences.
But when serving multiple models, each inference uses extra memory, and the memory does not clear at all. The multi model server crashes after it runs out of memory.

@chinge55
Copy link

I have encountered this as well. +1

@chinge55
Copy link

In my case, even when I separated the models into multiple containers; the memory was still leaking.

@pratikluitel
Copy link
Author

update: seems like this is an issue with multi model server itself. there was no memory leak when serving these models using a flask server.
Hope this is fixed soon

@lrbsunday
Copy link

The issue seems still there. Is this tool still in maintenance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants