Related pages:

Your Rating:
Results:
PatheticBadOKGoodOutstanding!
16 rates

By default, the JavaScript Agent limits the Ajax requests (using XHR or the Fetch API) sent for base or virtual pages to 250 with SPA2 monitoring enabled or 50 when it is not. Although base or virtual pages normally do not send large amounts of Ajax requests, in some cases, a page may send redundant Ajax requests, especially those containing error reports.

For example, a series of redundant Ajax requests containing a dead loop of errors and exceptions with no new information could overload the EUM Server. To prevent an overload of Ajax requests, you can configure the JavaScript Agent to limit the number of Ajax requests sent for base and virtual pages.

The code example below limits the number of Ajax request per base or virtual page to 7.

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