达到虚拟实时限制(178/120s) [英] virtual real time limit (178/120s) reached

查看:117
本文介绍了达到虚拟实时限制(178/120s)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 ubuntu 16 版本并运行 Odoo erp 系统 12.0 版本.在我的应用程序日志文件中,我看到信息显示已达到虚拟实时限制(178/120 秒)".它到底是什么意思&它会对我的应用程序造成什么损害?还有如何增加虚拟实时限制?

I am using ubuntu 16 version and running Odoo erp system 12.0 version. On my application log file i see information says "virtual real time limit (178/120s) reached". What exactly it means & what damage it can cause to my application? Also how i can increase the virtual real time limit?

推荐答案

这是一个参数,通过杀死僵尸线程并产生新线程来增加 Odoo 服务器的弹性.它不会损害您的应用程序,但如果您不更改它,则会限制您的调试时间.

It's a parameter to add resilience to the Odoo server by killing zombie threads and spawning new ones. It won't harm your application but it limits your time for debugging if you don't change it.

根据 Odoo 自己的文档(参见 https://www.odoo.com/documentation/12.0/reference/cmdline.html)

According to Odoo's own documentation (see https://www.odoo.com/documentation/12.0/reference/cmdline.html)

--limit-time-real 防止工作人员花费超过几秒钟的时间来处理请求.如果超过限制,则工人被杀.

--limit-time-real Prevents the worker from taking longer than seconds to process a request. If the limit is exceeded, the worker is killed.

与--limit-time-cpu 的不同之处在于这是一个wall time"限制包括例如SQL 查询.

Differs from --limit-time-cpu in that this is a "wall time" limit including e.g. SQL queries.

默认为 120.

所以,为了能够安静地调试,我使用 --limit-time-real 99999 运行 Odoo

So, to be able to debug in peace, I run Odoo with --limit-time-real 99999

这篇关于达到虚拟实时限制(178/120s)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