Mobile HTTP Requests Test
Mobile HTTP requests power the communication between mobile apps (iOS and Android) and backend servers to fetch data, authenticate users, and sync information.
In a mobile app, a latent HTTP/S communication can cause the entire interface to freeze or stall, leading to immediate user frustration. Frequent HTTP errors can also permanently stain a user's experience with the app. This degraded user experience can adversely impact app retention and decrease business revenue. If this is to be averted, app developers should continuously measure the app's responsiveness to HTTP requests, detect slowness and errors proactively, and eliminate them before users notice and complain. This is where the Mobile HTTP Requests test helps!
For each HTTP request group that is configured for monitoring, this test reports the count of requests received by the app and the average responsiveness of the app to the requests. Administrators are alerted if the app responds slowly to HTTP requests. The overall user experience with HTTP communication is also measured and reported, and administrators are sounded off if users are dissatisfied or frustrated with the speed with which the app processes HTTP requests. The test also has an eye out for HTTP errors and instantly notifies help desk / app developers if such errors occur.
Detailed diagnostics reveal the exact HTTP request URLs that are slow / have returned error responses. These analytics ease troubleshooting and help app developers optimize the app so that errors are kept at bay and requests are processed rapidly.
Agent deploying the test : A remote agent
Outputs of the test : One set of results for every page group that is configured for monitoring
| Parameter | Description |
|---|---|
|
Test Period |
How often should the test be executed. |
|
Proxy Host |
If the eG agent communicates with the Mobile RUM collector via a proxy, then specify the IP address/fully-qualified host name of the proxy server here. By default, this is set to none, indicating that the eG agent does not communicate with the collector via a proxy. |
|
Proxy Port |
If the eG agent communicates with the Mobile RUM collector via a proxy, then specify the port at which the proxy server listens for requests from the eG agent. By default, this is set to none, indicating that the eG agent does not communicate with the collector via a proxy. |
|
Proxy Username and Proxy Password |
If the eG agent communicates with the Mobile RUM collector via a proxy server, and if proxy server requires authentication, then specify valid credentials for authentication against Proxy Username and Proxy Password. If no proxy server is used or if the proxy server used does not require authentication, then set the ProxyUsername and ProxyPassword to none. |
|
Confirm Password |
Confirm the Proxy Password by retyping it here. Note: If you Reconfigure the test later to change the values of the Proxy Username, Proxy Password, Confirm Password parameters, then such changes will be effected only if the eG remote agent monitoring the Mobile RUM component is restarted. |
|
URL Segments to be used for Page Groups |
Using this parameter, you can specify a comma-separated list of URL segment numbers based on which the HTTP requests are to be grouped. URL segments are the parts of a URL (after the base URL) or path delimited by slashes. So if you had the URL: http://www.eazykart.com/web/shopping/login.jsp, then http://www.eazykart.com will be the base URL or domain, /web will be the first URL segment, /shopping will be the second URL segment, and /login.jsp will be the third URL segment. By default, this parameter is set to 1,2. This default setting, when applied to the sample URL provided above, implies that the eG agent will aggregate request and response time metrics to all instrumented web pages under the URL /web/shopping. Here, /web corresponds to the specification 1 (URL segment 1) and /shopping corresponds to the specification 2 (URL segment 2) in the default value 1,2. This in turn means that, if the app receives HTTP requests for URLs such as http://www.eazykart.com/web/shopping/products.jsp, http://www.eazykart.com/web/shopping/products/travel/bags.jsp, http://www.eazykart.com/web/shopping/payment.jsp, etc., then the eG agent will track the responses to these requests, aggregate the results, and present the aggregated metrics for the descriptor /web/shopping. This way, the test will create different HTTP request groups based on each of the second-level URL segments in the managed app – eg., /web/movies, /web/travel, /web/reservations, /partner/contacts etc. - and will report aggregated metrics for each group so created. If you want, you can override the default setting by providing different URL segment numbers here. For instance, your specification can be just 2. In this case, for the URL http://www.eazykart.com/web/shopping/login.jsp, the test will report metrics for the descriptor /shopping. You can even set this parameter to 1,3. For an app that contains URLs such as http://www.eazykart.com/web/shopping/products.jsp, http://www.eazykart.com/web/shopping/products/travel/bags.jsp, and http://www.eazykart.com/web/shopping/payment.jsp, this specification will result in the following descriptors: /web/products, /web/products.jsp, and /web/payment.jsp. |
|
URL Patterns to be Ignored from Monitoring |
By default, this test does not track requests to the following URL patterns: *.js,*.css,*.jpeg,*.jpg,*.png. If required, you can remove one/more patterns from this default list, so that such patterns are monitored, or can append more patterns to this list in order to exclude them from monitoring. For instance, to additionally ignore URLs that end with .gif and .bmp when monitoring, you need to alter the default specification as follows: *.js,*.css,*.jpeg,*.jpg,*.png,*.gif,*.bmpS |
|
Number of Healthy 3rd Party Calls Per Test Period |
By default, this parameter is set to 5 indicating that the detailed diagnosis of this test will collect and display metrics related to the top-5 HTTP requests, in terms of the Average execution time, for each measurement period in the timeline chosen for detailed diagnosis. To identify the top 5, the eG agent sorts all healthy requests in a measurement period in the ascending order of their Average execution time, and picks the first 5 requests from this sorted list for display in the Detailed Diagnosis page and for storing in the eG database. You can however, increase or decrease this value depending upon how many healthy requests you want to see in your detailed diagnosis, and how well-tuned or well-sized the eG database is. If you do not want the detailed diagnosis to include any healthy requests, set the value of this parameter to 0. To view all healthy requests, set the value of this parameter to all. Before setting the value of this parameter to all, make sure that you have a well-sized eG database in place, as this setting will store details of every request that registers an Average execution time value that is lower than the Slow Transaction Cutoff specification. On a good day, this can result in numerous requests, and can consume considerable space in the eG database. |
|
Number of Slow 3rd Party Calls Per Test Period |
By default, this parameter is set to 5 indicating that the detailed diagnosis of this test will display metrics related to the top-5 slow requests, in terms of the Average execution time, for each measurement period in the timeline chosen for detailed diagnosis. To identify the top 5, the eG agent sorts all slow requests in a measurement period in the descending order of their Average execution time, and picks the first 5 requests from this sorted list for display in the Detailed Diagnosis page and for storing in the eG database. You can however, increase or decrease this value depending upon how many slow rquests you want to see in your detailed diagnosis, and how well-tuned or well-sized the eG database is. If you do not want the detailed diagnosis to include any slow request, set the value of this parameter to 0. To view all slow requests, set the value of this parameter to all. Before setting the value of this parameter to all, make sure that you have a well-sized eG database in place, as this setting will store details of every HTTP request that registers an Average execution time value that is higher than the slow transaction cutoff specification. On a bad day, this can result in numerous requests, and can consume considerable space in the eG database. |
|
Number of Error 3rd Party Calls Per Test Period |
By default, this parameter is set to 5 indicating that the detailed diagnosis of this test will display metrics related to the top-5 error requests, in terms of the Error execution time, for each measurement period in the timeline chosen for detailed diagnosis. To identify the top 5, the eG agent sorts all slow requests in a measurement period in the descending order of their Error execution time, and picks the first 5 requests from this sorted list for display in the Detailed Diagnosis page and for storing in the eG database. You can however, increase or decrease this value depending upon how many error requests you want to see in your detailed diagnosis, and how well-tuned or well-sized the eG database is. If you do not want the detailed diagnosis to include any error request, set the value of this parameter to 0. To view all error requests, set the value of this parameter to all. Before setting the value of this parameter to all, make sure that you have a well-sized eG database in place, as this setting will store details of every HTTP request that responds with an HTTP error code. On a bad day, this can result in numerous requests, and can consume considerable space in the eG database. |
|
Slow Transaction Cutoff (Ms) |
This test reports the count of slow HTTP requests and also pinpoints the exact requests that are slow. To determine whether/not a request is slow, this test uses the Slow Transaction Cutoff parameter. By default, this parameter is set to 4000 millisecs (i.e., 4 seconds). This means that, if the app takes more than 4 seconds to respond to an HTTP request, this test will consider that as a slow request by default. You can increase or decrease this slow transaction cutoff according to what is ‘slow’ and what is ‘normal’ in your environment. Note: The default value of this parameter is the same as the default Maximum threshold setting of the Average execution time measure – i.e., both are set to 4000 millisecs by default. While the former helps eG to distinguish between slow and healthy requests for the purpose of providing detailed diagnosis, the latter tells eG when to generate an alarm on Average execution time. For best results, it is recommended that both these settings are configured with the same value at all times. Therefore, if you change the value of one of these configurations, then make sure you update the value of the other as well. For instance, if the Slow Transaction Cutoff is changed to 6000 millisecs, change the Maximum Threshold of the Average execution time measure to 6000 millsecs as well. |
|
Tolerating Cutoff (MS) |
This test reports the count of tolerating requests and also pinpoints the exact requests with a tolerating experience. For an HTTP request to be considered as a tolerating request, this test uses the Tolerating Cutoff parameter. By default, this parameter is set as 4 times the default value of the Slow Transaction Cutoff parameter. Since the default Slow Transaction Cutoff is 4000 milliseconds, the Tolerating Cutoff is set as 16000 milliseconds (4 * 4000) - i.e., 16 seconds - by default. This means that, if the app takes anywhere between 4 to 16 seconds to respond to an HTTP request, then, this test will consider that request as a tolerating request by default. You can increase or decrease this Tolerating Cutoff according to what is 'tolerating', what is ‘slow’ and what is ‘normal’ in your environment. |
|
DD Frequency |
Refers to the freqthe uency with which detailed diagnosis measures are to be generated for this test. The default is 1:1. This indicates that, by default, detailed measures will be generated every time this test runs, and also every time the test detects a problem. You can modify this frequency, if you so desire. Also, if you intend to disable the detailed diagnosis capability for this test, you can do so by specifying none against DD frequency. |
|
Detailed Diagnosis |
To make diagnosis more efficient and accurate, the eG Enterprise embeds an optional detailed diagnostic capability. With this capability, the eG agents can be configured to run detailed, more elaborate tests as and when specific problems are detected. To enable the detailed diagnosis capability of this test for a particular server, choose the On option. To disable the capability, click on the Off option. The option to selectively enable/disable the detailed diagnosis capability will be available only if the following conditions are fulfilled:
|
| Measurement | Description | Measurement Unit | Interpretation |
|---|---|---|---|
|
Number of executions |
Indicates the number of requests received for pages in this group. |
Number |
Compare the value of this measure across groups to identify the 'most requested' groups. You can also use the detailed diagnosis of this measure to know the responsiveness of each HTTP request in the group. |
|
Apdex score |
Indicates the apdex score of user satisfaction with pages in this group. |
Number |
Apdex (Application Performance Index) is an open standard developed by an alliance of companies. It defines a standard method for reporting and comparing the performance of software applications in computing. Its purpose is to convert measurements into insights about user satisfaction, by specifying a uniform way to analyze and report on the degree to which measured performance meets user expectations. The Apdex method converts many measurements into one number on a uniform scale of 0-to-1 (0 = no users satisfied, 1 = all users satisfied). The resulting Apdex score is a numerical measure of user satisfaction with the performance of enterprise applications. This metric can be used to report on any source of end-user performance measurements for which a performance objective has been defined. The Apdex formula is: Apdext = (Satisfied Count + Tolerating Count / 2) / Total Samples This is nothing but the number of satisfied samples plus half of the tolerating samples plus none of the frustrated samples, divided by all the samples. A score of 1.0 means all responses were satisfactory. A score of 0.0 means none of the responses were satisfactory. Tolerating responses half satisfy a user. For example, if all responses are tolerating, then the Apdex score would be 0.50. Ideally therefore, the value of this measure should be 1.0. A value less than 1.0 indicates that the user experience with the request group has been less than satisfactory. |
|
Average execution time |
Indicates the average time taken by the app to respond to requests for pages in this group. |
Milliseconds |
This is the average interval between the time that a user initiates a request and the completion of its response. If the value of this measure is consistently high for request, there is reason to worry. This is because, it implies that the app is responding slowly to the requests. If this condition is allowed to persist, it can adversely impact user experience with the app as a whole. You may want to check the Apdex score in such circumstances to determine whether/not user experience has already been affected. Regardless, you should investigate the anomaly and quickly determine where the bottleneck lies. Here are the main reasons why HTTP requests take too long in mobile apps: Network Issues
Server-Side Issues
App-Side (Client) Issues
To improve the responsiveness of the app to HTTP requests, here are a few recommendations: Network Optimization
Caching and Data Management
Code and UI Adjustments
|
|
Executions per minute |
Indicates the number of requests for this group that was processed by the target app per minute. |
Number |
This is a good indicator of the workload imposed by the requests on the app. An unusually high value for this measure may require investigation. |
|
Normal executions |
Indicates the percentage of requests for this group that was executed by the app within the normal time frame. |
Percent |
The value of this measure indicates the percentage of HTTP requests that have not experienced any slowness. Ideally, the value of this measure should be 100%. A value less than 50% is indicative of a serious problem, where most of the requests are slow. Under such circumstances, you can use the detailed diagnosis of the Average execution time measure for deeper analysis of the slowness. |
|
Slow executions |
Indicates the percentage of requests for pages in this group that were processed slowly by the app. |
Percent |
Ideally, the value of this measure should be 0. A value over 50% implies that you are in a spot of bother, with the responses being sluggish for over half of the time. Use the detailed diagnosis of this measure to identify the exact requests that were slow. |
|
Error executions |
Indicates the percentage of requests for pages in this group, which encountered HTTP errors. |
Percent |
Ideally, the value of this measure should be 0. A non-zero value is a cause for concern as it indicates that one/more requests received an HTTP error response. Use the detailed diagnosis of this measure to identify the exact requests that encountered HTTP errors and what errors they were. This way, administrators / app developers can easily troubleshoot the errors and ensure complete user satisfaction with the requests. |
|
Slow executions (Tolerating & Frustrated) |
Indicates the number of requests for this group to which the app responded slowly. |
Number |
A request is considered to be slow when the average time taken by the app to respond to that request exceeds the Slow Transaction Cutoff configured for this test. Ideally, an app should quickly respond to an HTTP request. The value 0 is hence desired for this measure. If the value of this measure is high, it indicates that the requests slowed down frequently. To know which requests were slow and why, use the detailed diagnosis of Slow executions measure. |
|
Satisfied users |
Indicates the number of requests for this group with a satisfactory response. |
Number |
An HTTP request is considered to be slow when the average time taken by the app to respond to it exceeds the Slow Transaction Cutoff configured for this test. If this Slow Transaction Cutoff is not exceeded, then the user experience with that request is deemed to be ‘satisfactory’. To know which requests delivered a satisfactory experience to users, use the detailed diagnosis of this measure. Ideally, the value of this measure should be the same as that of the Number of executions measure. If not, then it indicates that one/more requests are slow – i.e., have violated theSlow Transaction Cutoff If the value of this measure is much lesser than the value of the Tolerating users and the Frustrated users, it is a clear indicator that the UX with the request is below-par. In such a case, use the detailed diagnosis of the Tolerating users and Frustrated users measures to know which specific requests were slow. |
|
Tolerating users |
Indicates the number of requests with a response time that exceeded the value set for the Tolerating Cutoff parameter of this test. |
Number |
If the Average execution timeof an HTTP request exceeds the Tolerating Cutoff configuration of this test, then such a request is considered to be a Tolerating execution. Ideally, the value of this measure should be 0. A value higher than that of the Satisfied users measure is a cause for concern, as it implies that the overall user experience with the request is less than satisfactory. To know which requests are contributing to this sub-par experience, use the detailed diagnosis of this measure. |
|
Frustrated users |
Indicates the number of frustrated requests for this group. |
Number |
If the Average execution time is over 4 times the Slow Transaction Cutoff configuration of this test(i.e., > 4 * Slow Transaction Cutoff ), then such an execution is considered to be a Frustrated execution. Ideally, the value of this measure should be 0. A value higher than that of the Satisfied users measure is a cause for concern, as it implies that the overall user experience with the request is less than satisfactory. To know which specific requests in the group are contributing to this sub-par experience, use the detailed diagnosis of this measure. |
|
Total error executions |
Indicates the number of error requests for this group. |
Number |
A non-zero value for this measure is indicative of requests that received HTTP error responses. Use the detailed diagnosis of the Error executions measure to know which requests experienced what type of HTTP errors. |
The detailed diagnosis of the Number of executions measure reveals the time each HTTP request took to receive a response. This way, the request that was the slowest can be easily determined.
Figure 1 : The detailed diagnosis of the Number of executions measure of the Mobile HTTP Requests test
The detailed diagnosis of the Satisfied users measure reveals the requests that delivered a satisfactory user experience.
Figure 2 : The detailed diagnosis of the Satisfied users measure of the Mobile HTTP Requests test
The detailed diagnosis of the Frustrated users measure displays the details of requests that frustrated users with poor responsiveness.
Figure 3 : Detailed diagnosis of the Frustrated users measure of the Mobile HTTP Requests test
The detailed diagnosis of the Error executions measure displays the details of requests that received an HTTP error response. The exact error code and error message are also displayed to aid troubleshooting.
Figure 4 : Detailed diagnosis of the Error executions measure reported by the Mobile HTTP Requests test