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.
In this tutorial you will learn:
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 local project:
|
The next procedures explain how to deploy the newly created project on a remote Zend Server.
To deploy the project, you will first need to add Application Deployment Support.
|
|
|
To add Application Deployment Support: In the PHP Explorer, right-click your project, and select Configure | Add Application Deployment Support. The deployment.xmlAfter enabling deployment on your application, Zend-Studio creates a deployment.xml file that is displayed in the PHP Explorer view. This file is used to customize and define your deployment and to package the application. is added to your project. |
You will now deploy the application on a remote Zend Server.
|
|
|
To deploy your application:
|
You will now enable Zend Studio's Application Monitoring feature.
Notes:
Application Monitoring is enabled by default for any application deployed to Zend Server 5.6 or above.
|
|
|
To enable Application Monitoring:
|
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.
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. |
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 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. |
|
|
|
Related Links:
Building Applications on the Zend Developer Cloud |
|
|
©1999-2013 Zend Technologies LTD. All rights reserved.