By default, the JavaScript Agent limits the Ajax requests (using XHR or the Fetch API) reported for base or virtual pages. The limit is 250 requests for single-page applications (SPAs) and 50 for non-SPAs.

For use cases where all Ajax requests for a page need to be captured, you can configure the JavaScript Agent to report an unlimited number of Ajax requests per page with the configuration xhr.maxPerPageView.


To prevent an overload of Ajax requests, it is highly recommended to only use this configuration for use cases when you absolutely need to capture all Ajax requests.


The following code example configures the JavaScript Agent to report an unlimited number of Ajax requests per page:


<head>
   <script type='text/javascript' charset='UTF-8'>
      window["adrum-start-time"] = new Date().getTime();
      window['adrum-config'] = {
         xhr: {
            maxPerPageView: "UNLIMITED"
         }
      };
      ...   
   </script>
   <script src='//cdn.appdynamics.com/adrum/adrum-latest.js' type='text/javascript' charset='UTF-8'></script>
   ...
</head>
JS