Skip to content

cpu stuck in memory profiling  #3170

@alangenfeld

Description

@alangenfeld

Webserver application (uvicorn & starlette) stuck at 100% CPU in
ddtrace/profiling/collector/memalloc.py:139 / heap_tracker_untrack_thawed (_memalloc_heap.c:80)

py-spy top
https://gist.github.com/alangenfeld/4dd201717208f7bde63ff26552d80096

py-spy top -n
https://gist.github.com/alangenfeld/fb51310ccf085f67fe717ebb2df9dee8

Which version of dd-trace-py are you using?

observed in 0.57.2 and 0.57.1

Which version of pip are you using?

pip 21.0.1

Which version of the libraries are you using?

https://gist.github.com/alangenfeld/73336333915dd9e7e2b0a1592e38e24e

How can we reproduce your problem?

Unclear - observed in one of our webservers but not the other

What is the result that you get?

CPU pegged at 100% at heap_tracker_untrack_thawed (_memalloc_heap.c:80)

What is the result that you expected?

Profiling with reasonable overhead

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions