تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
7 الردود
26965 أدوات العرض

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 
الصورة الرمزية
إهمال
أفضل إجابة

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.

الصورة الرمزية
إهمال
أفضل إجابة

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!

الصورة الرمزية
إهمال

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).

أفضل إجابة

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.

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

Thanks for the answers!

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

Cheers

الصورة الرمزية
إهمال

Sounds Great !!