[Samba] samba AD DC eats memory

Alex samba at abisoft.biz
Mon Feb 17 16:11:51 UTC 2020


Hi,

I'm running Samba AD DC in a VM under Proxmox. And it's eaten all RAM (1.8GB) within 3
days of running:

[root at vm-dc3 var]# uptime
 19:02:54 up 3 days,  5:04,  2 users,  load average: 0.01, 0.05, 0.05

[root at vm-dc3 var]# free -m
              total        used        free      shared  buff/cache   available
Mem:           1752        1362         205           2         184         237
Swap:          1023         236         787

[root at vm-dc3 var]# ps -ef|grep samba | wc -l
61

Full process list is available here: https://paste.ee/p/dscce

[root at vm-dc3 etc]# cat smb.conf
# Global parameters
[global]
        netbios name = VM-DC3
        realm = DOMAIN.COM
        server role = active directory domain controller
        server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc, dnsupdate, dns
        workgroup = DOMAIN
        dns forwarder = 172.26.1.1
        ntlm auth = mschapv2-and-ntlmv2-only
        log level = 3
        max log size = 5000

[sysvol]
        path = /usr/local/samba/var/locks/sysvol
        read only = No

[netlogon]
        path = /usr/local/samba/var/locks/sysvol/domain.com/scripts
        read only = No

Is  there  anything  I  can  do to restrict memory usage by Samba?

It's  probably worth noting, that our Windows 2008 R2 AD DC is also running in a
VM and using 1.5GB only (of 2GB allocated).

Please, advise!

-- 
Best regards,
Alex




More information about the samba mailing list