Monitoring, Management & Location Tracking

 View Only
last person joined: one year ago 

Articles relating to existing and legacy HPE Aruba Networking products and solutions including AirWave, Meridian Apps, ALE, Central / HPE Aruba Networking Central, and UXI / HPE Aruba Networking User Experience Insight

CLI command to find slow loading pages 

Jun 26, 2014 07:14 PM

 

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.

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.