odoo / docker

Other
931 stars 1.51k forks source link

Odoo 15 slow response #460

Open pabloiarriola opened 11 months ago

pabloiarriola commented 11 months ago

We migrated a Odoo 15 installation from vm to another one. The first machine was using an odoo 15 image from around january 2023 the new machine is using an image from 12 july 2023.

The problem that we are having is that everything inside Odoo is loading really slow, before we had loading time of the login screen of around 1s, now its around 2minutes to just load the login screen and inside every screen takes around the same time to load. Our .conf is the following

limit_memory_soft = 5764607523 max_cron_threads = 2 workers = 4 limit_memory_hard = 8646911288 limit_time_cpu = 900000000 limit_time_real = 300000000 limit_request = 8196

We have odoo 15 in a machine running alone as a docker container, the machine specs are 12GB ram, 8vcpu and 50GB HDD. The database is in another machine and we are using postgresql 12.10. In front of odoo we have a AWS ALB. We know the problem is something inside ODOO and not network as when we make a ping to the machine its taking 20ms but when we make a curl to the login page it takes in average between 40s and 2 minutes

jhollandcfs commented 5 months ago

@pabloiarriola did you ever get this resolved? We are experiencing the exact same issue under nearly the exact same circumstances.

amh-mw commented 5 months ago

Those limit_time_cpu/limit_time_real values seem like an invitation for denial of service. Default values for those settings are 60/120 seconds, not the massive values above measured in years!

jhollandcfs commented 5 months ago

Follow up: I think I have found resolution. Was using S3 to mount the filestore instead of EFS and something about Odoo (or at least the Bitnami Odoo image) does NOT like using S3 like that. Moving the filestore to a non-S3 filesystem seemed to clear up the problem