Behavior of snmp_clone_pdu
Ramki <[email protected]>
| Newsgroups | gmane.network.net-snmp.devel |
|---|---|
| Message-ID | <CAJdg5dgO=bvsvTC8a_OFZkzHR4=rKP9Uqw2yYbG=XmSywb+_Qw@mail.gmail.com> |
Hello, We are implmeneting a SNMP agent using the NET SNMP library (C). As part of the agent we need to handle the trap burst scenario (1250 traps per second for 75 seconds). We have added a memory based queue that reads SNMP from the netsnmp_session callback function and calls snmp_clone_pdu. We see a very strange behavior. When there are around 100000 traps are stored after calling snmp_clone_pdu, we see the process memory growth up to 3 GB. The memory does not come down even after clearing the traps. Can somebody throw light on the net snmp memory handling? Thanks -- Ramki "SAVE PAPER - THINK BEFORE YOU PRINT!" ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders