首選 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