Its interal app so I cant provide the source. But I realised the app still contains 'local_import' so I have replaced with 'import' but no effect. Then I benchmarked both compiled and non compiled version ... each 2x and non-compiled is fine, but compiled leaks memory ...
a) non-compiled version: web2py started at 37MB, increased to 56MB and oscilated +-2MB during the test with no significant increase at the end b) compiled version: web2py started at 37MB and memory was increasing during entire test up to 95MB ### ab -n 10000 -c 6 (app is using lazy tables/models, migration off) David --