Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 514804

Summary: Slow response time when navigating through file diffs of changes
Product: Community Reporter: Matthias Sohn <matthias.sohn>
Component: GerritAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: denis.roy
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Matthias Sohn CLA 2017-04-05 17:29:29 EDT
Today I got the impression that navigating between file diffs of a change
is pretty slow. I frequently saw response times of 5-20 sec for navigating from one file diff to the next, e.g. from
https://git.eclipse.org/r/#/c/94499/1/org.eclipse.egit-feature/feature.xml
to
https://git.eclipse.org/r/#/c/94499/1/org.eclipse.egit-feature/pom.xml
using the green arrow buttons in the top right corner of the diff screen

Maybe some of the Gerrit caches [1] should be enlarged ?
Could you run [2]
$ ssh -p 29418 git.eclipse.org gerrit show-caches -w
in order to check cache configuration and cache hit ratios ?

Or maybe the JGit cache size should be increased ?
What's the size of core.packedGitLimit [3] in gerrit.config ?

[1] https://git.eclipse.org/r/Documentation/config-gerrit.html#cache
[2] https://git.eclipse.org/r/Documentation/cmd-show-caches.html
[3] https://git.eclipse.org/r/Documentation/config-gerrit.html#core.packedGitLimit
Comment 1 Denis Roy CLA 2017-04-26 16:26:30 EDT
Gerrit Code Review        2.11.2                    now    16:25:46   EDT                                                                                                                                                                    
                                                 uptime   33 days  2 hrs                                                                                                                                                                     
                                                                                                                                                                                                                                             
  Name                          |Entries              |  AvgGet |Hit Ratio|                                                                                                                                                                  
                                |   Mem   Disk   Space|         |Mem  Disk|                                                                                                                                                                  
--------------------------------+---------------------+---------+---------+                                                                                                                                                                  
  accounts                      |  1024               |   7.1ms | 99%     |                                                                                                                                                                  
  accounts_byemail              |  1024               |   6.9ms | 99%     |                                                                                                                                                                  
  accounts_byname               |  1024               |   6.5ms | 79%     |                                                                                                                                                                  
  adv_bases                     |                     |         |         |                                                                                                                                                                  
  changes                       |                     |   6.5ms |  0%     |                                                                                                                                                                  
  groups                        |     4               |   6.5ms | 69%     |                                                                                                                                                                  
  groups_byinclude              |                     |   6.5ms | 50%     |                                                                                                                                                                  
  groups_byname                 |                     |         |         |
  groups_byuuid                 |   658               |   5.9ms | 58%     |
  groups_external               |     1               |   6.4ms | 90%     |
  groups_members                |     6               |   6.8ms | 99%     |
  ldap_group_existence          |     5               |   1.8ms | 58%     |
  ldap_groups                   |    41               |   3.5ms | 71%     |
  ldap_groups_byinclude         |                     |         |         |
  ldap_usernames                |   146               |   6.3ms | 85%     |
  permission_sort               |   954               |         | 99%     |
  plugin_resources              |                     |         |         |
  project_list                  |     1               |    1.1s | 99%     |
  projects                      |   900               |   1.2ms | 98%     |
  sshkeys                       |   151               |   7.2ms | 99%     |
D change_kind                   |  9239   9239   4.13m|  71.3ms | 87%  67%|
D conflicts                     |   160    160 146.69k|         | 84% 100%|
D diff                          |   578 116316 343.91m|   6.1ms | 11%  95%|
D diff_intraline                |  1326   1326 719.31k|  17.3ms | 43% 100%|
D git_tags                      |                0.00k|         |  0%     |
D mergeability                  |  7960   7960   5.37m| 164.8ms | 56%  89%|
D web_sessions                  |  1024 199839  86.36m|         | 97%   0%|

SSH:    123  users, oldest session started   28 days  7 hrs ago
Tasks:    3  total =    1 running +      0 ready +    2 sleeping
Mem: 13.01g total = 9.34g used + 1.67g free + 2.00g buffers
     16.00g max
         747 open files

Threads: 16 CPUs available, 228 threads
Comment 2 Eclipse Genie CLA 2019-04-17 11:32:39 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 Denis Roy CLA 2019-04-17 12:52:31 EDT
I think navigation is reasonably fast. Please reopen if not.