Home » Questions » Computers [ Ask a new question ]

How to find out from Apache what pages cause long loading times?

How to find out from Apache what pages cause long loading times?

How can i find out what PHP scripts take longest to load in Apache?

Asked by: Guest | Views: 316
Total answers/comments: 2
bert [Entry]

Run your server logs through a report tool. A decent one should be able to tell you how long the average user takes to download each page. It should also show you min and max download time for each page and lots of other statistics.
bert [Entry]

"I am using this command to identify what is taking too long to respond:

$ w3m http://localhost/server-status | tee | grep ""GET\|HEAD\|POST"" | awk '{if ($6>15) print}'"
"I am using this command to identify what is taking too long to respond:

$ w3m http://localhost/server-status | tee | grep ""GET\|HEAD\|POST"" | awk '{if ($6>15) print}'"