Changes takes significantly longer to open. ls-groups now take 10 times longer compared to 3.4. Offline group re-index went from 1 min on 3.4 to 2.5 hours on 3.5. Changing the cache config for persisted groups_byuuid_persisted, groups_external_persisted to 1 gb each fixed the problem of long ls-groups. Is there any other cache that we need to take into account that might improve performance?
Also, under /opt/gerrit/review/cache we found 2 big files:
git_modified_files of 300gb and gerrit_file_diff of around 300gb as well. Are they affecting the performance?
gerrit cache config:
[cache "conflicts"]
memoryLimit = 1024m
diskLimit = 3g
[cache "groups"]
memoryLimit = 57344
[cache "groups_byinclude"]
memoryLimit = 57344
[cache "groups_byname"]
memoryLimit = 57344
[cache "groups_byuuid"]
memoryLimit = 57344
[cache "groups_members"]
memoryLimit = 57344
[cache "groups_external"]
diskLimit = 1g
[cache "groups_external_persisted"]
diskLimit = 1g
[cache "ldap_groups"]
memoryLimit = 35000
maxAge = 4h
[cache "ldap_groups_byinclude"]
memoryLimit = 140000
maxAge = 12h
[cache "ldap_usernames"]
memoryLimit = 75000
maxAge = 4h
[cache "mergeability"]
memoryLimit = 1024m
diskLimit = 3g
[cache "permission_sort"]
memoryLimit = 1500000
[cache "plugin_resources"]
memoryLimit = 132m
[cache "projects"]
memoryLimit = 65536
loadOnStartup = true
checkFrequency = off
[cache "sshkeys"]
memoryLimit = 75000
[cache "diff"]
memoryLimit = 1024m
diskLimit = 3g
timeout = 3m