VirtualBox using all hosts physical RAM

Discussions related to using VirtualBox on Linux hosts.

VirtualBox using all hosts physical RAM

Postby Virtualizateron » 21. Nov 2017, 18:11

Hi there,

Whenever I leave the guest running, VIrtualbox in the host consumes more and more RAM (as measured by top) until over around 12 hours, the hosts physical RAM (8 gig) runs out and the swap file grows gigabytes large and the whole host system slows to a crawl.

Meanwhile, the ram usage reported by the guest OS remains relatively low (around 1 gig)

The guest OS is only running Nginx / PHP to manage an install of Nextcloud, however it's only used by one user (me). It's usually running KDE, but no apps X apps.

Shutting down and restarting the guest resets the memory usage and everything runs fine again for a while until the ram usage creeps up again.

Is there any info I can provide to help track down the issue?

Tech specs:

VirtualBox version:
5.1.30_Ubuntu r118389

Host:
Kubuntu 17.10 64 bit 8gig ram
RAM: 8gig;

Guest:
Debian 8.9 - 64 bit
Kernel: x86_64 3.16.0-4-amd64
Ram: 4988mb
CPU: AMD FX-8120 Eight-core @ 3.11Ghz
No guest extensions installed
Attachments
Debian-2017-11-21-10-48-56.zip
(27.6 KiB) Downloaded 1 time
Virtualizateron
 
Posts: 5
Joined: 21. Nov 2017, 16:28

Re: VirtualBox using all hosts physical RAM

Postby Perryg » 21. Nov 2017, 18:23

I have not seen a memory leak like this for a long time. But you are not using the official version of VirtualBox. Yours is the distros version. So the choices for you is to ask them or remove theirs and install the one from virtualbox.org.
Perryg
Site Moderator
 
Posts: 34264
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VirtualBox using all hosts physical RAM

Postby Virtualizateron » 21. Nov 2017, 18:49

Ok, thanks for the response. I've actually been having this issue since I started with VB about 2 years ago. I'm fine with installing the version from virtualbox dot org, but the latest package for Ubuntu on the download page is for 16.04 while I'm on 16.10. Should that package still work OK?
Virtualizateron
 
Posts: 5
Joined: 21. Nov 2017, 16:28

Re: VirtualBox using all hosts physical RAM

Postby Perryg » 21. Nov 2017, 18:55

https://www.virtualbox.org/wiki/Linux_Downloads

It has exactly what you want.
Code: Select all   Expand viewCollapse view
Ubuntu 17.04 ("Zesty")  i386 |  AMD64
Ubuntu 16.10 ("Yakkety")  i386 |  AMD64
Ubuntu 16.04 ("Xenial")  i386 |  AMD64
Ubuntu 14.04 ("Trusty") / 14.10 ("Utopic") / 15.04 ("Vivid")  i386 |  AMD64
Perryg
Site Moderator
 
Posts: 34264
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VirtualBox using all hosts physical RAM

Postby Virtualizateron » 21. Nov 2017, 19:33

So, you're saying the 17.04 "Zesty" release will still work fine with Ubuntu 17.10 Artful Aardvaark?
Virtualizateron
 
Posts: 5
Joined: 21. Nov 2017, 16:28

Re: VirtualBox using all hosts physical RAM

Postby Perryg » 21. Nov 2017, 19:37

Hummm,
Your previous post:
Ubuntu on the download page is for 16.04 while I'm on 16.10 must have been a typo, but yes the 17.04 should work with 17.10.
Perryg
Site Moderator
 
Posts: 34264
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VirtualBox using all hosts physical RAM

Postby Virtualizateron » 21. Nov 2017, 21:38

Ok, thanks. Sorry for any confusion caused by that typo!
Virtualizateron
 
Posts: 5
Joined: 21. Nov 2017, 16:28

Re: VirtualBox using all hosts physical RAM

Postby Virtualizateron » 24. Nov 2017, 06:33

So I installed the version from the download page, but now on trying to run the VM and just getting the message:

The VirtualBox kernel modules do not match this version of VirtualBox. The installation of VirtualBox was apparently not successful. Executing

'/sbin/vboxconfig'

may correct this. Make sure that you do not mix the OSE version and the PUEL version of VirtualBox.

where: supR3HardenedMainInitRuntime what: 4 VERR_VM_DRIVER_VERSION_MISMATCH (-1912) - The installed support driver doesn't match the version of the user.


I ran the command with sudo, but I still get the message. I gather that this is because I installed the VM on the OSE version, and now I have the PUEL version installed. If one can't run VM's made in the other, then what was the point of installing the PUEL version? Am I missing something?
Virtualizateron
 
Posts: 5
Joined: 21. Nov 2017, 16:28

Re: VirtualBox using all hosts physical RAM

Postby socratis » 24. Nov 2017, 06:37

The thing is that you got to make sure that the OSE is completely removed before you install the PUEL. You can't mix the two of them or their components.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 12621
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: Google [Bot] and 40 guests