[issue11803] Memory leak in sub-interpreters

2011-04-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Swapnil, please pay attention to what people write. PYTHON 2.6 IS NOT OPEN FOR BUGFIXES. Please do not add 2.6 to this issue again or reopen until you find a problem with 2.7.1 or 3.2.0. -- nosy: +terry.reedy status: open -> closed ___

[issue11803] Memory leak in sub-interpreters

2011-04-11 Thread Graham Dumpleton
Graham Dumpleton added the comment: I wouldn't use mod_python as any guide for how to use sub interpreters as its usage of sub interpreters and threading in conjunction with them is technically broken, not following properly the Python C API requirements. It doesn't even shutdown the Python i

[issue11803] Memory leak in sub-interpreters

2011-04-11 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: a) Python 2.6 is open only for security fixes. Could you possibly try in 2.7, 3.1 and 3.2? b) Could you run the test a bit longer and confirm that the leak is slowly growing? c) I assume your mod_python is running under Apache. Apache restarts processes af

[issue11803] Memory leak in sub-interpreters

2011-04-11 Thread Swapnil Talekar
Changes by Swapnil Talekar : -- resolution: invalid -> status: closed -> open versions: +Python 2.6 ___ Python tracker ___ ___ Python

[issue11803] Memory leak in sub-interpreters

2011-04-11 Thread Swapnil Talekar
Swapnil Talekar added the comment: Sorry about the previous report. I should have tested it thoroughly. Yes, it does not seem to rise but eventually it does. This time, I'v added garbage collection right after the subinterpreter is shutdown. The memory consumption does not seem to rise above

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I think this is a non-issue. Closing. If you have a testcase proving real leaks in a current release, reopen. -- resolution: -> invalid status: open -> closed ___ Python tracker

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: -eric.araujo versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- nosy: -benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: Please don't add everyone in existence to the nosy list. -- ___ Python tracker ___ ___ Python-bu

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Most builtin modules keep static references to common objects: exceptions, types, &co. These references are currently never freed, but are reused by all sub-interpreters. It the memory usage stays stable, even after many calls to Py_NewInterpreter()/Py

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: The fact that the "leak" doesn't grow seems to confirm Nick supposition. Close as invalid? -- nosy: +jcea ___ Python tracker ___

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Nick Coghlan
Nick Coghlan added the comment: As a first guess, I would suspect that this is just badly fragmenting the heap and we aren't freeing up any arenas to pass back to the OS. -- ___ Python tracker ___

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Ezio Melotti
Ezio Melotti added the comment: Indeed, the code looks similar, but #222684 seems to be fixed, and doesn't use PyImport_ImportModule, so maybe the leak is there. -- ___ Python tracker

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Swapnil Talekar
Changes by Swapnil Talekar : Added file: http://bugs.python.org/file21579/large_import.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Swapnil Talekar
Swapnil Talekar added the comment: No. This is not the same as #222684? -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Ezio Melotti
Ezio Melotti added the comment: Is this the same as #222684? -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list maili

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Swapnil Talekar
New submission from Swapnil Talekar : In the attached program, the total memory consumption of the process, goes up each time a new subinterpreter imports a bunch of modules. When the subinterpreter is shutdown with Py_EndInterpreter, the memory consumed with import of modules is not returned