memory leak

Discussions related to using VirtualBox on Linux hosts.

memory leak

Postby hellAT » 17. Jan 2020, 13:41

Hello,

since a few days Virtualbox is causing a memory leak on my system. I have got Ubuntu 18.04.3 and now, after updating the server, VB 6.1.2r135662 - but no change.

There are running two Win10 VMs on the host.

I don't know what happend, but now the memory is consumend after starting the VMs within 20-30 mins, what ends in unuseable VMs.


Any idea, where i can have look to find the issue?

regards
Karsten
hellAT
 
Posts: 14
Joined: 4. Dec 2013, 22:09

Re: memory leak

Postby scottgus1 » 17. Jan 2020, 15:27

Please zip and post a guest vbox.log for each of these guests, using the forum's Upload Attachment tab.
scottgus1
Site Moderator
 
Posts: 8840
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: memory leak

Postby hellAT » 17. Jan 2020, 15:59

okay, thnaks.

i've done so. See attachment
Attachments
vbox.log.zip
(58.15 KiB) Downloaded 8 times
hellAT
 
Posts: 14
Joined: 4. Dec 2013, 22:09

Re: memory leak

Postby scottgus1 » 17. Jan 2020, 16:08

The idea I had doesn't seem to hold water, sorry. Your guests are 8 & 4.9 GB RAM, and the host is 32GB RAM, so there's plenty of room. (I had thought that the guests might want more than the host had, and the lazy memory allocation Virtualbox uses would allow the guests to start but then fill up the host.)

One other suggestion, if you have a spare hard drive lying about, try a fresh host OS on it, install Virtualbox, try the same two guests, and see what happens. Memory leaks don't get reported a lot, it seems. So maybe there's a glitch in your host OS?

Otherwise, I'm going to have to let the Linux gurus have at this one.
scottgus1
Site Moderator
 
Posts: 8840
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: memory leak

Postby hellAT » 17. Jan 2020, 22:26

Thanks for looking at this issue. Unfortunatly i have no spare harddisk at the moment with the right size.

So if there is somewhere a linux / vbox guru who might have a look on this...?
hellAT
 
Posts: 14
Joined: 4. Dec 2013, 22:09

Re: memory leak

Postby fth0 » 18. Jan 2020, 01:12

hellAT wrote:a memory leak on my system

If I understand you correctly, the memory of your Linux server is getting consumed. Can you elaborate a bit about that? How and what did you notice?

To get some more information on the Linux server's memory usage, for example you could try the following: Start the VMs, open a shell on your Linux server, execute top, press (capital) M to sort by memory usage and (capital) H to show threads instead of processes. Take screenshots of the top output after 5, 10 and 15 minutes, and shutdown the VMs directly afterwards. Post the VBox.log files and the screenshots, altogether in a zip file.
fth0
Volunteer
 
Posts: 977
Joined: 14. Feb 2019, 03:06
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, macOS, ...

Re: memory leak

Postby hellAT » 18. Jan 2020, 10:18

I notice this at first by the users, complaining about the VMs, which are unuseable. Then i checked with "free" command, and recognized that only a few hundred Mbs are free.

I have collected the infos you mentioned, added some "free -m" output. I tried to access the VMs by GUI after about 25 mins - what did not work. But the Windows VMs have a SSH Deamon running, i could access by ssh, what was still working, and shutdown the VMs like you said.
Attachments
Downloads.zip
(59.19 KiB) Downloaded 6 times
hellAT
 
Posts: 14
Joined: 4. Dec 2013, 22:09

Re: memory leak

Postby Martin » 18. Jan 2020, 12:12

There is no memory leak. Linux is using the free memory to cache disk access.
You need to look at the value for used memory (belegt) which doesn't change.
The amount of memory not yet used applications is the sum of free (frei) and buff/cache (Puffer/Cache), this is shown in the last colum as available (verfügbar).
Martin
Volunteer
 
Posts: 2372
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Linux, OS/2

Re: memory leak

Postby hellAT » 18. Jan 2020, 16:27

okay... but previously more memory was avail - and the VMs are working well.

What will help to make the stuff running again?
hellAT
 
Posts: 14
Joined: 4. Dec 2013, 22:09

Re: memory leak

Postby fth0 » 18. Jan 2020, 21:20

First of all, I come to the same conclusion as Martin that there is no memory leak on the host side. Additionally, the information provided by the top output doesn't indicate other host problems (e.g. CPU load, no waiting for disk I/O).

hellAT wrote:I notice this at first by the users, complaining about the VMs, which are unuseable. Then i checked with "free" command, and recognized that only a few hundred Mbs are free.

Since the suspected memory leak has turned out to be wrong (at least on the host side), I suggest to ask the users what unusable means ...
fth0
Volunteer
 
Posts: 977
Joined: 14. Feb 2019, 03:06
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, macOS, ...


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 14 guests