GitLab 502 Whoops, GitLab is taking too much time to respond. 解决

1、先通过gitlab-ctl restart进行重启,2分钟后看是否可以正常访问,为什么要2分钟,因为gitlab启动会有很多配套的服务启动,包括postgresql等

2、如果上面不行,再看gitlab日志,通过gitlab-ctl tail命令查看,如果出现下面的问题,说明是内存不足导致postgresql无法正常启动

3、调整postgresql内存大小

vi /var/opt/gitlab/postgresql/data/postgresql.conf

修改:shared_buffers 为合适的大小:

shared_buffers = 2048 # min 128kB

4、gitlab-ctl restart 等2分钟,可以正常访问

5、终极大招,不用修改任何配置,给机器加8G内存,重启gitlab就ok

相关推荐
BUTCHER516 分钟前
GitLab SSH 密钥配置
运维·ssh·gitlab
明月心9522 小时前
GitLab使用
gitlab
明月心9521 天前
gitlab pull requets
gitlab
BUTCHER51 天前
GitLab基本设置
gitlab
张小凡vip1 天前
Kubernetes---gitlab的ci/cd发布基于k8s的项目示例参考
ci/cd·kubernetes·gitlab
cuijiecheng20183 天前
GitLab创建项目
gitlab
_运维那些事儿4 天前
GitLabCI/CD语法
linux·服务器·git·ci/cd·gitlab·运维开发·devops
_运维那些事儿4 天前
GitLab&Jenkins
运维·ci/cd·gitlab·jenkins·devops
Jeacean5 天前
gitlab 仓库所有分支开启分支保护脚本
gitlab
nhfc995 天前
Gitlab备份且提交Windows服务器数据
服务器·windows·gitlab