RAM usage in Yunohost

I have a question about RAM usage.

So, there are many good apps with yunohost, if one installs many of the apps, the ram would add up quickly. For most varieties of affordable VPS, available RAM is only 2,4,6,8gb.

Is there a way to manage RAM usage at a given time? Can I disable apps as the ‘Services’ when I don’t need them to be running, and then start them up when in use. Would doing so release RAM? I’m looking for a way to just occupy RAM for particular apps at a given time, and not all apps all the time.

How do other people work with this? Or, is it ultimately just about having lots of RAM to have lots of apps?

2 Likes

Yes, that’s a way to free up some RAM, though you cannot disable them from thz webadmin, only stop the service. They will be started again if you ever restart the server. :slight_smile:

1 Like

Aren’t you describing how the swap is working? If you have a big enough swap, I suspect you should be able to achieve what you want to do?
If an app is unused, its data will be swapped out by Linux until it is needed again. Or maybe I misunderstood?

There are a few apps in my experience that require a large amount of RAM, such as GitLab or Mattermost. But most apps that are not complex entreprise apps made to deal with thousands of users will take a few hundreds MB of RAM, like Nextcloud, Wordpress … You can run many of them on a 2 GB VPS without any issue because they only require memory when active and will free their RAM as soon as they’re not active anymore. The PHP FPM and other runtimes manages that for you.