This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ewillie007
Recipients ewillie007
Date 2010-03-29.10:08:08
SpamBayes Score 6.54587e-09
Marked as misclassified No
Message-id <1269857293.22.0.576084159776.issue8258@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-03-29 10:08:13ewillie007setrecipients: + ewillie007
2010-03-29 10:08:13ewillie007setmessageid: <1269857293.22.0.576084159776.issue8258@psf.upfronthosting.co.za>
2010-03-29 10:08:11ewillie007linkissue8258 messages
2010-03-29 10:08:10ewillie007create