I monitored my own app running under Rocket in development mode with Ubuntu 
System Monitor and the RSS memory size started at about 26 MB. After pushing 
every link in the interface it had grown to 38.5 MB and then stopped at that 
size. It has been running for over a day now with no further increase in RSS 
memory.

If you are using ram cache in a db().select() statement then the memory 
build up could be because every query selects a different set of records due 
to different query conditions resulting in every query adding a new cached 
item to the ram cache.

Is there any chance you have code in the modules directory that is creating 
new global objects on every invocation of the model which is per request? 
The module code is imported, the model code is run by exec so that might 
account for a difference. With modules unless the reload=True parameter is 
supplied on local_import they cannot be edited without a server restart so 
they behave like a long life addition to the server.

Ron

Reply via email to