您如何定义术语“失败功能”?

发布于 2024-10-28 16:28:37 字数 247 浏览 5 评论 0原文

有关 Zend Server 的演示中,作者列出了Zend 监视器。这些功能之一称为:

  • Zend Monitor 将监视您的应用程序是否有失败的功能

,如果减去错误和异常监视,这意味着什么? 如果不通过错误或未捕获的异常,如何检测失败的函数?

In a presentation about Zend Server, the author lists the features of Zend Monitor. One of these features is called:

  • Zend Monitor will watch your application for failing functions

What does this mean, if you subtract error and exception monitoring?
How can you detect a failing function, if not through and error or uncaught exception?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

风透绣罗衣 2024-11-04 16:28:37

希望现在给出“来自制造商”的答案还为时不晚(我在 Zend Server 上工作),但是当监视的函数之一(在中定义)时,会触发“函数错误”事件(以及“数据库错误”事件)监控规则)返回布尔值 FALSE。

这遵循一种常见的模式,尤其是在更“传统”的 PHP API(例如 mysql、curl、openssl 等)中,其中某些函数将简单地返回 FALSE 来指示失败,然后您需要调用“get_errors()”函数来查看出了什么问题。

这与“正常”PHP 错误不同,这些错误是 E_ERROR、E_WARNING 等错误类型,其他一些 PHP 函数在出现故障时会引发这些错误。

Hope it's not too late to give an answer "from the makers" (I work on Zend Server), but the "Function Error" events (as well as "Database Error" events) are triggered when one of the watched functions (defined in the monitoring rule) returns boolean FALSE.

This follows a pattern which is common especially in the more "traditional" PHP APIs (e.g. mysql, curl, openssl etc.) where some function will simply return FALSE to indicate failure, and you then are required to call a "get_errors()" function to see what went wrong.

This is unlike "normal" PHP errors which are E_ERROR, E_WARNING etc. error types, which some other PHP functions will raise when something fails.

花开柳相依 2024-11-04 16:28:37

除了“营销说法”之外......

“失败的函数”意味着:

  • 函数执行过程中引发的 PHP 错误
  • 缓慢的函数

请参阅
http://files.zend.com/help/Zend-Server/monitor.htm

Zend Monitor [...] 监视
各种事件,例如错误、失败
函数、慢脚本、数据库
错误等。当事件发生时,
Zend Monitor 收集并报告所有
相关调试信息。

什么是事件?

事件受创建的规则约束
在规则管理|监视器。规则
定义事件的性质和
捕获事件相关的参数
应用程序中的信息。

您可以在这里看到规则管理的事件(在页面中搜索“规则管理”):
http://www.oracle.com/technetwork/articles/vaswani-zend -083732.html

还有这里:
http://static.zend.com/topics/Zend -服务器参考手册-v403-2.pdf

Besides being "marketing speak" ...

"failing function" means:

  • PHP errors raised during function execution
  • slow functions

See at
http://files.zend.com/help/Zend-Server/monitor.htm

The Zend Monitor [...] watches for
various events such as errors, failing
functions, slow scripts, database
errors, etc. When an event occurs, the
Zend Monitor collects and reports all
the relevant debugging information.

What is an Event?

Events are governed by rules created
in Rule Management | Monitor. Rules
define the nature of an event and the
parameters for capturing event related
information in an application.

And you can see the events of the Rule Management here (search "Rule Management" in the page) :
http://www.oracle.com/technetwork/articles/vaswani-zend-083732.html

And also here :
http://static.zend.com/topics/Zend-Server-Reference-Manual-v403-2.pdf

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文