PHP Monitoring

2 659 vues

Publié le

Presentation given at the event in Liege of 18/02/2009 to PHPBelgium

Publié dans : Technologie
  • Soyez le premier à commenter

PHP Monitoring

  1. 1. PHP Monitoring
  2. 2. About Me <ul><li>Davide Mendolia </li></ul><ul><li>My Job : Ausy - SNCB </li></ul><ul><li>Certification : Zend PHP5/Zend Framework Certified </li></ul><ul><li>OSS : Developper of APM </li></ul><ul><li>Blog : </li></ul><ul><li>http://davidemendolia.blogspot.com </li></ul>
  3. 4. PHP Error
  4. 5. PHP Error Level <ul><li>1 E_ERROR   </li></ul><ul><li>2 E_WARNING   </li></ul><ul><li>4 E_PARSE   </li></ul><ul><li>8 E_NOTICE   </li></ul><ul><li>16 E_CORE_ERROR   </li></ul><ul><li>32 E_CORE_WARNING   </li></ul><ul><li>64 E_COMPILE_ERROR </li></ul><ul><li>128 E_COMPILE_WARNING 256 E_USER_ERROR   </li></ul><ul><li>512 E_USER_WARNING 1024 E_USER_NOTICE </li></ul><ul><li>6143 E_ALL </li></ul><ul><li>2048 E_STRICT   </li></ul><ul><li>4096 E_RECOVERABLE_ERROR 8192 E_DEPRECATED   </li></ul><ul><li>16384 E_USER_DEPRECATED </li></ul>
  5. 6. PHP.INI <ul><li>http://be.php.net/manual/en/errorfunc.configuration.php </li></ul><ul><li>error_reporting E_ALL & ~E_NOTICE </li></ul><ul><li>display_errors 1 </li></ul><ul><li>error_log NULL </li></ul>
  6. 7. Error Log File <ul><li>  </li></ul>[18-Feb-2009 13:00:46] PHP Parse error: parse error in D:wampwwwerror.php on line 2
  7. 8. Zend Platform <ul><li>A part of Zend Platform, called &quot;PHP Intelligence&quot; </li></ul>
  8. 9. ZP Event List <ul><li>  </li></ul>
  9. 10. ZP Event Trigger <ul><li>  </li></ul>
  10. 11. ZP Event Trigger <ul><li>Slow Script Execution (Absolute and Relative) </li></ul><ul><li>Slow Function Execution </li></ul><ul><li>Slow Query Execution </li></ul><ul><li>Database Errors </li></ul><ul><li>PHP Errors </li></ul><ul><li>Function Errors </li></ul><ul><li>Excess Memory Usage (Absolute and Relative) </li></ul><ul><li>Inconsistent Output Size </li></ul><ul><li>Load Average </li></ul><ul><li>API for Custom Events </li></ul>
  11. 12. ZP Event Action <ul><li>Email </li></ul><ul><li>Url </li></ul><ul><li>SNMP </li></ul>
  12. 13. APM <ul><li>Alternative PHP Monitor </li></ul><ul><li>Open Source </li></ul><ul><li>Developper Patrick Allaert and Me </li></ul><ul><li>http://code.google.com/p/peclapm/ </li></ul><ul><li>Extension for PHP </li></ul><ul><li>Write in C </li></ul><ul><li>Using a SQLite database </li></ul><ul><li>PHP Error </li></ul><ul><li>Max execution time </li></ul><ul><li>... </li></ul>
  13. 14. APM Screenshot <ul><li>  </li></ul>
  14. 15. Conclusion <ul><li>Choose a solution </li></ul><ul><li>Check the quality of your applications </li></ul><ul><li>Take care about your error also after your development </li></ul>

×