Multiple interpreters retaining huge amounts of memory
"Martin v. Löwis"
martin at v.loewis.de
Sat Feb 2 02:34:03 CET 2008
> Is there some way to track references per interpreter, or to get the
> memory allocator to set up seperate arenas per interpreter so that it
> can remove all allocated memory when the interpreter exits?
No. The multi-interpreter feature doesn't really work, so you are
basically on your own. If you find out what the problem is, please
submit patches to bugs.python.org.
In any case, the strategy you propose (with multiple arenas) would *not*
work, since some objects have to be shared across interpreters.
More information about the Python-list