Virtualmin 6.00 on a low memory system

6 posts / 0 new
Last post
#1 Fri, 08/11/2017 - 11:00
quacky

Virtualmin 6.00 on a low memory system

My Ubuntu server has only 512 MB RAM and it is working fine with Virtualmin 5.04.

Today I have seen the new release of Virtualmin 6.00, but the document says

The full LAMP or LEMP stack, plus a full mail processing stack including SpamAssassin and ClamAV, is quite large, requiring about 1GB minimum system memory in order to function well (and more is better). If you're using a lower memory system, it's not recommended, and maybe not even possible, to run the full mail stack along with LAMP or LEMP.

So, we provide an installation option, --minimal, that leaves off some of the mail processing stack. The installed components can still send and receive mail, but spam and AV scanning will need to be outsourced to a remote system (for example, a Cloudmin Services host). The minimal installation type can probably operate OK with only 512MB of RAM.

So probably I should not upgrade to version 6.00. I remember I installed Virtualmin by issuing the simple command sh ./install.sh

In my existing system, I see SpamAssasin and ClamAV are enabled and running, it is an only 512 MB system, and it have been working fine.

So my question is, is it really needed up to 1 GB of RAM for the 6.00 to run smoothly?

Also, is there any way to update only security package? (Since I'm happy with the old version, as long as it is secured). Or, is it possible to upgrade to 6.00 with minimal option?

Fri, 08/11/2017 - 15:28
Joe
Joe's picture

So, there's no need to do anything; you should already have access to the Virtualmin 6.0 module. The old repositories will continue to receive updates for a couple more years, including new versions of the Virtualmin modules.

The difference is in new features that are enabled by default during installation, which you don't need to worry about if you don't need them.

That said, you say you're on 5.04? That's several months old and there have been four or five Virtualmin virtual-server module releases since then. Are updates not appearing in your dashboard?

As for memory: 512MB is probably too little even with the old install when running SpamAssassin and ClamAV (ClamAV alone takes several hundred MB these days, about 500MB on a 64 bit system, and there's nothing we can do to shrink it). I'm surprised you aren't having issues with the OOM killer with so little memory (swap memory can alleviate that, at the cost of hurting performance).

The only difference in terms of memory usage in the new installer is the addition of fail2ban which can be a bit chunky (100+MB once it's been in service for a while, on a system that gets a lot of abuse). So, the Virtualmin 6 installer isn't demanding double the RAM of the old, it's just that ClamAV has more than doubled in size since we last calculated how much a full installation needs a few years ago.

Anyway, you just need to sort out updates via apt-get of yum. 6.0 module is already available, you just need to update to it. The other features of a Virtualmin 6 installation are optional and can be added later if you want any of them.

--

Check out the forum guidelines!

Fri, 08/11/2017 - 23:36
quacky

Dear Joe, thank you very much for your help, so the steps I need to do now is just to run apt-get update (I'm using Ubuntu)

I don't need to click on the "install all updates now" button (after logging into virtualmin), am I understand your writing correctly?

Thank you again!

Sat, 08/12/2017 - 10:27 (Reply to #3)
Joe
Joe's picture

Hahah, no I assumed you were already installing system updates regularly. I meant you don't need to change to the new repos unless and until you want to, and you don't need to enable the new features unless and until you want to.

There has been an issue where Debian systems upgrade themselves from Debian 8 to Debian 9 because of the contents of the apt sources.list. That's more dramatic than I would recommend anyone do without a plan and a backup, but regular updates are always recommended (there should only ever be a few of those at a time...if you see more than a dozen or so updates, it may mean your system is trying to upgrade to Debian 9, which you probably do not want...I don't know why some people have seen system upgrades appear in their Virtualmin dashboard, as we don't ever try to do a dist-upgrade, but apparently if your apt sources.list points at stable repos instead of jessie repos it'll do so).

Anyway: Don't ignore updates. That's normal system maintenance. When I say, "You don't need to do anything" I mean nothing out of the ordinary. Updates are an ordinary part of maintaining a system and should be done regularly.

--

Check out the forum guidelines!

Sat, 08/12/2017 - 11:27
quacky

Hi Joe. Thank you very much. I have clicked on "Install all updates now" button, there are some missing packages, but the update was still completed successfully. I found no change in RAM usage, which was great.

Sun, 08/13/2017 - 09:50 (Reply to #5)
Joe
Joe's picture

Missing packages shouldn't happen, generally speaking.

What were they?

--

Check out the forum guidelines!

Topic locked