How to troubleshoot HTTP request performance with curl statistics
This document (000020164) is provided subject to the disclaimer at the end of this document.
When troubleshooting a performance issue with a web-based endpoint, it's important to have metrics that assist in understanding what areas are related.
This is where using a lightweight tool like curl, and it's ability to write out the statistics of a request can be very useful.
You will just need curl installed and available from the location performing the test.
Download the format file to use with curl:
curl -OLs https://raw.githubusercontent.com/rancherlabs/support-tools/master/files/curl-format.txt
You should now have a
curl-format.txt file locally in the current directory.
Using the file and the
-w flag, perform the desired request to the service, the example below displays the headers and statistics.
curl -I -w "@curl-format.txt" https://rancher.com
Timing statistics will be output with each run of the command, measurements are recorded in seconds.
Note: run the command from a location that provides an accurate reproduction of the issue, to simulate the issue as closely as possible. Using the same request parameters are important - like the path and headers that might be used by client applications.
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000020164
- Creation Date: 06-May-2021
- Modified Date:06-May-2021
- SUSE Rancher
For questions or concerns with the SUSE Knowledgebase please contact: email@example.com