VirtualBox

Opened 13 years ago

Closed 8 years ago

#10382 closed defect (obsolete)

vboxwebsrv memory leak with phpvirtualbox

Reported by: vpaul Owned by:
Component: webservices Version: VirtualBox 4.1.8
Keywords: Cc:
Guest type: other Host type: Linux

Description (last modified by vasily Levchenko)

I'm experienced the memory leak issue described in the phpvirtualbox wiki as others but I have NO samba pam module connected.

What steps will reproduce the problem?

  1. Log in to phpvirtualbox.
  2. Keep logged for a couple of hours.
  3. Check server memory status, it leaks.
  1. Do log off(File->Log out).
  2. Do re-login and check memory status.
  3. Expected size is reported until starting leak again.

The following workaround works for me:

  1. Disable auth as describe in the wiki.(not disabling only pam module because I just have no samba).
  2. Remove corresponding user/pass strings from the config.

What is the expected output? What do you see instead?

expected no memory leak.

What version of phpVirtualBox, VirtualBox, and PHP are you using? On what operating system?

OS Type:	Linux (2.6.32-220.4.1.el6.x86_64)
VirtualBox:	4.1.8 (75467)
phpVirtualBox 4.1-7
PHP 5.3.3 

It doesn't look like phpvirtualbox issue. If browser has been opened long enough it leads to the vboxwebsrv process dies:

Mar 23 06:12:08 vms kernel: vboxwebsrv invoked oom-killer: gfp_mask=0x84d0, order=0, oom_adj=0, oom_score_adj=0
Mar 23 06:12:08 vms kernel: vboxwebsrv cpuset=/ mems_allowed=0
Mar 23 06:12:08 vms kernel: Pid: 14644, comm: vboxwebsrv Not tainted 2.6.32-220.4.1.el6.x86_64 #1
Mar 23 06:12:08 vms kernel: Call Trace:
Mar 23 06:12:08 vms kernel: [<ffffffff810c2b51>] ? cpuset_print_task_mems_allowed+0x91/0xb0
Mar 23 06:12:08 vms kernel: [<ffffffff811138d0>] ? dump_header+0x90/0x1b0
Mar 23 06:12:08 vms kernel: [<ffffffff8120d69c>] ? security_real_capable_noaudit+0x3c/0x70
Mar 23 06:12:08 vms kernel: [<ffffffff81113d5a>] ? oom_kill_process+0x8a/0x2c0
Mar 23 06:12:08 vms kernel: [<ffffffff81113c91>] ? select_bad_process+0xe1/0x120
Mar 23 06:12:08 vms kernel: [<ffffffff811141b0>] ? out_of_memory+0x220/0x3c0
Mar 23 06:12:08 vms kernel: [<ffffffff81123ece>] ? __alloc_pages_nodemask+0x89e/0x940
Mar 23 06:12:08 vms kernel: [<ffffffff81158a1a>] ? alloc_pages_current+0xaa/0x110
Mar 23 06:12:08 vms kernel: [<ffffffff810471ab>] ? pte_alloc_one+0x1b/0x50
Mar 23 06:12:08 vms kernel: [<ffffffff811374b2>] ? __pte_alloc+0x32/0x160
Mar 23 06:12:08 vms kernel: [<ffffffff811379ea>] ? copy_pte_range+0x40a/0x4e0
Mar 23 06:12:08 vms kernel: [<ffffffff81138969>] ? copy_page_range+0x2c9/0x480
Mar 23 06:12:08 vms kernel: [<ffffffff81067406>] ? dup_mm+0x316/0x520
Mar 23 06:12:08 vms kernel: [<ffffffff8106835c>] ? copy_process+0xcdc/0x1390
Mar 23 06:12:08 vms kernel: [<ffffffff81068aa4>] ? do_fork+0x94/0x480
Mar 23 06:12:08 vms kernel: [<ffffffff81080437>] ? do_sigaction+0x197/0x1d0
Mar 23 06:12:08 vms kernel: [<ffffffff810d4582>] ? audit_syscall_entry+0x272/0x2a0
Mar 23 06:12:08 vms kernel: [<ffffffff81009598>] ? sys_clone+0x28/0x30
Mar 23 06:12:08 vms kernel: [<ffffffff8100b413>] ? stub_clone+0x13/0x20
Mar 23 06:12:08 vms kernel: [<ffffffff8100b0f2>] ? system_call_fastpath+0x16/0x1b
Mar 23 06:12:08 vms kernel: Mem-Info:
Mar 23 06:12:08 vms kernel: Node 0 DMA per-cpu:
Mar 23 06:12:08 vms kernel: CPU    0: hi:    0, btch:   1 usd:   0
Mar 23 06:12:08 vms kernel: CPU    1: hi:    0, btch:   1 usd:   0
Mar 23 06:12:08 vms kernel: Node 0 DMA32 per-cpu:
Mar 23 06:12:08 vms kernel: CPU    0: hi:  186, btch:  31 usd:   0
Mar 23 06:12:08 vms kernel: CPU    1: hi:  186, btch:  31 usd:  30
Mar 23 06:12:08 vms kernel: active_anon:516949 inactive_anon:130236 isolated_anon:0
Mar 23 06:12:08 vms kernel: active_file:28 inactive_file:66 isolated_file:0
Mar 23 06:12:08 vms kernel: unevictable:0 dirty:2 writeback:0 unstable:0
Mar 23 06:12:08 vms kernel: free:13993 slab_reclaimable:2749 slab_unreclaimable:15980
Mar 23 06:12:08 vms kernel: mapped:43 shmem:1316 pagetables:10188 bounce:0
Mar 23 06:12:08 vms kernel: Node 0 DMA free:11232kB min:240kB low:300kB high:360kB active_anon:288kB inactive_anon:3
968kB active_file:0kB inactive_file:128kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15300kB mlocked:
0kB dirty:0kB writeback:0kB mapped:16kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:16kB kernel_stack:0kB pagetabl
es:44kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
Mar 23 06:12:08 vms kernel: lowmem_reserve[]: 0 2753 2753 2753
Mar 23 06:12:08 vms kernel: Node 0 DMA32 free:44740kB min:44812kB low:56012kB high:67216kB active_anon:2067508kB ina
ctive_anon:516976kB active_file:112kB inactive_file:136kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:
2819476kB mlocked:0kB dirty:8kB writeback:0kB mapped:156kB shmem:5264kB slab_reclaimable:10996kB slab_unreclaimable:6390
4kB kernel_stack:1856kB pagetables:40708kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:32 all_unreclaimable?
 no
