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

Memory leak in Celery worker #34

Closed
U039b opened this issue Dec 17, 2017 · 2 comments
Closed

Memory leak in Celery worker #34

U039b opened this issue Dec 17, 2017 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@U039b
Copy link
Contributor

U039b commented Dec 17, 2017

We notice an increasing consumption of memory. Restarting the Celery worker release the memory.

  • Debian Strech
  • Python 3.5

The task is defined here.

It appears that task state is not released after task execution. A quick diff on:

shows duplicated unreleased resources.

@U039b U039b added bug Something isn't working help wanted Extra attention is needed labels Dec 17, 2017
@JulienPalard
Copy link

Maybe using https://docs.python.org/3/library/tracemalloc.html may help here, to compare allocations of a short-lived process and a long lived one.

@U039b
Copy link
Contributor Author

U039b commented Dec 19, 2017

I got rid of all Popen but Celery still creates extra processes: c58c3c2

screenshot from 2017-12-19 14-39-56
screenshot from 2017-12-19 15-13-27

This issue is induced by Minio:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants