Thanks Olivier. I just noticed a little bug in the patch, the attached is the correct version.
** Patch added: "limitmemory.patch" https://bugs.launchpad.net/openobject-server/+bug/799678/+attachment/2214627/+files/limitmemory.patch ** Patch removed: "limitmemory.patch" https://bugs.launchpad.net/openobject-server/+bug/799678/+attachment/2175748/+files/limitmemory.patch -- You received this bug notification because you are a member of OpenERP CTP, which is subscribed to OpenERP Server. https://bugs.launchpad.net/bugs/799678 Title: Set maximum memory usage Status in OpenERP Server: Won't Fix Bug description: It's possible to construct stupid requests which cause memory to run away, and potentially crash a system. It therefore is good to be able to specify the maximum memory usage openerp-server can use. Attached is a simple patch implementing this. It uses rlimit, so it's Linux only. It allows one to set a config option "max_mem_mb", which is the maximum amount of memory in MB that the server can use. If openerp requests more memory, the request will fail, and openerp will throw an error (but continue processing other requests happily). This is against the latest trunk of the v5 branch. I don't have any experience with v6, but presumably a very similar patch will work perfectly fine there. To manage notifications about this bug go to: https://bugs.launchpad.net/openobject-server/+bug/799678/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-gtk Post to : [email protected] Unsubscribe : https://launchpad.net/~openerp-dev-gtk More help : https://help.launchpad.net/ListHelp

