luigimarmo / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

Process.{get_memory_info, get_ext_memory_info, get_memory_percent} leaks memory. #413

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Repeatedly call Process.get_memory_info(), Process.get_ext_memory_info(), 
Process.get_memory_percent()
2. Observe explosive memory usage

for proc in psutil.process_iter():
    proc.get_memory_info()

What is the expected output?
Memory usage stays relatively flat

What do you see instead?
Consumes tons of memory

What version of psutil are you using? What Python version?
psutil 1.0.1
python 2.7.5

On what operating system? Is it 32bit or 64bit version?
Windows 7 SP1 32-bit

Please provide any additional information below.
Looks like the root issue is the call to 
_psutil_mswindows.get_process_memory_info (and probably 
_psutil_mswindows.get_process_memory_info_2)

Original issue reported on code.google.com by thep...@gmail.com on 25 Jul 2013 at 11:48

GoogleCodeExporter commented 8 years ago
You're right: I can reproduce the problem with 
_psutil_mswindows.get_process_memory_info_2().
This also means we currently does not have a test case for this.
More later.

Original comment by g.rodola on 26 Jul 2013 at 12:43

GoogleCodeExporter commented 8 years ago
Fixed in revision 88c8fd7732c0.

Original comment by g.rodola on 26 Jul 2013 at 3:25

GoogleCodeExporter commented 8 years ago
Issue 417 has been merged into this issue.

Original comment by g.rodola on 9 Aug 2013 at 9:44

GoogleCodeExporter commented 8 years ago
Issue 432 has been merged into this issue.

Original comment by g.rodola on 26 Sep 2013 at 6:46

GoogleCodeExporter commented 8 years ago

Original comment by g.rodola on 28 Sep 2013 at 10:06

GoogleCodeExporter commented 8 years ago
Closing out as fixed. Release 1.1.0 is now available for download.

Original comment by g.rodola on 28 Sep 2013 at 5:32