Uploaded image for project: 'FreeNAS / TrueNAS'
  1. FreeNAS / TrueNAS
  2. NAS-103957

snmpd memory leak fixes

    XMLWordPrintable

    Details

      JEditor

        Description

        We have 2 customers now that have shown that the snmpd process can use an extreme amount of memory. I'm attaching the debug of a customer where it shows that snmpd process is using ~2.2GB of resident memory.

         

        There are also strange error messages related to snmpd:

         

        Nov 10 09:15:35 snmpd[6049]: SWInst: error initializing pkgng db
        Nov 11 09:15:34 snmpd[6049]: SWInst: error initializing pkgng db
        Nov 12 09:15:36 snmpd[6049]: SWInst: error initializing pkgng db
        Nov 12 13:35:07 snmpd[6049]: actual retrieval of routing table: Cannot allocate memory
        Limiting open port RST response from 336 to 200 packets/sec
        Nov 13 00:35:25 snmpd[6049]: actual retrieval of routing table: Cannot allocate memory
        Limiting open port RST response from 274 to 200 packets/sec
        Nov 13 09:15:34 snmpd[6049]: SWInst: error initializing pkgng db

         

        In the debug, in the ps output section, it shows RSS size ~2.2GB:

         

        root 6049 0.0 0.8 2238896 2222604 - S 13Aug19 1144:31.14 |-- /usr/local/sbin/snmpd -p /var/run/net_snmpd.pid -c /etc/local/snmpd.conf -LS3d
        root 6052 0.0 0.0 6352 2032 - Is 13Aug19 0:00.00 |-- daemon: /usr/local/bin/snmp-agent.py[6053] (daemon)


         

          Attachments

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  ryan Ryan Moeller
                  Reporter:
                  caleb Caleb St. John
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved: