From 71c1104e5fb9d208bece9241eb4a673b19d0afbe Mon Sep 17 00:00:00 2001 From: Richard Mathot Date: Wed, 6 Nov 2019 07:33:21 +0000 Subject: [PATCH] [IMP] config: clarify help about memory limits When you deploy Odoo for the first time, it is not explicit that you must enter a value in bytes for these specific parameters. closes odoo/odoo#39831 Signed-off-by: Richard Mathot (rim) --- odoo/tools/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odoo/tools/config.py b/odoo/tools/config.py index e691cdb4d08..194da756ef8 100644 --- a/odoo/tools/config.py +++ b/odoo/tools/config.py @@ -303,11 +303,11 @@ class configmanager(object): help="Specify the number of workers, 0 disable prefork mode.", type="int") group.add_option("--limit-memory-soft", dest="limit_memory_soft", my_default=2048 * 1024 * 1024, - help="Maximum allowed virtual memory per worker, when reached the worker be " + help="Maximum allowed virtual memory per worker (in bytes), when reached the worker be " "reset after the current request (default 2048MiB).", type="int") group.add_option("--limit-memory-hard", dest="limit_memory_hard", my_default=2560 * 1024 * 1024, - help="Maximum allowed virtual memory per worker, when reached, any memory " + help="Maximum allowed virtual memory per worker (in bytes), when reached, any memory " "allocation will fail (default 2560MiB).", type="int") group.add_option("--limit-time-cpu", dest="limit_time_cpu", my_default=60,