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 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.
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. |