Help page gets slower and slower over time on GitLab 11.1.0
Summary
Found on gitlab 11.1.0-ce (35c387cb).
Help page (/help
) takes more and more time to complete over time.
Log shows the view render time is increasing.
Steps to reproduce
Regularly call /help
in an infinite loop, e.g. every second.
What is the current bug behavior?
Help view take more and more time to render.
Note: this does not seem to happen on other pages, e.g. projects, groups, issues, etc.
What is the expected correct behavior?
/help
takes a constant time to render.
Relevant logs and/or screenshots
Slow help example:
Started GET "/gitlab/help" for REDACTED at 2018-07-23 15:01:31 +0000
Processing by HelpController#index as HTML
Completed 200 OK in 2281ms (Views: 2275.7ms | ActiveRecord: 1.4ms)
Shortly after calling gitlab-ctl restart
:
Started GET "/gitlab/help" for REDACTED at 2018-07-23 15:12:18 +0000
Processing by HelpController#index as HTML
Completed 200 OK in 194ms (Views: 187.7ms | ActiveRecord: 1.4ms)
Note1: REDACTED IPs are the same
Note2: /gitlab
is a path prefix in external_url
option.
Output of checks
Environment: docker image gitlab/gitlab-ce:11.1.0-ce.0
Results of GitLab environment info
gitlab-rake gitlab:env:info
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.4.4p296
Gem Version: 2.7.6
Bundler Version:1.16.2
Rake Version: 12.3.1
Redis Version: 3.2.11
Git Version: 2.17.1
Sidekiq Version:5.1.3
Go Version: unknown
GitLab information
Version: 11.1.0
Revision: 35c387c
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://REDACTED/gitlab
HTTP Clone URL: https://REDACTED/gitlab/some-group/some-project.git
SSH Clone URL: git@REDACTED:some-group/some-project.git
Using LDAP: no
Using Omniauth: yes
Omniauth Providers: oauth2_generic
GitLab Shell
Version: 7.1.4
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks
Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
gitlab-rake gitlab:check SANITIZE=true
Checking GitLab Shell ...
GitLab Shell version >= 7.1.4 ? ... OK (7.1.4)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:root, or git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
4/1 ... ok
5/2 ... ok
6/3 ... ok
4/4 ... ok
9/5 ... ok
24/6 ... ok
13/7 ... ok
21/8 ... ok
27/9 ... ok
23/10 ... ok
22/11 ... ok
26/12 ... ok
29/13 ... ok
21/14 ... ok
22/15 ... ok
30/16 ... ok
31/19 ... ok
33/25 ... ok
38/26 ... ok
39/27 ... ok
4/28 ... ok
40/29 ... ok
4/30 ... ok
3/31 ... ok
41/32 ... ok
10/35 ... ok
42/37 ... ok
10/39 ... ok
30/43 ... ok
5/45 ... ok
5/47 ... ok
4/48 ... ok
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Reply by email is disabled in config/gitlab.yml
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured correctly? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config up to date? ... yes
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory exists? ... yes
Uploads directory has correct permissions? ... yes
Uploads directory tmp has correct permissions? ... skipped (no tmp uploads folder yet)
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
Projects have namespace: ...
4/1 ... yes
5/2 ... yes
6/3 ... yes
4/4 ... yes
9/5 ... yes
24/6 ... yes
13/7 ... yes
21/8 ... yes
27/9 ... yes
23/10 ... yes
22/11 ... yes
26/12 ... yes
29/13 ... yes
21/14 ... yes
22/15 ... yes
30/16 ... yes
31/19 ... yes
33/25 ... yes
38/26 ... yes
39/27 ... yes
4/28 ... yes
40/29 ... yes
4/30 ... yes
3/31 ... yes
41/32 ... yes
10/35 ... yes
42/37 ... yes
10/39 ... yes
30/43 ... yes
5/45 ... yes
5/47 ... yes
4/48 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.3.5 ? ... yes (2.4.4)
Git version >= 2.9.5 ? ... yes (2.17.1)
Git user has default SSH configuration? ... yes
Active users: ... 29
Checking GitLab ... Finished
/label ~bug
Edited by Flora Thiebaut