Hi guys, Many thanks for all your suggestions.
Can you please confirm / correct the following? ... Does web2py load the code from all models into memory for each and every web request?, or does it cache/reuse the same code (as long as it does not change)?. I know web2py executes all models for every web request, but does it actually *load* the code into memory as well for every single web request?. Furthermore, if I move code from models to modules, will web2py still *reload* all code into memory for every web request, or will this be avoided?. I just confirmed that by defining a very long class (without even instantiating it) in the default Welcome model, I can see the memory being consumed by the uwsgi processes while loading /welcome/default/index ... this does not mean any leaking on the app, right?, then what can I check in order to avoid all this memory leaking?. Thanks again, Carlos