I’ve been using Gitlab for 4+ years now, with 100+ repositories. Due to the relatively high number of repositories, the memory usage of the Gitlab server has been increasing over time, reaching a maximum of 8GB of RAM.
I needed to find a way to reduce the memory usage. FAST!
I searched online and found a official Gitlab documentation that explains how to do it. But these changes come with a lot of comprimises, please read the documentation carefully, they may impact performance and stability, specially if you have a lot of traffic on your Gitlab server.