[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) <rim@openerp.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user