Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-7193

Performance - loading a lot of objects with avatars causes the macro to make too many requests

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • Mindville - Pre Bundled
    • None

      Issue Summary

      Performance - loading a lot of objects with avatars causes the macro to make too many requests. Based on: https://jira.mindville.com/browse/IMFC-72

      Steps to Reproduce

      1. The way I was able to reproduce this bug was by doing the following :
        1. Setup an LDAP with 3000 Users, connect it to Jira
        2. set for some/all of these users avatars
        3. Setup a Jira user import in Insight
        4. Connect the macro to user import schema
        5. Look at the network tab for the images tab requests

      Expected Results

      The macro should request one avatar per object

      Actual Results

      The macro actually doubles that number for the number of requests which overloads the server when viewing many objects per macro (500), causes application crash

      #
      # Fatal error in CALL_AND_RETRY_LAST
      # Allocation failed - process out of memory
      #
      
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGILL (0x4) at pc=0x00007f89e298fa19, pid=657, tid=1680
      #
      # JRE version: OpenJDK Runtime Environment AdoptOpenJDK (11.0.10+9) (build 11.0.10+9)
      # Java VM: OpenJDK 64-Bit Server VM AdoptOpenJDK (11.0.10+9, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
      # Problematic frame:
      # C [libj2v8_linux_x86_64.so+0xae3a19] v8::base::OS::Abort()+0x9

      Workaround

      Setting the macro to load small number of objects (25 while testing). You can defined more than one macro per page loading 25 each and the correct number of avatars will be called-

          Form Name

            [JSDSERVER-7193] Performance - loading a lot of objects with avatars causes the macro to make too many requests

              Unassigned Unassigned
              fvanzyl Ferdinand van Zyl (Inactive)
              Affected customers:
              1 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: