[ python-Bugs-1048495 ] Memory leaks?
SourceForge.net
noreply at sourceforge.net
Sun Oct 17 00:49:41 CEST 2004
Bugs item #1048495, was opened at 2004-10-17 04:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1048495&group_id=5470
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Roman Mamedov (romanrm)
Assigned to: Nobody/Anonymous (nobody)
Summary: Memory leaks?
Initial Comment:
Open python command-line interpreter. Enter:
>>> a = range (10000000)
Observe Python memory usage. 20 Mb real, 159 Mb virtual memory here(I'm on windows). Enter:
>>> a = 0
Observe memory usage again. 120 mb real/120 mb virtual. OK, this is a garbage collected language, lets try to garbage-collect.
>>> import gc
>>> gc.collect()
0
That didn't help. The memory usage is still at 120/120.
So, the question is, when that "range" object will get deleted, or how to do delete it manually? Why garbage collection doesn't get rid of "orphaned" objects?
Any comments?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1048495&group_id=5470
More information about the Python-bugs-list
mailing list