I tried in linux,memory leak again.Anyone can help me?
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 ...
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
I tried in linux,memory leak again.Anyone can help me?