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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Gitea
  3. Memory Usage

Memory Usage

Scheduled Pinned Locked Moved Solved Gitea
5 Posts 3 Posters 18.7k Views 3 Watching
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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
    0
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @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
      2
      • girishG girish

        @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

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        @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
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @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
          0
          • SansGuidonS Offline
            SansGuidonS Offline
            SansGuidon
            wrote on last edited by
            #5

            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.

            About me / Now

            1 Reply Last reply
            3

            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
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search