【问题标题】:Profiling Plone/Zope分析克隆/Zope
【发布时间】:2011-11-09 20:27:00
【问题描述】:

在 Plone 4.1/Zope 2.13 系统上分析 Plone/Zope 应用程序的当前最佳实践是什么?

Products.ZopeProfilerCallProfiler 的 Plone.org 版本都在安装时失败:

Traceback (most recent call last):
  File "/home/derek/plone4/buildout-cache/eggs/Zope2-2.13.10-py2.6.egg/OFS/Application.py", line 689, in install_product
    initmethod(context)
  File "/home/derek/plone4/buildout-cache/eggs/Products.ZopeProfiler-2.0.1-py2.6.egg/Products/ZopeProfiler/__init__.py", line 8, in initialize
    control_panel = context._ProductContext__app.Control_Panel
AttributeError: 'NoneType' object has no attribute 'Control_Panel'

z3c.profiler 想要安装很多明显不兼容的依赖项(这并不奇怪,因为它是为 Zope3 设计的)。

collective.profiler 看起来很有希望,并且可以安装,但不允许我分析 View 的 __call__ 方法,因为该方法没有 __dict__ 属性。

【问题讨论】:

  • 显然 CallProfiler 自从我询问以来已经修复,至少要安装它,它似乎最终会分析调用。不幸的是,大多数尝试显示结果都失败了。
  • 我在 pypi 上发布了 Products.CallProfiler 但它也遇到了同样的错误。等待这些软件包的新版本
  • 查看scalingplone.pbworks.com/w/page/3770062/Tuning 的监控部分,了解有关 ZODB 活动的一些说明。

标签: plone zope


【解决方案1】:

看看repoze.profile,它是documentation。它作为 WSGI 中间件组件运行,该组件将分析数据汇总到 WSGI 应用程序的所有请求中。

【讨论】:

  • 这不是特定于 wsgi 的吗?我没有使用 wsgi
【解决方案2】:

2.0.2 版中的 ZopeProfiler 与 Plone 4.1 配合得很好

【讨论】:

    猜你喜欢
    • 2011-07-04
    • 1970-01-01
    • 2022-01-20
    • 2021-06-26
    • 2017-05-05
    • 2010-09-13
    • 2011-12-07
    • 1970-01-01
    • 2011-07-30
    相关资源
    最近更新 更多