What is APM? Many people are hearing about the concept of APM for the first time. This article mainly describes how to use APM solutions to optimize PHP application performance. First, we will introduce the Application Performance Management (APM), a systematic solution that monitors enterprise systems in real time to achieve Application Performance Management and fault Management. Application Performance Management is a relatively new network management direction. it mainly refers to the monitoring and optimization of key business applications of enterprises, improving the reliability and quality of enterprise applications, and ensuring that users get good services, total Cost of Ownership (TCO) is reduced ). An enterprise's key business applications have powerful performance, can improve its competitiveness, and achieve business success. Therefore, strengthening application performance management (APM) can bring huge commercial benefits. Supported languages and environmentsCompatibility and installation requirements This article uses OneAPM, a leading enterprise in application performance management in China, as an example. The following table lists the supported application servers and application frameworks: 1. operating systemCentOS 5.5 or above Ubuntu 11 or later RedHat Enterprise Linux (RHEL) 5 or above 2. PHP versionPHP 5.2.13 and above PHP 5.3 and above PHP 5.4 and above PHP 5.5 and above PHP 5.6 and above 3. DatabaseMysql [mysql, pdo, mysqli] 4. WebServerMod_php mode of Apache (thread security and non-thread security) FastCGI mode (for example, php-fpm) 5. specify unsupported frameworksYaf 6. installable frameworksWordpress Drupal Magento Zend CakePHP Codelgniter Symfony Laravel ThinkPHP Discuz Yii PHP-Agent can be installed on all PHP-based frameworks. 7. Compatible Extensions
Bz2 |
Calendar |
Core |
Ctype |
Curl |
Date |
Dom |
Ereg |
Exif |
Fileinfo |
Filter |
Ftp |
Gd |
Gettext |
Gmp |
Hash |
Iconv |
Imap |
Json |
Ldap |
Libxml |
Mysql |
Mysqli |
Odbc |
Openssl |
Pcntl |
Pcre |
PDO |
Pdo_mysql |
PDO_ODBC |
Pdo_sqlite |
Phar |
Readline |
Reflection |
Session |
Shmop |
SimpleXML |
Pdo_mysql |
Sockets |
SPL |
Sqlite3 |
Standard |
Tokenizer |
Wddx |
Xml |
Xmlreader |
Xmlrpc |
Xmlwriter |
Xsl |
Zip |
Zlib |
Function 1. automatic modeling of application architectureAfter the probe is downloaded and installed, the platform automatically identifies and loads applications on the server.
Overview of Global Performance The application performance overview on the application homepage allows you to quickly perceive the application health and overall performance status and problems. With an overview as the entry point, you can easily trace performance metrics such as geographic information, key transactions, and error statistics to complete application performance management. The application performance overview page contains the following information: response time, performance index, throughput (unit: requests per minute in rpm), key transactions, error rate, recent events, and server information. Automatically analyze application topologyWeb transactions
Slow transaction tracking
2. code-level performance diagnosis
3. Database
Details
Slow SQL diagnosis
4. External Services
5. backend monitoring
6. error message
7. reports Web transactions
Database
8. set Server environment
Custom transactions
9. key transactions
9. alarm policy
Alert policies can be set for applications and key transactions respectively. The setting method is as follows: A. trigger Performance Index Set the number of minutes to the alert value Set how many minutes to send an alarm Error rate Set the average error rate to the warning value in minutes. Set the percentage of average error rate in how many minutes to send an alarm B. notification method Email, SMS, email + SMS C. Dispatch Application Set which applications adopt this policy User Set specific users to respond to this policy Alarm integration Alert description ----- modification required here Alarm records Alarm records are classified into notification, downtime, serious problems, and alarm problems. Install 1. get authorization number The server automatically generates the License Key authorization number.
2. Download Download OneAPM PHP Agent from the page Or use wget to get the installation package online. 3. install Unzip the Agent installation package Tar-xzf OneAPM_php_Agent_latest.tar.gz Go to "installation package path 」 Cd oneapm-php5-linux-install-script Run the installation script Sudo./oneapm-install Enter the License Key when prompted 」 Wait for the installation script to be executed. If the following information is displayed, the installation is successful. OneAPM is now installed on your system. Congratulations! 4. restart Restart Apache or php-fpm. Then, wait for a moment and wait for OneAPM to receive the data sent by the Agent. More documentation PHP Agent Release Note PHP Agent installation method PHP compatibility environment and function list PHP Agent parameter configuration PricingTeam
Community Http://oneapm.club/ Other products
Detailed error reportsOneAPM is also applicable to private data centers, public clouds, and Hybrid-Cloud. View performance data such as page loading time of real users by browser and geographic information to quickly differentiate the browser type and regional users who need to optimize the performance. Top 5 key transactions, including average response time and throughput, to help you quickly locate performance bottlenecks. deep Traces records of transactions, it helps you trace application performance management from abstraction to visualization. The smart alarm mechanism fixes performance problems before performance bottlenecks occur to prevent loss of users due to performance problems. Deep tracing detailsOneAPM provides a uniform interface that enables you to easily manage application performance from Real User Experience to application servers to end-to-end application code. The OneAPM support team assists a team in application performance management, including in-depth transaction performance analysis, browser Traces record viewing, key transaction performance analysis, and transaction Traces record viewing. Why choose OneAPM?OneAPM is the first application performance management cloud solution supporting PHP in China. it provides users with a unified portal, friendly interfaces, and convenient processes through Saas to manage and monitor application performance, the end-to-end application performance management from the front end to the network and to application code allows you to change to an O & M expert anytime, anywhere. OneAPM is intended for developers and small and medium-sized enterprises. it can achieve enterprise-level application performance management without enterprise-level costs. Infrastructure Monitoring, multi-language support, Real User Experience Monitoring, deep Transaction Tracing and analysis, you can use OneAPM to complete it all! |