Can anyone please tell what is the best way to calculte the limit_memory_soft and limit_memory_hard for Odoo?
I see in some forum that those limits are per worker and in other forum it's calculated with the worker
I'm working with odoo14
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Can anyone please tell what is the best way to calculte the limit_memory_soft and limit_memory_hard for Odoo?
I see in some forum that those limits are per worker and in other forum it's calculated with the worker
I'm working with odoo14
Hi,
Yes It is calculated per workers , Maximum allowed virtual memory per worker.
For Odoo 16,
limit-memory-soft = 2048 X No of worker * 1024 * 1024
limit-memory-hard = 2560 X No of worker * 1024 * 1024
2048 and 2560 are standard values for odoo. It will increase/decrease version by version. You can check these values with -help command when you start the odoo server.
Thank you Malay for your answer
I see in your formula that you multiple 2048 (limit_memory_soft) and 2560 (limit_memory_hard) by the number of worker.
But if those limits are actually per worker, doesn't it mean that we shouldn't multiple them per worker?
Hi Samuel RAMAROSELY,
We add limit_memory_soft and limit_memory_hard parameters in the server configuration file. So we need to define the total limit of all the workers use. That's why we multiply it with total number of workers.
So the system will manage the Maximum and minimum Total memory allocation limit.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up