【问题标题】:How to increase the default memory usage in odoo?如何增加odoo中的默认内存使用量?
【发布时间】:2016-12-28 11:41:30
【问题描述】:

我正在使用 ubuntu 服务器并配置 odoo 项目。它有 8GB 的​​内存,可用内存约为 6GB,所以我需要增加 odoo 默认内存。那么请告诉我如何增加?

【问题讨论】:

    标签: memory odoo-8 ram ubuntu-server


    【解决方案1】:

    您是否尝试过使用 Odoo 的一些高级和多处理选项?

    odoo.py --help

    Advanced options:
        --osv-memory-count-limit=OSV_MEMORY_COUNT_LIMIT
                            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.
        --osv-memory-age-limit=OSV_MEMORY_AGE_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.
        --max-cron-threads=MAX_CRON_THREADS
                            Maximum number of threads processing concurrently cron
                            jobs (default 2).
    
      Multiprocessing options:
        --workers=WORKERS   Specify the number of workers, 0 disable prefork mode.
        --limit-memory-soft=LIMIT_MEMORY_SOFT
                            Maximum allowed virtual memory per worker, when
                            reached the worker be reset after the current request
                            (default 671088640 aka 640MB).
        --limit-memory-hard=LIMIT_MEMORY_HARD
                            Maximum allowed virtual memory per worker, when
                            reached, any memory allocation will fail (default
                            805306368 aka 768MB).
        --limit-time-cpu=LIMIT_TIME_CPU
                            Maximum allowed CPU time per request (default 60).
        --limit-time-real=LIMIT_TIME_REAL
                            Maximum allowed Real time per request (default 120).
        --limit-request=LIMIT_REQUEST
                            Maximum number of request to be processed per worker
                            (default 8192).
    

    此外,如果您使用 WSGI 或类似的东西来运行 Odoo,这些可能还需要一些调整。

    【讨论】:

    • limit-memory-hard = 640 * 你的工人(例如 4)*1024 * 1024 = 2684354560
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-19
    • 1970-01-01
    • 1970-01-01
    • 2012-10-18
    • 1970-01-01
    • 2012-01-24
    相关资源
    最近更新 更多