Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Memory Usage

    Gitea
    2
    4
    12818
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • girish
        girish Staff last edited by

        @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

        ? 1 Reply Last reply Reply Quote 2
        • ?
          A Former User @girish last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • girish
            girish Staff last edited by

            @atrilahiji If it keeps running out of memory, keep an eye on the gogs/gitea logs. It will tell you which bot is indexing your repos (you can tell from the user agent string).

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB