New submission from William <william.le...@mastek.com>:

Context:
I am embedding Python into a Windows based C++ application, where a new Python 
interpreter (using Py_NewInterpreter) is created for each user who connects to 
the system. When the user logs off, the function "Py_EndInterpreter" is used to 
free all the associated resources.

Problem:
After starting the application on a server, the memory usage increases rapidly 
as some users login and log-off from the system.

Some Tests:
I have conducted some tests along with the Python interpreter. I have written a 
simple C++ program which simply creates 100 Python interpreters and then ends 
them one by one. If we check the Windows Task Manager, the following are the 
observations:-

Memory usage before starting to create the Python Interpreters: 4316K
Memory usage after creating 100 Python Interpreters: 61248K
Memory usage after ending the 100 Python Interpreters: 47664K

This shows that there has been a memory leak of approximately 43348K

Please do consider this problem for fixing at the earliest or let me know if I 
am doing something wrong.

----------
components: Interpreter Core, Windows
files: PythonCall.cpp
messages: 101885
nosy: ewillie007
severity: normal
status: open
title: Multiple Python Interpreter Memory Leak
type: resource usage
versions: Python 2.6
Added file: http://bugs.python.org/file16687/PythonCall.cpp

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8258>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to