Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-70934

Requests to `/jira/rest/internal/2/user/mention/search` where the parameters do NOT include a query are very slow

XMLWordPrintable

      Issue Summary

      We had an outage on a Jira instance running JSD 3.16.11 today which appeared to be caused by requests to the `/jira/rest/internal/2/user/mention/search` endpoint.

      Looking at request times for different queries, those that do NOT contain a query string appear to be significantly slower.

      Requests with a query string:

      Requests WITHOUT a query string:

      Note the scale change - the longest with a query string was 13s, the shortest without was 28s, with longest over 60s

      Examples:

      1. With a query string, took 0.14s: /jira/rest/internal/2/user/mention/search?issueKey=KEY-5678&maxResults=10&query=il&_=1587494420052, (referrer is /jira/browse/KEY-5678)
      2. Without a query string, took 62s: /jira/rest/internal/2/user/mention/search?issueKey=KEY-1234&maxResults=10&_=1587407226218 (referrer is /jira/browse/KEY-1234?filter=-1)

      Steps to Reproduce

      I am not sure what this endpoint is - I went into the referrer (for a lot of them this was filter=-1) and clicked around but was not able to hit that endpoint with anything I did.

      Expected Results

      Searches return promptly with no performance impact.

      Actual Results

      This actually caused an outage for us due to a spike in CPU which seems connected to GC activity.

      CPU spike:

      Unhealthy hosts:

      Increased request latency:

      New Relic showing that this endpoint is the slowest:

      CPU activity by thread showing that GC is the main consumer of CPU. NB: we got the threads long after the request returned/timed out - it is likely still processing in the back end at this point:

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

        1. Screen Shot 2020-04-20 at 1.53.54 PM.png
          66 kB
          Denise Unterwurzacher [Atlassian]
        2. Screen Shot 2020-04-20 at 2.46.58 PM.png
          717 kB
          Denise Unterwurzacher [Atlassian]
        3. Screen Shot 2020-04-20 at 2.47.14 PM.png
          491 kB
          Denise Unterwurzacher [Atlassian]
        4. Screen Shot 2020-04-20 at 2.47.32 PM.png
          500 kB
          Denise Unterwurzacher [Atlassian]
        5. Screen Shot 2020-04-20 at 3.57.16 PM.png
          291 kB
          Denise Unterwurzacher [Atlassian]
        6. Screen Shot 2020-04-20 at 3.57.46 PM.png
          285 kB
          Denise Unterwurzacher [Atlassian]
        7. Screen Shot 2020-04-20 at 4.29.43 PM.png
          159 kB
          Denise Unterwurzacher [Atlassian]

              Unassigned Unassigned
              dunterwurzacher Denise Unterwurzacher [Atlassian] (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: