Root Cause Analysis using Zend Studio and Zend Server
This tutorial demonstrates how Zend Studio and Zend ServerZend Server is a complete, enterprise-ready Web Application Server for running and managing PHP applications that require a high level of reliability, performance and security. are tightly integrated to facilitate faster development, by explaining how to perform a Root Cause Analysis using Zend Studio's Application Monitoring feature.
Application Monitoring utilizes data collected by your server during application development, and provides live notifications in Zend Studio for each server event, thus enabling you to develop and monitor your application faster and within the same development environment.
Tutorial Content
In this tutorial you will learn:
Provided Items
- Throughout the tutorial, you will be provided with code snippets to insert in your project.
Prerequisites
- Zend Studio 11.x or above - which can be downloaded from the Zend
Studio Downloads page. For information on installation, see the
Zend Studio Installation Guide.
- Zend Server 6.0 or above which can be downloaded from the Zend Server Downloads page.
- Zend Server API Key. For information on creating API Keys, see Deploying Applications to Zend Server .
Related Media
To better understand the procedures described in this tutorial, watch this video:
Your first step will be to create a new project to work with in this tutorial.
|
|
|
To create a new PHP project:
|
The generated project includes a Zend Framework 2 application skeleton with pre-configured dependencies and there is therefore no need to take any additional actions (e.g., running Composer) before actually running the project in a browser. |
The next procedure explain how to deploy the newly created project on a remote Zend Server.
|
|
|
To deploy your application:
|
Our next step will demonstrate how Application Monitoring can be used to identify and resolve three types of events: Custom Event, PHP Error and Slow Request Execution.
Custom Event
For this example, we will be using a Zend Server Monitor PHP API called 'zend_monitor_custom_event'. This API creates a custom event that is generated for your code. The information collected usually consists of three parameters: Class, Text and User Data.
|
|
|
|
For more information on how to resolve a Custom Event, see the Zend Server User Guide. |
PHP Error
This example will demonstrate how useful Application Monitoring can be when a PHP Error is caused by a simple error in your syntax.
|
|
|
|
For more information on how to resolve a PHP Error event, see the Zend Server User Guide. |
Slow Request Execution
Slow Request Execution occurs when script execution time exceeds defined limits.
|
|
|
|
For more information on how to resolve a Slow Request Execution event, see the Zend Server User Guide. |