Today I found that Apache on my server was very slow and a lot of child pid xxxx exit signal File size limit exceeded (25) errors in error_log. It turned out that one of my applications log files are 2GB. WHen apache process read a file over than 2B it will give that error. It could be apache logs or applications log How to fix it? Let start by searching your apache logs find /var/log/apache2 -type f -size +20000k -exec ls -lh {} \; | awk ‘{ print $9 “: ” $5 }’ If you still can not find the large files – search theRead More →

If I’m ever wondering how long my PHP scripts take to execute, I add this code to the start of my pages: Then I add this to the end of my script: Sometimes it’s good to get hard figures on how long your script takes to execute, particularly with complex MySQL queries. If your script is particularly tardy and you want to find out where the blockage occurs, you could also try moving the $Start or $End lines to different parts of the script to measure the execution speed of each section.Read More →