Gitlab is down

After running for 3 months, my gitlab community edition server is no longer working correctly and I am being told that there is a ram problem. How can I get gitlab working again without increasing the physical resources of my server ?

What are the resources? It should have 4vcpu, 8gb ram minimum.

Please show the output of the command:


and also check to see what processes are using the most amount of CPU by running top or htop.


it has 4vcpu and 4gb ram.

4 GB RAM is the required minimum memory size and supports up to 500 users (gitlab recommanded it Installation system requirements | GitLab that why i used these features)