VirtualBox

Opened 12 years ago

Closed 11 years ago

Last modified 10 years ago

#10970 closed defect (fixed)

memory leak in VBoxService.exe

Reported by: maxchen Owned by:
Component: guest additions Version: VirtualBox 4.1.22
Keywords: Cc:
Guest type: Windows Host type: other

Description

the VBoxService.exe in guest os seems to leak mem 1MB every 2 hours in headless mode. Note that if the VM is not running in headless mode, VBoxService.exe is OK, around 2.7M all the time.

version 4.1.22 host: Windows7 x64, and Ubuntu 10.04 x64 guest: windows xp with VB addition ver 4.1.22, running in headless

Attachments (3)

VBox.log (46.7 KB ) - added by maxchen 12 years ago.
VBoxService.log (197.8 KB ) - added by maxchen 12 years ago.
VBoxService.7z (49.3 KB ) - added by maxchen 11 years ago.
ver 4.2.16 log file

Download all attachments as: .zip

Change History (17)

by maxchen, 12 years ago

Attachment: VBox.log added

comment:1 by maxchen, 12 years ago

tasklist in the guest, memory of VBoxService.exe

08:58 2012-09-17 23860

14:58 2012-09-17 26452

20:12 2012-09-17 28708

08:09 2012-09-18 33868

20:12 2012-09-18 39072

20:25 2012-09-20 59876

Last edited 12 years ago by maxchen (previous) (diff)

comment:2 by Frank Mehnert, 12 years ago

Not able to reproduce. WinXP guest here with 4.1.22 Additions. VBoxService memory consumption stays rock solid at 3228K according to the task manager.

comment:3 by maxchen, 12 years ago

do you run the VM in headless mode? If run in GUI mode (VB interface), the memory stays constant.

comment:4 by Frank Mehnert, 12 years ago

Yes, I run that VM with VBoxHeadless.

Could you do a bit more debugging? In the guest, please open regedit.exeand add/edit the following keys:

HKLM\SYSTEM\CurrentControlSet\Services\VBoxService\ImagePath = "system32\VBoxService.exe -vvvv --logfile c:\VBoxService.log" (REG_EXPAND_SZ)

After the registry modification were made the guest needs to be restarted. Please then attach the VBoxService.log file(s) (will be written to C:\ on the guest) to this defect. Thanks!

by maxchen, 12 years ago

Attachment: VBoxService.log added

comment:5 by maxchen, 12 years ago

one of the VM, the VBoxService use 148076kB now.

But another VM (cloned), the java is updated to 7u7, the mem consume by VBoxService is interesting, it is cycling, say (I log them manually)

15:16 2012-09-17 5368

20:31 2012-09-18 8692

07:27 2012-09-19 13424

19:09 2012-09-19 18464

20:25 2012-09-20 25680

08:12 2012-09-22 11836

10:24 2012-09-23 23144

09:18 2012-09-27 27064

09:46 2012-09-28 6720

09:12 2012-09-29 14072

Version 0, edited 12 years ago by maxchen (next)

comment:6 by maxchen, 11 years ago

seems this also exist in 4.2.6

C:\>systeminfo | find "Time:"
System Up Time:            4 Days, 7 Hours, 36 Minutes, 11 Seconds

C:\>tasklist
Image Name                   PID Session Name     Session#    Mem Usage
========================= ====== ================ ======== ============
System Idle Process            0 RDP-Tcp#17              0         28 K
System                         4 RDP-Tcp#17              0         92 K
smss.exe                     276 RDP-Tcp#17              0        244 K
csrss.exe                    400 RDP-Tcp#17              0     14,548 K
winlogon.exe                 424 RDP-Tcp#17              0      3,372 K
services.exe                 468 RDP-Tcp#17              0      1,524 K
lsass.exe                    480 RDP-Tcp#17              0      2,468 K
VBoxService.exe              640 RDP-Tcp#17              0     53,964 K
Last edited 11 years ago by Frank Mehnert (previous) (diff)

comment:7 by Frank Mehnert, 11 years ago

We fixed a potential memory leak. Would you willing to try a test build? If so, please install the additions from this iso image. Thank you!

comment:8 by Frank Mehnert, 11 years ago

Resolution: fixed
Status: newclosed

Fixed in VBox 4.2.8.

comment:9 by maxchen, 11 years ago

Dear all, It seems that the memory leaks much faster! in 4.2.8, 1MB per hour, in old version, only less than a half of it. Sorry that the release of 4.2.8 is during the Chinese New Year. I am not able to test it out. but I will provide a vm that you can RDP connect, please leave me a message, I will send you the IP and u/p. Thanks again.

comment:10 by Alex, 11 years ago

Unable to reproduce with 4.2.8 version (4.2.8 guest additions). Maybe I should start some specific application in the guest to reproduce this?

Can you attach new VBoxService.log from 4.2.8 version please?

comment:11 by Frank Mehnert, 11 years ago

Any news here? We don't have reports from other users regarding such a memory leak.

by maxchen, 11 years ago

Attachment: VBoxService.7z added

ver 4.2.16 log file

in reply to:  11 ; comment:12 by maxchen, 11 years ago

Replying to frank:

Any news here? We don't have reports from other users regarding such a memory leak.

seems it is still leaking. Ver 4.2.16, attached is the log file

in reply to:  12 comment:13 by adam, 11 years ago

Replying to maxchen:

Replying to frank:

Any news here? We don't have reports from other users regarding such a memory leak.

seems it is still leaking. Ver 4.2.16, attached is the log file

Yes, I am getting this on a W2000 Guest, have reported it at ticket #12072 . You may want to follow there

comment:14 by pentagonik, 10 years ago

Please note that the initial fix only is available in the next upcoming 4.2 maintenance version. 4.2.18 does *not* include the fix.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use