Odoo Help


Reduce Memory Usage

Marvin Haß
on 6/18/14, 2:09 AM 8,091 views


how can i reduce the memoryusage? Every serverinstance needs ~80 - 150 MB in 'IDLE-Mode' on my system. On the Odoodays Olivier Dony said that Odoo ist hosting more than 3k serverinstances on a single server. How is it possible? Has anyone experience with the limit_memory_soft parameter in the config?


Thanks in advance.


Leonardo Donelli

--Leonardo Donelli--
| 5 4 8
Roma, Italy
--Leonardo Donelli--

Physics student and part-time developer.

Leonardo Donelli
On 6/18/14, 6:06 AM

They said 3k+ databases per host, not 3k instances per server. One of the slides said 8 hosts in 3 continents, so each "host" probably has multiple servers.


Some config parameters that will affect memory usage:

  Advanced options:
                        Force a limit on the maximum number of records kept in
                        the virtual osv_memory tables. The default is False,
                        which means no count-based limit.
                        Force a limit on the maximum age of records kept in
                        the virtual osv_memory tables. This is a decimal value
                        expressed in hours, and the default is 1 hour.
                        Maximum number of threads processing concurrently cron
                        jobs (default 2).

  Multiprocessing options:
    --workers=WORKERS   Specify the number of workers, 0 disable prefork mode.
                        Maximum allowed virtual memory per worker, when
                        reached the worker be reset after the current request
                        (default 671088640 aka 640MB).
                        Maximum allowed virtual memory per worker, when
                        reached, any memory allocation will fail (default
                        805306368 aka 768MB).
                        Maximum number of request to be processed per worker
                        (default 8192).

Try and play with those.


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

5 follower(s)


Asked: 6/18/14, 2:09 AM
Seen: 8091 times
Last updated: 2/7/16, 2:41 AM