gitlab占用内存太多

首选 free -h 查看内存情况

解决办法

修改/etc/gitlab/gitlab.rb

#2019-12-4 add by lishuo  start
unicorn['worker_processes'] = 4
#2019-12-4 add by lishuo end
 
 
#2019-12-4 add by lishuo  start
postgresql['max_worker_processes'] = 4
#2019-12-4 add by lishuo  end
 
 
#2019-12-4 add by lishuo  start
nginx['worker_processes'] = 4
#2019-12-4 add by lishuo  end
gitlab-ctl reconfigure  #gitlab会读取配置文件参数并修改各个插件的配置文件去(我猜的)
 
gitlab-ctl restart
原文地址:https://www.cnblogs.com/xiangshihua/p/13264101.html