You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
Running a continual script in the background, e.g.:
import psutil
import sys
run_count = 0
while (run_count < 20000):
run_count = run_count + 1
sys.stdout.write("\r\r%s" % run_count)
sys.stdout.flush()
try:
cmdline = psutil.Process(0).cmdline
except Exception, e:
print "\n"
print "Exception for PID 0: %s" % e
continue
PID = -1
for i in psutil.get_process_list():
PID = i.pid
try:
cmdline = i.cmdline
except psutil.NoSuchProcess:
continue
except Exception, e:
print "\n"
print "Exception for PID %s: %s" % (PID, e)
continue
What is the expected output?
What do you see instead?
Memory usage (monitored via ps or top) climbs steadily in the background,
instead of staying constant or rising and falling as you'd expect with
garbage collecting.
FreeBSD code patched in r179 and OS X code patched as part of r182 . Was missing some
free() calls where needed, and needed to DECREF some Python objects after appending
to lists. Memory now remains rock solid when running the test code. Eventually we
should come up with an easier self-contained test case for memory leaks. Possibly
this will be easier to do when psutil supports reading process memory usage details.
From [email protected] on February 26, 2009 19:38:10
Original issue: http://code.google.com/p/psutil/issues/detail?id=28
The text was updated successfully, but these errors were encountered: