跳至內容
選單
此問題已被標幟
1 回覆
12483 瀏覽次數

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.