snmpd eats memory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
net-snmp (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Here are several Ubuntu 7.10 server, them have snmpd. Snmpd runs with this options:
/usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid
After few days, on those systems the size of free memory looks like decrease (we look them with several tools, like cacti, and top also shows up, snmpd eats about 3-4% of total memory).
Here are some output when I have restarted snmpd:
# free
total used free shared buffers cached
Mem: 775568 567488 208080 0 190412 119996
-/+ buffers/cache: 257080 518488
Swap: 979832 0 979832
output of top:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
13453 snmp 15 0 20444 16m 2376 S 0.0 2.7 3:12.69 snmpd
# /etc/init.d/snmpd stop
# free
total used free shared buffers cached
Mem: 775568 412464 363104 0 190412 120000
-/+ buffers/cache: 102052 673516
Swap: 979832 0 979832
# /etc/init.d/snmpd start
# free
total used free shared buffers cached
Mem: 775568 413604 361964 0 190412 120000
-/+ buffers/cache: 103192 672376
Swap: 979832 0 979832
After the restart the top command shows up:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
28655 snmp 15 0 7500 4320 2376 S 0.0 0.6 0:01.09 snmpd
When we sense this first time, one of those systems has crashed - the system has ran out of memory.
After this affair we look those systems, which has snmpd, and restart the service on every week.
We didn't find with this effect on any other Linux (including Ubuntu) version.
Any suggestion?
Thanks:
airween
I am running 2 gutsy amd64 servers (xen/drbd) (exact same setup on both hosts)
snmpd was running on the hosts for about a month and today got them very high in memory usage causing some problems in other services (network for example),
restarted both of them for now but there is definitely some leak
Mik