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

相关推荐
Good_Starry1 天前
Git介绍--github/gitee/gitlab使用
git·gitee·gitlab·github
陌殇殇殇1 天前
使用GitLab CI构建持续集成案例
运维·ci/cd·云原生·容器·kubernetes·gitlab
吕玉生1 天前
基于GitLab 的持续集成环境
ci/cd·gitlab
henan程序媛3 天前
jenkins项目发布基础
运维·gitlab·ansible·jenkins
极小狐4 天前
极狐GitLab 签约比博斯特,助力新能源智能底盘企业研发提效
gitlab·devsecops·devops·极狐gitlab·安全合规
YoungHong19924 天前
Gitlab服务搭建相关
gitlab
sj11637394035 天前
docker-compose安装gitlab
docker·容器·gitlab
Matrix706 天前
GIT安装及集成到IDEA中操作步骤
java·git·spark·gitlab·intellij-idea
ulimpid8 天前
Git | Dockerized GitLab 安装使用(简单实操版)
学习·docker·gitlab
hrlees8 天前
从零开始Ubuntu24.04上Docker构建自动化部署(四)Docker安装gitlab
docker·自动化·gitlab