Message101885
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. |
|
Date |
User |
Action |
Args |
2010-03-29 10:08:13 | ewillie007 | set | recipients:
+ ewillie007 |
2010-03-29 10:08:13 | ewillie007 | set | messageid: <1269857293.22.0.576084159776.issue8258@psf.upfronthosting.co.za> |
2010-03-29 10:08:11 | ewillie007 | link | issue8258 messages |
2010-03-29 10:08:10 | ewillie007 | create | |
|