Please help me troubleshoot: Gitlab CE High Memory Usage

– Averaging 2-8 pushes per day, very minimal usage.
– 4GB RAM - htop is telling me that it’s hitting near capacity all the time.
– System is swapping regularly, I changed the swappiness to 20 from its original 60 and cleared swap space.
– I lowered the sidekiq worker threads down to 5.
– We DO NOT use any of the Gitlab CI/CD utilities.
– There is nothing else running on this server.

It’s not “critical” at all but as we grow and get more users and activity, I fear this will be unsustainable.

**It’s a website, with a small inactive DB running… there is no reason it should be using nearly this much RAM and swapping to disk regularly. – Please Help!! We’re ok for now but I fear the future if this continues. **

Gitlab Info:
GitLab CE 10.0.3
GitLab Shell 5.9.0
GitLab Workhorse v3.0.0
GitLab API v4
Git 2.13.5
Ruby 2.3.5p376
Rails 4.2.8
Postgresql 9.6.3

Activity:
15 Users
AD Auth
31 Groups, 136 projects.

System Info: $ cat /etc/release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION=“Ubuntu 16.04.1 LTS”
NAME=“Ubuntu”
VERSION=“16.04.1 LTS (Xenial Xerus)”
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=“Ubuntu 16.04.1 LTS”
VERSION_ID=“16.04”
HOME_URL=“http://www.ubuntu.com/
SUPPORT_URL=“http://help.ubuntu.com/
BUG_REPORT_URL=“http://bugs.launchpad.net/ubuntu/
UBUNTU_CODENAME=xenial

Swappiness: $ cat /proc/sys/vm/swappiness
20

gitlab.rb
external_url ‘https://gitlab.example.com
gitlab_rails[‘smtp_enable’] = true
gitlab_rails[‘smtp_address’] = “smtp.example.com
gitlab_rails[‘smtp_port’] = 25
gitlab_rails[‘smtp_domain’] = “example.com
gitlab_rails[‘smtp_enable_starttls_auto’] = false
gitlab_rails[‘gitlab_email_from’] = ‘noreply@gitlab.example.com’
gitlab_rails[‘gitlab_email_reply_to’] = ‘noreply@gitlab.example.com’
postgresql[‘shared_buffers’] = “256MB”
prometheus_monitoring[‘enable’] = false
sidekiq[‘concurrency’] = 5
nginx[‘enable’] = true
nginx[‘redirect_http_to_https’] = true
nginx[‘ssl_certificate’] = “/etc/gitlab/ssl/mycert.crt”
nginx[‘ssl_certificate_key’] = “/etc/gitlab/ssl/mykey.key”
gitlab_rails[‘backup_upload_connection’] = {
‘provider’ => ‘AWS’,
‘region’ => ‘somewhere’,
‘aws_access_key_id’ => ‘xxxxxxxxx’,
‘aws_secret_access_key’ => ‘xxxxxxxxx’
}
gitlab_rails[‘backup_upload_remote_directory’] = ‘somebucketname’
gitlab_rails[‘backup_archive_permissions’] = 0644
gitlab_rails[‘ldap_enabled’] = true
gitlab_rails[‘ldap_servers’] = {
‘main’ => {
‘label’ => ‘GitLab AD’,
‘host’ => ‘dc.site.com’,
‘port’ => 389,
‘uid’ => ‘sAMAccountName’,
‘encryption’ => ‘plain’,
‘verify_certificates’ => false,
‘bind_dn’ => ‘CN=User1,OU=users,DC=example,DC=com’,
‘password’ => ‘XXXXXXXXXXXX’,
‘active_directory’ => true,
‘base’ => ‘OU=users,DC=example,DC=com’,
‘group_base’ => ‘’,
‘admin_group’ => ‘’
}
}