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

thread count keeps growing using ddtrace==2.14.2 #11006

Open
daillouf opened this issue Oct 11, 2024 · 2 comments
Open

thread count keeps growing using ddtrace==2.14.2 #11006

daillouf opened this issue Oct 11, 2024 · 2 comments
Assignees
Labels
Profiling Continous Profling

Comments

@daillouf
Copy link

Hello everyone,

we are using ddtrace in production on our celery workers, and those seem to be creating extra threads

Image

we had the issue when we initially upgraded all our unpinned dependencies, so we rolled back and I tested it one by one, the celery version is 5.3.6, and we also use celery-beats, and our worker pool should be multiprocessing.

our python version is 3.11 by the way,

let me know if i can give additional details or if you can’t reproduce,

Regards

@sanchda
Copy link
Contributor

sanchda commented Oct 11, 2024

👋 thank you for the report!

Can you confirm the ddtrace version which is causing issues?

Also, I can't quite see the top of the dashboard, but it looks like this is a view of Docker Threads--is that correct? Would you be willing to share whether there is also an increase in the total number of processes (PIDs) in the container? This might help us narrow what category of behaviors to look at.

@inikolaev
Copy link

Not sure if related, but after upgrading to Python 3.12 and ddtrace==2.14.2 with profiling enabled I started to observe increased CPU utilization and profiler has been showing thousands of exceptions being thrown.

After I disabled profiling the CPU consumption has decreased:
Image

Thrown exceptions during same time frame:
Image

Image
Image

@mabdinur mabdinur added the Profiling Continous Profling label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Profiling Continous Profling
Projects
None yet
Development

No branches or pull requests

4 participants