Skip to content

Possible memory leak in Celery integration #2034

Closed as not planned
Closed as not planned
@antonpirker

Description

@antonpirker

How do you use Sentry?

Sentry Saas (sentry.io)

Version

1.20.0

Steps to Reproduce

Have a Flask project that has multiple views where one is calling a task (ex called sometask) multiple times using the delay method: sometask.delay(some_msg). (In my test case some_msg was a string with 10,000 random characters.

Now load test this project and generate lots of hits to the view (and thus lots of calls to the task)

The memory usage will increase over time:
plot1 copy 2

This is the test project I created:
https://github.com/antonpirker/test-celery-memory-leak

Expected Result

Memory usage stays roughly the same.

Actual Result

Memory usage increasing.

Metadata

Metadata

Assignees

Type

Projects

Status

No status

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions