TrapReceiver memory leak - SNMP

This is a discussion on TrapReceiver memory leak - SNMP ; I'm working on an embedded perl handlers in net-snmp 5.4.2, Perl 5.10.0,Solaris 8. It's work well but eating too much memory.(running 1h,1G memory). the code is very simple: ================== #!/usr/bin/perl sub my_receiver2 { } NetSNMP::TrapReceiver::register("all", \&my_receiver2) || warn "failed to ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: TrapReceiver memory leak

  1. TrapReceiver memory leak

    I'm working on an embedded perl handlers in net-snmp 5.4.2, Perl
    5.10.0,Solaris 8.
    It's work well but eating too much memory.(running 1h,1G memory).

    the code is very simple:
    ==================
    #!/usr/bin/perl
    sub my_receiver2 {

    }

    NetSNMP::TrapReceiver::register("all", \&my_receiver2) ||
    warn "failed to register our perl trap handler\n";

    print STDERR "Loaded the example perl snmptrapd handler\n";
    ==================

    if remove "perl do ..." in snmptrapd.conf,it works very well.

    Regars,
    Lin.Tianshan

  2. Re: TrapReceiver memory leak

    I tried in linux,memory leak again.Anyone can help me?

+ Reply to Thread