Memory Usage
-
Hi Gitea users. How much memory do you guys usually allocate to your instances? At 512MB and sometimes even at 1GB of RAM I will randomly get OOM alerts for the app when nobody is using it. Unsure if it just has high usage with certain scheduled tasks or if its a memory leak but just wanted to see what other people's experience with this was like.
-
@atrilahiji I still use Gogs and had the same issue some time ago. From my logs, I found that it was mostly due to search engines going through each and every blob in every repo. For this, app configure -> Security -> robots.txt (click disable indexing). After that, I found that despite disabling bots, some bots like https://ahrefs.com/robot indexed it anyway. For this, I blacklisted their IPs from my firewall
Atleast for ahref, the list of IP is here - https://help.ahrefs.com/en/articles/78658-what-is-the-list-of-your-ip-ranges -
@atrilahiji I still use Gogs and had the same issue some time ago. From my logs, I found that it was mostly due to search engines going through each and every blob in every repo. For this, app configure -> Security -> robots.txt (click disable indexing). After that, I found that despite disabling bots, some bots like https://ahrefs.com/robot indexed it anyway. For this, I blacklisted their IPs from my firewall
Atleast for ahref, the list of IP is here - https://help.ahrefs.com/en/articles/78658-what-is-the-list-of-your-ip-ranges@girish That seemed to do the trick! Thanks! I figured either I messed something up or Gitea just had a memory leak of some sort.
-
For anyone facing this issue,
best workaround/mitigation for me were to run Anubis on a separate VPS following a setup similar to https://forum.cloudron.io/topic/13957/deploying-anubis-ai-crawler-filtering-on-a-cloudron-server/8 so all requests to my Gitea instance go through Anubis but for some API/Healthchecks calls (from Uptime Kuma etc). I could even decrease the allocated memory.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login