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

相关推荐
我一定会有钱4 天前
打造完美工作流:Git 配置”一次推送,三端同步”(Gitee/GitCode/GitHub)
开发语言·windows·vscode·搜索引擎·gitlab·github·visual studio code
LXY_BUAA5 天前
Git_在飞牛中部署 GitLab_20260817
git·gitlab
Jeanyia7 天前
GitLab 配套 Git 常用命令
git·gitlab
极小狐8 天前
极狐GitLab 补丁版本:19.2.1、19.1.3、19.0.5
网络·安全·gitlab·极狐gitlab·安全更新·补丁版本
rustfs9 天前
GitLab 如何与 RustFS 集成?
分布式·rust·gitlab
郝亚军10 天前
gitlab常用命令
gitlab
xixingzhe214 天前
Java 使用 GitLab4J 实现 WebHook
gitlab
童槿顏丶15 天前
GitLab部署到Linux
linux·运维·gitlab
InfinitePlus16 天前
Gitlab docker版本安装
docker·容器·gitlab
进击切图仔16 天前
GitLab 新用户创建与项目授权操作指南
gitlab