Re: Behavior of snmp_clone_pdu
Ramki <[email protected]>
| Newsgroups | gmane.network.net-snmp.devel |
|---|---|
| Message-ID | <CAJdg5dhKZzG4HKwsT3NM87SpF6ES1k_H_fZVbi0Y9GLggPX3Cg@mail.gmail.com> |
Thanks for the reply. It is on Linux and I have already tried valgrind. It is not reporting any leaks or reachable memory during exit. Thanks Ramki On Thu, Jul 5, 2018 at 7:24 PM Bart Van Assche <[email protected]> wrote: > On 07/05/18 01:21, Ramki wrote: > > We are implementing 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? > > Are you developing for a platform that supports Valgrind? If so, have > you tried to analyze the memory leaks with valgrind --leak-check=...? > > Bart. > -- 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