memory leak in NotificationOriginator?
Frank Fock
Frank.Fock____t-online.de
Tue May 22 00:26:16 CEST 2001
Hi Peter,
I could not reproduce the problem. I produced about 1000 traps per
second without
increased memory usage over minutes. May be its related to the OS used?
Are you
using the latest AGENT++ version?
Best regards,
Frank
Peter Loveman wrote:
> I was trying to prove a concept of creating another thread to handle
> the creation of alarms, so I took the static_table example and added a
> thread for it and had it generate alarms in a tight loop. At first I
> thought there was a problem with the way I was creating the
> thread/invoking the generate call within the thread, but then I put
> the same tight loop in main before the snmp_receive call, and memory
> usage keeps on increasing...Here's the snippet from main in the file
> agent.cpp in the static_table example. If I'm missing something here
> please let me know.
>
> Peter Loveman
> Celion Networks
>
> Vbx* vbs = 0;
> coldStartOid coldOid;
> NotificationOriginator no;
> UdpAddress dest("127.0.0.1/162");
> no.add_v1_trap_destination(dest);
> int i=0;
> while (1)
> {
> for (i=0;i<=10000000;i++) {
>
> }
>
> no.generate(vbs, 0, coldOid, "", "");
> }
>
> Request* req;
More information about the AGENTPP
mailing list