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

    Reducing CPU usage for a small Mastodon instance

    Mastodon
    cpu resources optimization
    2
    4
    135
    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.
    • P
      pauljacobson last edited by

      Hi all. I'm a relatively new instance admin. My instance is running on Linode using a Cloudron app install. I noticed that my CPU usage is consistently pretty high. I only have two users on the instance so this seems to be as a result of a poor configuration on my part.

      My server has 4 cores, 8GB of RAM. Can anyone recommend ways to make my instance more efficient. I'm also a little new to resource management, so I'll appreciate somewhat specific suggestions.

      An example of my CPU usage

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

        @pauljacobson I would check which process is consuming to much CPU. If you ssh into the server and run top , what do you see?

        P 1 Reply Last reply Reply Quote 2
        • P
          pauljacobson @girish last edited by

          @girish Hi there. I did some digging, and it looks like the main culprit was a Mail service running in the Docker container. It was running consistently at 100% CPU usage. I stopped that process and this seems to have dropped my overall CPU usage.

          Thanks for getting back to me about this!

          girish 1 Reply Last reply Reply Quote 1
          • girish
            girish Staff @pauljacobson last edited by

            @pauljacobson ah yes, the fix for haraka is coming. I recently submitted a patch upstream for this which has now been merged - https://github.com/haraka/Haraka/pull/3104 .

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