This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author andzn
Recipients andzn
Date 2021-08-09.14:14:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1628518494.18.0.597101898312.issue44871@roundup.psfhosted.org>
In-reply-to
Content
In an application where we were handling incoming requests in new threads, we noticed that the memory usage grew over time. After trying to understand what's going on, i was able to reproduce this with a smaller python script that i've attached.

What we do:
- start a thread
- the thread allocates some memory
- at some point later we join the thread

Notice that this seems to be more like a race-condition because it doesn't reproduce without adding some delays between the creation of different threads. I've added a comment in the file that basically commenting one time.sleep makes the leak to not reproduce anymore.

On the other side, I was able to reproduce this consistently with every version of python on mulitple systems but only on Linux. On windows it doesn't reproduce.
History
Date User Action Args
2021-08-09 14:14:54andznsetrecipients: + andzn
2021-08-09 14:14:54andznsetmessageid: <1628518494.18.0.597101898312.issue44871@roundup.psfhosted.org>
2021-08-09 14:14:54andznlinkissue44871 messages
2021-08-09 14:14:53andzncreate