LoginSignup
24
24

More than 5 years have passed since last update.

GitLabがメモリ不足で遅いときの対処法

Last updated at Posted at 2016-07-09

1GBメモリのマシン上にGitLabサイトを構築すると遅い場合がある。
(GitLabは4GBメモリ(または2GBメモリ+2GBスワップ)を推奨のよう (参考))
なるべくメモリを消費しないようにし、また極力スワップさせないことで
GitLabの応答速度を上げることができる。

/etc/gitlab/gitlab.rb
unicorn["worker_processes"] = 1
postgresql["shared_buffers"] = "128MB"

ファイル編集後に gitlab-ctl reconfigure を実行

/proc/sys/vm/swappiness
5

ファイル編集後に sysctl -p を実行

24
24
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
24
24