Mar 23 06:12:08 vms kernel: lowmem_reserve[]: 0 0 0 0
Mar 23 06:12:08 vms kernel: Node 0 DMA: 60*4kB 86*8kB 30*16kB 17*32kB 5*64kB 2*128kB 0*256kB 1*512kB 2*1024kB 3*2048
kB 0*4096kB = 11232kB
Mar 23 06:12:08 vms kernel: Node 0 DMA32: 2301*4kB 885*8kB 245*16kB 141*32kB 154*64kB 44*128kB 4*256kB 1*512kB 1*102
4kB 1*2048kB 0*4096kB = 44812kB
Mar 23 06:12:08 vms kernel: 6378 total pagecache pages
Mar 23 06:12:08 vms kernel: 4927 pages in swap cache
Mar 23 06:12:08 vms kernel: Swap cache stats: add 3582769, delete 3577842, find 237653/263285
Mar 23 06:12:08 vms kernel: Free swap  = 0kB
Mar 23 06:12:08 vms kernel: Total swap = 6635504kB
Mar 23 06:12:08 vms kernel: 718720 pages RAM
Mar 23 06:12:08 vms kernel: 13683 pages reserved
Mar 23 06:12:08 vms kernel: 605701 pages shared
Mar 23 06:12:08 vms kernel: 81955 pages non-shared
Mar 23 06:12:08 vms kernel: [ pid ]   uid  tgid total_vm      rss cpu oom_adj oom_score_adj name
Mar 23 06:12:08 vms kernel: [  558]     0   558     2782        0   1     -17         -1000 udevd
Mar 23 06:12:08 vms kernel: [ 1391]     0  1391     2293       38   1       0             0 dhclient
Mar 23 06:12:08 vms kernel: [ 1435]     0  1435    23306       34   1     -17         -1000 auditd
Mar 23 06:12:08 vms kernel: [ 1460]     0  1460    63771      578   1       0             0 rsyslogd
Mar 23 06:12:08 vms kernel: [ 1509]    32  1509     4756       15   1       0             0 rpcbind
Mar 23 06:12:08 vms kernel: [ 1527]    29  1527     5800        1   0       0             0 rpc.statd
Mar 23 06:12:08 vms kernel: [ 1560]     0  1560     7377        1   0       0             0 rpc.idmapd
Mar 23 06:12:08 vms kernel: [ 1611]    81  1611     8606      623   0       0             0 dbus-daemon
Mar 23 06:12:08 vms kernel: [ 1623]     0  1623    47285        1   0       0             0 cupsd
Mar 23 06:12:08 vms kernel: [ 1648]     0  1648     1033        0   0       0             0 acpid
Mar 23 06:12:08 vms kernel: [ 1657]    68  1657     6369      167   1       0             0 hald
Mar 23 06:12:08 vms kernel: [ 1658]     0  1658     4540        1   0       0             0 hald-runner
Mar 23 06:12:08 vms kernel: [ 1686]     0  1686     5076        1   0       0             0 hald-addon-inpu
Mar 23 06:12:08 vms kernel: [ 1703]    68  1703     4465        1   1       0             0 hald-addon-acpi
Mar 23 06:12:08 vms kernel: [ 1717]    57  1717     2138       23   0       0             0 usbhid-ups
Mar 23 06:12:08 vms kernel: [ 1720]    57  1720    10252       16   0       0             0 upsd
Mar 23 06:12:08 vms kernel: [ 1723]     0  1723     9704        3   1       0             0 upsmon
Mar 23 06:12:08 vms kernel: [ 1725]    57  1725     9704       10   1       0             0 upsmon
Mar 23 06:12:08 vms kernel: [ 1738]     0  1738    96440       31   0       0             0 automount
Mar 23 06:12:08 vms kernel: [ 1880]     0  1880    19669       24   1       0             0 master
Mar 23 06:12:08 vms kernel: [ 1898]    89  1898    19732       22   0       0             0 qmgr
Mar 23 06:12:08 vms kernel: [ 1904]     0  1904    29710        1   1       0             0 abrtd
Mar 23 06:12:08 vms kernel: [ 1912]     0  1912     2304       17   1       0             0 abrt-dump-oops
Mar 23 06:12:08 vms kernel: [ 1920]     0  1920    59363      311   0       0             0 httpd
Mar 23 06:12:08 vms kernel: [ 1939]   498  1939    83142       91   0       0             0 qpidd
Mar 23 06:12:08 vms kernel: [ 1972]     0  1972    29312       23   1       0             0 crond
Mar 23 06:12:08 vms kernel: [ 1983]     0  1983     5373        4   0       0             0 atd
Mar 23 06:12:08 vms kernel: [ 1998]     0  1998     1029        1   0       0             0 mingetty
Mar 23 06:12:08 vms kernel: [ 2000]     0  2000     1029        1   1       0             0 mingetty
Mar 23 06:12:08 vms kernel: [ 2002]     0  2002     1029        1   1       0             0 mingetty
Mar 23 06:12:08 vms kernel: [ 2008]     0  2008     1029        1   1       0             0 mingetty
Mar 23 06:12:08 vms kernel: [ 2010]     0  2010     1029        1   1       0             0 mingetty
Mar 23 06:12:08 vms kernel: [ 2017]     0  2017   258464       55   0       0             0 console-kit-dae
Mar 23 06:12:08 vms kernel: [ 2104]     0  2104     1029        1   1       0             0 mingetty
Mar 23 06:12:08 vms kernel: [ 3115]     0  3115    16018       17   1       0             0 sshd
Mar 23 06:12:08 vms kernel: [ 4270]     0  4270     2781        0   1     -17         -1000 udevd
Mar 23 06:12:08 vms kernel: [ 4271]     0  4271     2781        0   0     -17         -1000 udevd
Mar 23 06:12:08 vms kernel: [14591]    75 14591  2429078   602348   0       0             0 vboxwebsrv
Mar 23 06:12:08 vms kernel: [14594]    75 14594    47039       26   1       0             0 VBoxXPCOMIPCD
Mar 23 06:12:08 vms kernel: [14599]    75 14599   183188      257   1       0             0 VBoxSVC
Mar 23 06:12:08 vms kernel: [19192]    48 19192    62645     3727   0       0             0 httpd
Mar 23 06:12:08 vms kernel: [18104]    48 18104    63779     4954   0       0             0 httpd
Mar 23 06:12:08 vms kernel: [18147]    48 18147    63779     4956   1       0             0 httpd
Mar 23 06:12:08 vms kernel: [18189]    48 18189    63779     4957   1       0             0 httpd
Mar 23 06:12:08 vms kernel: [18233]    48 18233    63779     4957   1       0             0 httpd
Mar 23 06:12:08 vms kernel: [18568]    48 18568    63779     4957   0       0             0 httpd
Mar 23 06:12:08 vms kernel: [18593]    48 18593    63779     4957   1       0             0 httpd
Mar 23 06:12:08 vms kernel: [27382]    89 27382    19689      202   0       0             0 pickup
Mar 23 06:12:08 vms kernel: [  985]    48   985    64037     5044   0       0             0 httpd
Mar 23 06:12:08 vms kernel: Out of memory: Kill process 14591 (vboxwebsrv) score 956 or sacrifice child
Mar 23 06:12:08 vms kernel: Killed process 14591, UID 75, (vboxwebsrv) total-vm:9716312kB, anon-rss:2409380kB, file-
rss:12kB

Change History (2)

comment:1 by vasily Levchenko, 13 years ago

Description: modified (diff)

comment:2 by aeichner, 8 years ago

Resolution: obsolete
Status: newclosed

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette