[IronPython] IronPython with CherryPy through WSGI Memory issue
cgencer at gmail.com
Sat Apr 3 08:15:12 PDT 2010
I do not have the DynamicStackFrame problem, though I do not have
I 've managed to solve all the memory leak issues now (hopefully), the
last one was caused by the session handler in CherryPy. The cleanup
thread was not being started due to some reason. It seems that you
have to call the cherrypy.session object at least once to start up the
I use the wsgi.py found in FePy like this (if anyone is interested in
trying it out..)
public void ProcessRequest(HttpContext context)
var func = GetWsgiFunction();
private PythonFunction GetWsgiFunction()
if (_wsgiFunction = null)
ScriptScope scope = _engine.CreateScope();
GetApplicationCallable returns the application callable that is
created by CherryPy, that you get like this:
application = cherrypy.tree.mount(root, "/")
On Fri, Apr 2, 2010 at 10:52 PM, Dino Viehland <dinov at microsoft.com> wrote:
> Jeff wrote:
>> I'm seeing a lot of objects with !gcroots that start with
>> So it looks like it might be related to dynamic stack frames --
>> something that is in thread local storage and not getting cleaned up.
> Is this 2.6 or 2.6.1RC? I wonder if this could be the finalizer thread.
> !do on the thread object should give you the managed thread ID which can be
> associated with the values in !threads.
> Anyway this is definitely the exception leak - which is now fixed for 2.7. If
> This is happening on the finalizer thread then maybe there's somewhere else we
> need to clear this data for pre-2.7.
> Users mailing list
> Users at lists.ironpython.com
More information about the Users