Monitoring, Management & Location Tracking

CLI command to find slow loading pages

Aruba Employee

 

Question   CLI command to find slow loading pages

 

 

perl -ne 'print if / (\d+\.\d+) wall,/ && $1 > 5' /var/log/httpd_performance

This command will find all pages loading slower than 5 seconds. Change the "5" to whatever threshold of seconds you want to filter by.

Note that the customer experience is also affected by network latency and client-side browser rendering latency, so experienced page-render times may be higher than this.

A more advanced version of this command is:
# perl -ne 'print if / (\d+\.\d+) wall,/ && $1 > 7' /var/log/httpd_performance | grep -v APDetailXML | perl -pe 's/^(\d+\.\d+)/scalar(localtime $1)/e;'

This will get all pages loading slower than 7 seconds except for APDetailXML and print the results with a human readable timestamp instead of epoch time.

Version history
Revision #:
1 of 1
Last update:
‎06-26-2014 04:14 PM
 
Labels (1)
Contributors
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: 
Is this a frequent problem?

Request an official Aruba knowledge base article to be written by our experts.