Pylons/pyramid_debugtoolbar — Issue #51: pdtb_sqla_queries cause "memory leak" in long running pyramid script
Author: sayap
Created: 2012-01-26 04:38:47+00:00
State: open

Let's say I have a long running pyramid script (with the standard paster bootstrap) that repeats the same SQLAlchemy query once every 2 seconds. After a while, maybe 30 minutes or so, the machine will swap itself to near-death, until the script eventually get killed by the OOM killer.

The memory usage stays constant if I remove `pyramid_debugtoolbar` from `pyramid.includes`, so I believe it is `pdtb_sqla_queries` that causes the "memory leak".

As the debug toolbar is really great during development, I don't want to remove it from `pyramid.includes`. Is there a better workaround than maintaining separate .ini files for web and script?