Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-3557

Slow performance opening assets in projects with large commit history

XMLWordPrintable

    • False
    • False
    • CR1
    • ?
    • Undefined
    • 2021 Week 16-18 (from Apr 19), 2021 Week 19-21 (from May 10), 2021 Week 25-27 (from Jun 21)

      After migrating from RHPAM 7.7.0 to RHPAM 7.10.0 we observed that opening assets takes much longer on the new version, >1 minute compared to several seconds on the older version.

      Thread dumps show that threads are in the following execution path for some time:

      "default task-24" #1569 prio=5 os_prio=0 tid=0x00005628716c6000 nid=0x4eae runnable [0x00007f56f57e3000]
         java.lang.Thread.State: RUNNABLE
      	at java.util.zip.Inflater.reset(Native Method)
      	at java.util.zip.Inflater.reset(Inflater.java:352)
      	- locked <0x00000006b0ebec88> (a java.util.zip.ZStreamRef)
      	at org.eclipse.jgit.internal.storage.file.WindowCursor.prepareInflater(WindowCursor.java:347)
      	at org.eclipse.jgit.internal.storage.file.WindowCursor.inflate(WindowCursor.java:313)
      	at org.eclipse.jgit.internal.storage.file.PackFile.decompress(PackFile.java:367)
      	at org.eclipse.jgit.internal.storage.file.PackFile.load(PackFile.java:871)
      	at org.eclipse.jgit.internal.storage.file.PackFile.get(PackFile.java:285)
      	at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedObject(ObjectDirectory.java:486)
      	at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedFromSelfOrAlternate(ObjectDirectory.java:444)
      	at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObject(ObjectDirectory.java:435)
      	at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:165)
      	at org.eclipse.jgit.treewalk.CanonicalTreeParser.reset(CanonicalTreeParser.java:224)
      	at org.eclipse.jgit.treewalk.TreeWalk.reset(TreeWalk.java:721)
      	at org.eclipse.jgit.revwalk.TreeRevFilter.include(TreeRevFilter.java:151)
      	at org.uberfire.java.nio.fs.jgit.util.commands.ListCommits.pathCommitHistory(ListCommits.java:100)
      	at org.uberfire.java.nio.fs.jgit.util.commands.ListCommits.execute(ListCommits.java:84)
      	at org.uberfire.java.nio.fs.jgit.util.GitImpl.listCommits(GitImpl.java:221)
      	at org.uberfire.java.nio.fs.jgit.JGitBasicAttributeView.buildAttrs(JGitBasicAttributeView.java:78)                                                    
      

      The last line in this thread dump points to a code change that happened in 7.9 due to RHPAM-2865.

      We need to make sure that opening assets in 7.10.0 has the same performance as in before that fix.

              r_anand Rishiraj Anand
              rhn-support-mputz Martin Weiler (Inactive)
              Tomas David Tomas David
              Tomas David Tomas David
              Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: