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 fengjiang
Recipients fengjiang
Date 2021-01-28.02:24:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Hi,we are transfering code from python2.7 to 3.7 and find that using threading.timer will cause memory leak. It works fine in python2.7 but not 3.7. To repreduce the problem, you can simply run the code below.

While True:
    timer = threading.Timer(5, None)

you will find the memory of progress increases rapidly
Date User Action Args
2021-01-28 02:24:03fengjiangsetrecipients: + fengjiang
2021-01-28 02:24:03fengjiangsetmessageid: <>
2021-01-28 02:24:03fengjianglinkissue43050 messages
2021-01-28 02:24:03fengjiangcreate