From 32cde3f0e7e61ab85c173dc4ca0eed64248ae5a6 Mon Sep 17 00:00:00 2001 From: hugues de keyzer Date: Fri, 2 May 2025 16:37:29 +0200 Subject: [PATCH] disable odoo memory limit by default by default, odoo limits the available memory to 2560 MiB, which can cause MemoryError exceptions, especially when dealing with high amounts of records. disable this limit by default. --- newsfragments/+disable_odoo_memory_limit.feature | 2 ++ odoo_openupgrade_wizard/templates/odoo/odoo.conf.j2 | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 newsfragments/+disable_odoo_memory_limit.feature diff --git a/newsfragments/+disable_odoo_memory_limit.feature b/newsfragments/+disable_odoo_memory_limit.feature new file mode 100644 index 0000000..dfd7337 --- /dev/null +++ b/newsfragments/+disable_odoo_memory_limit.feature @@ -0,0 +1,2 @@ +Disable default Odoo memory limit (of 2560 MiB) by default. +This can be adjusted in the `odoo.conf` file for each version. diff --git a/odoo_openupgrade_wizard/templates/odoo/odoo.conf.j2 b/odoo_openupgrade_wizard/templates/odoo/odoo.conf.j2 index 74eb2b7..7ed21f9 100644 --- a/odoo_openupgrade_wizard/templates/odoo/odoo.conf.j2 +++ b/odoo_openupgrade_wizard/templates/odoo/odoo.conf.j2 @@ -7,3 +7,7 @@ # - http or xml port # - etc. # Only non standard or special options should be specified here. + +[options] +# Disable default memory limit of 2560 MiB +limit_memory_hard = 0