Public bug reported: 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-24-sparc64-smp and I have 4GB of RAM.
#!/bin/bash SHELL=/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin memoryUsage=`ps aux | grep "/usr/sbin/snmptrapd -Lsd -p /var/run/snmptrapd.pid" | grep -v "grep" | awk -F " " '{print $4}'` dateTime=`date` echo "SNMPTRAPD [$dateTime]: $memoryUsage% system memory used." >> /etc/snmp/snmptrapd.debug.dat #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. ** Affects: net-snmp (Ubuntu) Importance: Undecided Status: New -- snmptrapd v5.4.1 seems to have a memory leak much like snmpd in the previous release https://bugs.launchpad.net/bugs/380942 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs