Skip to content

No objects ever released by the GC, potential memory leak? #8612

Answered by Kludex
akullpp asked this question in Questions
Discussion options

You must be logged in to vote

I can reproduce it on Python 3.7.13, but it's not reproducible from 3.8+.

Notes:

  • This issue can be reproduced with pure Starlettte - this means this issue can be closed here.
  • This issue cannot be reproduced on Python 3.8+.
  • This issue cannot be reproduced with Starlette 0.14.2 (version pre-anyio) in Python 3.7.
  • This issue can only be reproduced by Starlette 0.15.0+ on Python 3.7.

I'll not spend more time on this issue. My recommendation is to bump your Python version.

In any case, this issue doesn't belong to FastAPI.

Replies: 38 comments 20 replies

Comment options

You must be logged in to vote
0 replies
Comment options

Kludex
Mar 6, 2022
Collaborator Sponsor

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@amrohendawi
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

Kludex
Mar 23, 2022
Collaborator Sponsor

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

Kludex
May 24, 2022
Collaborator Sponsor

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

Kludex
Sep 3, 2022
Collaborator Sponsor

You must be logged in to vote
13 replies
@AntonioBarral
Comment options

@agronholm
Comment options

@amarflybot
Comment options

@Sloow1
Comment options

@Sloow1
Comment options

Answer selected by tiangolo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@tianzhipengfei
Comment options

@andy-clapson
Comment options

Comment options

You must be logged in to vote
3 replies
@agronholm
Comment options

@sany2k8
Comment options

@agronholm
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem question-migrate
Converted from issue

This discussion was converted from issue #4649 on February 28, 2023 16:14.