Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
7 Odpowiedzi
27284 Widoki

Hi,

I am facing something really strange.
Server: ubuntu 16
Core: 8
Ram 47GB
Odoo 10 installed with workers = 4
However, if i set:
limit_memory_hard = xxxx # 4GB
limit_memory_soft = xxxxx # 640 MB
Odoo is unable to restart.
Any idea what could be wrong ?
Thanks,

Dominique KON-SUN-TACK 
Awatar
Odrzuć
Najlepsza odpowiedź

With Odoo 10 default values for memory limits are 2048MiB (soft) and 2560MiB (hard), those are per workers. If you launch /usr/bin/odoo --help it will print all default values with explanations.

With 8 cores and 47 GB of ram you should have more workers and upper limits, for the total limits allow the use of max Ram (#workers x limits < available Ram). But keep free resources for other processes if needed, like if postgresql is on the same server, you have to give it cpu and ram. Olivier Dony, Odoo's main sysadmin explain how to calculate in several conferences, see for example https://www.odoo.com/fr_FR/slides/slide/performance-tips-tricks-399 and related video of the conference.

Awatar
Odrzuć
Najlepsza odpowiedź

Hey,


FYI, please make sure you have given proper hard and soft limit , basic formula to calculate it as below,

limit-memory-hard = 768 * your workers (e.g 4) *1024 * 1024 = 3221225472

limit-memory-hard = 640 * your workers (e.g 4) *1024 * 1024 = 2684354560

This will definitely help you !

for more boost up your performance >
https://www.odoo.com/forum/help-1/question/hardware-for-50k-website-visitors-128995#answer-129016

Many Thanks!

Awatar
Odrzuć

No, this is wrong. limits are for each workers as stated by the doc. Just launch /usr/bin/odoo --help and you will see. 768 and 640 MB were the default values prior to Odoo 10 (now it is 2,5 and 2 GB).

Najlepsza odpowiedź

find the odoo config file, eg mine is at /home/meuser/.odoorc, it contains your odoo configurations,

open the file and use the calculations done by Niyas Naphy at the top to change those values.

worked fine for me.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Thanks for the answers!

I consequently increased the limit-memory soft to 640*4*1024*1024, and it worked.

Cheers

Awatar
Odrzuć

Sounds Great !!