30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Zend Server <strong>Reference</strong> Manual<br />

Slow Request Execution<br />

Description: When a specific request runs longer then a specified duration it generates an event. The<br />

“Slow Request Execution” Rules contains the durations that trigger events either severe or normal and<br />

either relative to a specific value (absolute) or to a percentage (relative measurement per URL).<br />

Information Collected:<br />

The most important details are:<br />

426<br />

URL - As displayed in the Issue’s General Details<br />

Request data - Listed in the Request.<br />

In most cases, these details alone should be enough to indicate what happened to trigger an event.<br />

Applicable Diagnostic Actions:<br />

Click on a link to see how to perform each action tools are listed in order of relevance to helping solve the<br />

event:<br />

Run the Profiler<br />

Open code in editor<br />

Run the Debugger<br />

View information in the Logs<br />

Run general diagnostics on the machine's performance in terms of memory and CPU usage.<br />

Use URL Tracing to collect further information about this function in action.<br />

Possible Causes and Solutions:<br />

Slow requests in general indicate that there is a performance problem and they generally appear when<br />

there is a heavy load, which in turn causes Web applications to perform poorly.<br />

Check the following:<br />

Bottlenecks caused by un-optimized queries or multiple queries, such as un-joined queries, slow queries<br />

and multiple short queries. Use the Profiler to see how many queries are running at the same time or set<br />

thresholds to find queries that take a long time to run.<br />

Check to see if a different CPU intensive process was running in the background taking up the CPU and<br />

making everything run slowly.<br />

Look at the amount of calls to the function - are there too many? add breakpoints and run again to<br />

manually trace per query what happened. Possible Solution: cache the information using a Data Cache<br />

API as a PHP array or use the Page Cache to cache the presentation layer.<br />

Profiler results - analyze the profiler results and isolate functions/areas that consume the majority of the<br />

time and analyze each function/area code separately to isolate the possible cause of the problem.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!