Slow Function Execution

Performance Monitoring Event

 

Slow Function Execution events are used to identify bottlenecks within functions providing a more granular approach than finding bottlenecks in pages.

 

This type of event is useful in the production process for pinpointing performance bottlenecks by watching functions that the user specifies.

 

Slow Function Execution events provide a different perspective on problems (view outside problems through the eyes of PHP). Despite the fact that the code may be running okay, this Event indicates what other outside problems (i.e. network, database, web services, file system etc.) you may have, based on the PHP function’s behavior. This Event is also useful for catching pure PHP functions that are performing slowly.

Description: Generates an event when function execution exceeds the setting defined in the rule. The default values are, 500 msec for moderate, 1000 msec for severe alerts. This applies to the functions selected in the additional rules section.

 

Additional Rules:

Generate events for specified PHP functions (built-in or user-defined).

 

There are three ways to add functions to be monitored:

  1. Specify the function name, object methods can also be used (for example, bar::foo).

  2. Use wild cards (*) to specify a range of function names for example mysql_* will select all functions beginning with mysql_.

  3. Specify the full path to a file containing a list of functions, each in a new line.

 

Note:

Database related functions are directed and reported as Slow Query Execution (see the "Slow Query Execution" event type).

 

When the Watched Functions file is applied to the “Slow Function Execution” Event Type, the functions included in the file will be monitored and an Event Report will be generated when the function execution exceeds the values defined to trigger a moderate or severe event.

 

Return to Choosing and Defining Alert Rules