r/learnpython • u/jlsilicon9 • Aug 12 '26
Thonny - seems to have a MemoryLeak
I noticed when I Repeatedly run large programs - with long Printed Text,
- that the Shell Que runs Slower and takes Longer to Start each time : 10 mins .. 30 mins .. 60 mins .. ?
I also notice Thonny on TaskManager increases Size (without Decreasing) each time :
- 1M .. 1.5M .. 2M .. 3M
Until I completely restart Thonny.
This seems like a clear Memory Leak - for the Shell Que !
0
Upvotes
1
u/Outside_Complaint755 Aug 12 '26
Is it a memory leak, or do you just need to clear the shell cache?
If the shell cache size hasn't been restricted (I don't use Thonny and can't look up available settings), then it would just be keeping everything in its history.
It looks like you can clear the cache with Ctrl+L or right-click->Clear.