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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM