[Pkg-net-snmp-devel] Bug#421906: memory leaks with snmpd on
i686/vserver
Progfou
jean-christophe.andre at auf.org
Wed May 2 11:47:48 UTC 2007
Package: snmpd
Version: 5.2.3-7
Severity: important
(This bug may be related to #420876, but the subject is different
and I don't know how to change it or link them together.)
The snmpd service leaks memory to finaly get killed (!) by the memory
manager. It's perfectly reproducible on my server (firewall actually).
I restarted the snmpd service once again this morning and here was
it's status just after starting:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
snmp 22460 1.1 6.5 6916 4084 ? S 11:40 0:00 /usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid
And this is it's status now, about 7 hours later:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
snmp 22460 0.1 16.8 14620 10456 ? S 11:40 0:47 /usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid
This snmpd is running a very simple configuration, only to serve MRTG.
There is no call to external programs or trap management either.
The memory is growing by a few 10th kilobytes on every single request.
I did strace it but I was not able to find anything clearly wrong.
The only clue I have found is that we can clearly see the heap
allocation growing in "/proc/$(pidof snmpd)/smaps".
Hope this helps, cheers, J.C.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (990, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-vserver-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages snmpd depends on:
ii adduser 3.102 Add and remove users and groups
ii debconf 1.5.11 Debian configuration management sy
ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries
ii libsensors3 1:2.10.1-3 library to read temperature/voltag
ii libsnmp9 5.2.3-7 NET SNMP (Simple Network Managemen
ii libwrap0 7.6.dbs-13 Wietse Venema's TCP wrappers libra
snmpd recommends no packages.
-- debconf information:
* snmpd/upgradefrom521:
snmpd/upgradefrom36:
More information about the Pkg-net-snmp-devel
mailing list