Welcome! Log In Create A New Profile

Advanced

How to force php-fpm to display slow log?

October 24, 2017 11:09AM
slowlog = /var/log/php-fpm/slow.log
request_slowlog_timeout = 1s
This following two lines are added in the php config file. Once it is added and restart php-fpm, the slow.log file is created.

(request: "GET /index.php") executing too slow (1.072177 sec), logging
This error is displayed in error.log file of php-fpm. But there is no additional details.

I am not able to trace which url is causing the trouble. It is codeigniter framework. So I used the framework's benchmarking tool on all the methods and found the execution is fast 0.004 to 0.01 for multiple test

What could be the possible reason for slow.log being empty? Is there a way to get complete url in the error log for slow process?
Subject Author Posted

How to force php-fpm to display slow log?

agriz October 24, 2017 11:09AM

Re: How to force php-fpm to display slow log?

Anoop Alias October 24, 2017 11:20AM

Re: How to force php-fpm to display slow log?

agriz October 24, 2017 11:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 319
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready