[issue22534] Possible Memory Leak with 'shelve'
TJ
report at bugs.python.org
Thu Oct 2 18:12:47 CEST 2014
TJ added the comment:
Thanks for the help. For my linux box, I have no issue. This is Ubuntu 13.10:
Linux localhost 3.11.0-26-generic #45-Ubuntu SMP Tue Jul 15 04:02:06 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
2.7.5+ (default, Feb 27 2014, 19:37:08)
[GCC 4.8.1]
However, I'm still getting issues with my other box, which is Mac OS. I think I have the relevant info here (let me know if we need additional info):
[10:55:00] ~$ sw_vers -productVersion
10.9.2
[10:55:10] ~$ python -c "import sys; print sys.version"
2.7.8 (default, Aug 21 2014, 20:13:48)
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)]
[10:55:57] ~$ python -c "import anydbm;d = anydbm.open('bla', 'c');print(type(d))"
<class 'bsddb._DBWithCursor'>
[10:56:05] ~$ cat leaktest.py
import anydbm
while True:
d = anydbm.open('bla', 'c')
d.close()
[10:56:10] ~$ python leaktest.py &
[1] 99030
[10:56:18] ~$ ps -o pid,rss,vsz,command -p 99030
PID RSS VSZ COMMAND
99030 481928 3010600 python leaktest.py
[10:56:56] ~$ ps -o pid,rss,vsz,command -p 99030
PID RSS VSZ COMMAND
99030 3985920 6516788 python leaktest.py
[11:01:10] ~$ # After 5 minutes, "top" shows MEM as 13G
[11:01:23] ~$ ps -o pid,rss,vsz,command -p 99030
PID RSS VSZ COMMAND
99030 13891152 16429156 python leaktest.py
Those numbers are stable on my Linux box, and ever growing on Mac.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22534>
_______________________________________
More information about the Python-bugs-list
mailing list