<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>gitlab - 标签 - cfanzp学习笔记</title>
    <link>https://cfanzp008.github.io/tags/gitlab/</link>
    <description>gitlab - 标签 - cfanzp学习笔记</description>
    <generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>cfan.zp@qq.com (cfanzp)</managingEditor>
      <webMaster>cfan.zp@qq.com (cfanzp)</webMaster><lastBuildDate>Mon, 22 Aug 2022 14:06:24 &#43;0800</lastBuildDate><atom:link href="https://cfanzp008.github.io/tags/gitlab/" rel="self" type="application/rss+xml" /><item>
  <title>解决gitlab占用内存太大的问题</title>
  <link>https://cfanzp008.github.io/gitlab-config/</link>
  <pubDate>Mon, 22 Aug 2022 14:06:24 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/gitlab-config/</guid>
  <description><![CDATA[解决gitlab占用内存太大的问题 最近gitlab服务器出现了占用内存太大的问题。虚拟机里的linux系统内存&gt;4G都被几乎用完了。
网上查询了相关资料，解决方法主要是修改一下配置。或者更换git服务器工具，比如更换为gogs或者gitea等。 因为时间关系暂且改一下配置解决一下问题:
配置文件路径为: 1 /etc/gitlab/gitlab.rb 修改相关参数 1 2 3 4 5 6 postgresql[&#39;shared_buffers&#39;] = &#34;64MB&#34; postgresql[&#39;max_worker_processes&#39;] = 2 sidekiq[&#39;max-concurrency&#39;]=5 #禁用prometheus，可以进一步减少内存占用 prometheus_monitoring[&#39;enable&#39;] = false sidekiq[&#39;concurrency&#39;] = 25 重启服务 1 2 gitlab-ctl reconfigure gitlab-ctl restart 精简gitlab服务:https://zhuanlan.zhihu.com/p/389717047 参考资料 https://zhuanlan.zhihu.com/p/348813603 https://my.oschina.net/sunhualong/blog/4275867 ]]></description>
</item>
</channel>
</rss>
