I have an issue with my Cakephp application. I find that once a day or maybe once every two days PHP will lock up and become unresponsive resulting the the process crashing and restarting.
From what i've read this may be caused by a method in an endless loop. As the application is very large is there anyway that I can capture activity of all my users in logs and see what methods arent finishing.
If anyone can suggest plugins, components or methodologies that I could use to do something like this. FYI I would like to avoid adding a log statement to every method in my application.
Additional Info:
Error Message in PHP error logs: PHP Fatal error:
Maximum execution time of 300 seconds exceeded in ...lib\\Cake\\Model\\Datasource\\CakeSession.php on line 609
Have you considered writing custom log methods and simply catching cakephp's exceptions / errors? This would avoid you having to put log statements in every single place.
http://book.cakephp.org/2.0/en/core-libraries/logging.html
Depending on how large your application is you could look into implementing a nosql log system. couchbase with memcached ( http://www.couchbase.com/ ) to store all the logged events. Might be preferred to cakephp default of storing all log information in a large text file.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.