snmptrapd v5.4.1 seems to have a memory leak much like snmpd in the previous release
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
net-snmp (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
I've ran some tests and snmptrapd in version 5.4.1 seems to be consuming system memory much like how snmpd had a memory leak in the previous release. I have been cron'ing this script every 15 minutes to justify my findings. I do a lot of trap catching so I'm not sure if that has any significance. I am running Ubuntu 8.04.2 (hardy) with kernel 2.6.24-
#!/bin/bash
SHELL=/bin/bash
PATH=/bin:
memoryUsage=`ps aux | grep "/usr/sbin/
dateTime=`date`
echo "SNMPTRAPD [$dateTime]: $memoryUsage% system memory used." >> /etc/snmp/
#eof
And the results are...
SNMPTRAPD [Wed May 13 00:00:01 EDT 2009]: 0.4% system memory used.
SNMPTRAPD [Wed May 13 00:15:01 EDT 2009]: 0.7% system memory used.
SNMPTRAPD [Wed May 13 00:30:01 EDT 2009]: 0.8% system memory used.
SNMPTRAPD [Wed May 13 00:45:01 EDT 2009]: 0.8% system memory used.
SNMPTRAPD [Wed May 13 01:00:01 EDT 2009]: 0.9% system memory used.
SNMPTRAPD [Wed May 13 01:15:02 EDT 2009]: 0.9% system memory used.
SNMPTRAPD [Wed May 13 01:30:01 EDT 2009]: 1.5% system memory used.
SNMPTRAPD [Wed May 13 01:45:01 EDT 2009]: 1.7% system memory used.
SNMPTRAPD [Wed May 13 02:00:01 EDT 2009]: 1.7% system memory used.
SNMPTRAPD [Wed May 13 02:15:01 EDT 2009]: 1.8% system memory used.
[...]
SNMPTRAPD [Wed May 27 06:45:02 EDT 2009]: 69.4% system memory used.
SNMPTRAPD [Wed May 27 07:00:01 EDT 2009]: 69.4% system memory used.
SNMPTRAPD [Wed May 27 07:15:01 EDT 2009]: 69.5% system memory used.
SNMPTRAPD [Wed May 27 07:30:01 EDT 2009]: 69.4% system memory used.
SNMPTRAPD [Wed May 27 07:45:01 EDT 2009]: 69.5% system memory used.
SNMPTRAPD [Wed May 27 08:00:01 EDT 2009]: 69.4% system memory used.
SNMPTRAPD [Wed May 27 08:15:01 EDT 2009]: 69.4% system memory used.
SNMPTRAPD [Wed May 27 08:30:01 EDT 2009]: 69.3% system memory used.
SNMPTRAPD [Wed May 27 08:45:01 EDT 2009]: 69.3% system memory used.
SNMPTRAPD [Wed May 27 09:00:01 EDT 2009]: 69.3% system memory used.
Complete output file is attached.
Changed in net-snmp (Ubuntu): | |
status: | In Progress → New |
Changed in net-snmp (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Confirmed |
Thank you for taking the time to report this bug and helping to make Ubuntu better. Please try to obtain a valgrind log following the instructions at https:/ /wiki.ubuntu. com/Valgrind and attach the file to the bug report. This will greatly help us in tracking down your problem.