Linux 上 GitLab 访问缓慢 的原因通常可以归为以下几类,你可以按顺序排查:
GitLab 本身非常吃资源,尤其包含:
top
htop
free -h
df -h
vim /etc/gitlab/gitlab.rb
prometheus_monitoring['enable'] = false
gitlab-ctl reconfigure
gitlab-ctl status
gitlab-ctl tail
重点关注:
sidekiqpumapostgresqlcat /etc/resolv.conf
建议使用:
8.8.8.8
1.1.1.1
查看:
gitlab-ctl tail nginx
如果是 clone / pull 慢:
git clone --depth=1 <repo>
gitlab-ctl version
gitlab-ctl status 全绿如果你愿意,可以告诉我:
我可以帮你精准定位原因。