Community mailing list archives

community@mail.odoo.com

Memory values in configuration

by
Anubía, soluciones en la nube, S.L., Alejandro Santana
- 10/22/2015 06:42:03
Hello,

is there any recommendations regarding the values in config file for:

limit_memory_hard = 2684354560
limit_memory_soft = 2147483648
limit_request = 8192
limit_time_cpu = 60
limit_time_real = 120
workers = 0

I read that recommended value for workers are either: workers = 0 or workers = (cores*2 +1)

Also, limit_memory_soft and limit_memory_hard are "per worker", isn't it?
By default I see 2MiB for soft... so if I set workers = 5, Odoo may try to use 5 * 2MiB = 10 MiB, isn't it?
Then, if I have a 4MiB RAM server, it might crash whenever tries to use more RAM than available?

So, would it be wise to calculate such as:

limit_memory_soft = (0.75 * Total server RAM) / workers
(Allow Odoo to use 75% of server RAM)

Best regards,

--
Alejandro Santana
· · · · · · · · · · · · · · · · · · · · · · · · · · · · ·

ANUBÍA, soluciones en la nube, S.L.

Colón 26, planta 3, oficina 1
36201, Vigo (Pontevedra)

www.anubia.es


anubía_logo_2014_i_o_140x140.pngodoo_logo_odoo_ready_140x140.png