cfgutils route_if_exists can leak when
1: using a $var or $avp
2: some functions are called within the called route
Note the route is executed from rtimer
in case this is part of the problem somehow.
modparam("rtimer", "timer", "name=tmetrics;interval=9;mode=1;")
modparam("rtimer", "exec", "timer=tmetrics;route=test")
example :
route[dummy] {
xinfo("[dummy]");
statsd_gauge("dummy_1xx", $stat(1xx_replies));
}
route[test] {
$var(route_name) = "dummy";
route_if_exists($var(route_name));
]
working alternative
route[dummy] {
xinfo("[dummy]");
statsd_gauge("dummy_1xx", $stat(1xx_replies));
}
route[test] {
$var(route_name) = "dummy";
if (check_route_exists($var(route_name))) {
route($var(route_name));
}
}
kamcmd pkg.stats you can see the `real_used` of the timer process with leak every time the route is called
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.