当前位置: 首页> 健康> 科研 > GitLab内存占用过高问题, 修改配置以减少内存占用

GitLab内存占用过高问题, 修改配置以减少内存占用

时间:2025/7/9 4:53:57来源:https://blog.csdn.net/scdnplayer/article/details/140879262 浏览次数:0次

参考: GitLab官方-安装-配置-内存受限环境

sudo docker exec -it gitlab /bin/bash
vi /etc/gitlab/gitlab.rb
## 配置文件开始 ##
# 注释中的是原值
puma['worker_processes'] = 0
puma['min_threads'] = 3 # 4
puma['max_threads'] = 3 # 4
sidekiq['max_concurrency'] = 8 # 50gitaly['configuration'] = {concurrency: [{'rpc' => "/gitaly.SmartHTTPService/PostReceivePack",'max_per_repo' => 10, # 20}, {'rpc' => "/gitaly.SSHService/SSHUploadPack",#'max_per_repo' => 3, # 5},],cgroups: {repositories: {#count: 10, # 1000},mountpoint: '/sys/fs/cgroup',hierarchy_root: 'gitaly',},
}## 配置文件结束 ##
# 在容器中重新应用配置
gitlab-ctl reconfigure
gitlab-ctl restart
gitlab-ctl status # 查看各个组件状态
关键字:GitLab内存占用过高问题, 修改配置以减少内存占用

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: