问题描述
我们正在尝试在开发服务器上实施新的遗物( http://www.newrelic.com )测试openerp的性能.
We are trying to implement new relic ( http://www.newrelic.com ) on a dev server to test openerp's performance .
newrelic的以下安装步骤要求我们修改WSGI应用程序文件.我是openerp的新手,我似乎无法弄清楚.任何帮助将不胜感激.
The below installation steps of newrelic asks us to to modify WSGI application file . I am new to openerp and I can't seem to figure this out. Any help will be highly appreciated.
@newrelic.agent.wsgi_application()
def application(environ, start_response):
...
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
application = newrelic.agent.wsgi_application()(application)
推荐答案
当我们测试新的遗物时,要花很多精力来修补WSGI处理程序(其中有一些).但是,使用新的文物说明在gunicorn下运行服务器并进行监视完全不需要更改代码.
When we tested new relic it was too much effort to patch the WSGI handlers (of which there are a few). However, running the server under gunicorn using the new relic instructions and monitoring worked with no code changes required at all.
这篇关于性能监控Openerp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!