和mysql一样,有时候有的php程序也有运行效率的问题,运行时间比较长,这时候就需要查看到底是哪些php
程序有问题,就需要开启php慢查询日志
开启方法:同时设置下面的两行
slowlog = /usr/local/webserver/php/var/log/php-fpm.slow.log
request_slowlog_timeout = 5
开启慢查询日志后,在 php-fpm.log中有如下的日志:
......
[05-Jun-2014 19:20:40] ERROR: failed to ptrace(PEEKDATA) pid 27042: Input/output error (5)
[05-Jun-2014 19:45:31] ERROR: failed to ptrace(PEEKDATA) pid 26520: Input/output error (5)
[05-Jun-2014 19:56:47] ERROR: failed to ptrace(PEEKDATA) pid 26022: Input/output error (5)
[05-Jun-2014 20:06:13] ERROR: failed to ptrace(PEEKDATA) pid 18769: Input/output error (5)
[05-Jun-2014 20:22:20] ERROR: failed to ptrace(PEEKDATA) pid 13260: Input/output error (5)
[05-Jun-2014 20:40:53] ERROR: failed to ptrace(PEEKDATA) pid 3450: Input/output error (5)
[05-Jun-2014 20:44:05] ERROR: failed to ptrace(PEEKDATA) pid 32275: Input/output error (5)
....
或见附件
没找到解决方法,但不影响网站的正常运行
阅读(5729) | 评论(0) | 转发(0) |