php monitoring

15
PHP Monitoring

Upload: idaf1er

Post on 22-May-2015

2.329 views

Category:

Technology


0 download

DESCRIPTION

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

TRANSCRIPT

Page 1: PHP Monitoring

PHP Monitoring

Page 2: PHP Monitoring

About Me

Davide Mendolia

My Job : Ausy - SNCB

Certification : Zend PHP5/Zend Framework Certified

OSS : Developper of APM

Blog :http://davidemendolia.blogspot.com

Page 3: PHP Monitoring
Page 4: PHP Monitoring

PHP Error

Page 5: PHP Monitoring

PHP Error Level

1 E_ERROR 2 E_WARNING 4 E_PARSE 8 E_NOTICE 16 E_CORE_ERROR 32 E_CORE_WARNING 64 E_COMPILE_ERROR 128 E_COMPILE_WARNING 256 E_USER_ERROR 512 E_USER_WARNING 1024 E_USER_NOTICE 6143 E_ALL

2048 E_STRICT 4096 E_RECOVERABLE_ERROR 8192 E_DEPRECATED 16384 E_USER_DEPRECATED

Page 6: PHP Monitoring

PHP.INI

http://be.php.net/manual/en/errorfunc.configuration.php

error_reporting E_ALL & ~E_NOTICE display_errors 1 error_log NULL

Page 7: PHP Monitoring

Error Log File

 [18-Feb-2009 13:00:46] PHP Parse error: parse error in D:\wamp\www\error.php on line 2

Page 8: PHP Monitoring

Zend Platform

A part of Zend Platform, called "PHP Intelligence"

Page 9: PHP Monitoring

ZP Event List

 

Page 10: PHP Monitoring

ZP Event Trigger

 

Page 11: PHP Monitoring

ZP Event Trigger

Slow Script Execution (Absolute and Relative)Slow Function ExecutionSlow Query ExecutionDatabase ErrorsPHP ErrorsFunction ErrorsExcess Memory Usage (Absolute and Relative) Inconsistent Output SizeLoad AverageAPI for Custom Events

Page 12: PHP Monitoring

ZP Event Action

EmailUrlSNMP

Page 13: PHP Monitoring

APM

Alternative PHP MonitorOpen Source Developper Patrick Allaert and Mehttp://code.google.com/p/peclapm/Extension for PHPWrite in CUsing a SQLite databasePHP ErrorMax execution time ...

Page 14: PHP Monitoring

APM Screenshot

 

Page 15: PHP Monitoring

Conclusion

Choose a solutionCheck the quality of your applicationsTake care about your error also after your

development