Hello.
I have a philosophical question about tm.clean https://kamailio.org/docs/modules/5.1.x/modules/tm.html#tm.rpc.clean command.
Unfortunately, I don’t understand what this command is for, because in my view, expired transactions are automatically deleted.
This is all I could find:
pc command tm.clean to clean long time expired transactions (for troubleshooting purposes) [1] https://www.kamailio.org/wiki/features/new-in-5.1.x
So, can you give an example when a transaction can remain in memory?
Thanks!
Hi Marat,
I think it's one of those things that's not supposed to happen, but can happen anyway due to bugs or improper script implementation (e.g. t_suspend() without t_continue(), or something like that).
And if it does happen, even though it's not supposed to, there should be a way to clear these out.
-- Alex
On Fri, May 15, 2020 at 12:28:14PM +0300, Marat Gareev wrote:
Hello.
I have a philosophical question about tm.clean https://kamailio.org/docs/modules/5.1.x/modules/tm.html#tm.rpc.clean command.
Unfortunately, I don’t understand what this command is for, because in my view, expired transactions are automatically deleted.
This is all I could find:
pc command tm.clean to clean long time expired transactions (for troubleshooting purposes) [1] https://www.kamailio.org/wiki/features/new-in-5.1.x
So, can you give an example when a transaction can remain in memory?
Thanks!
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hello,
Alex is right.
Just to mention that the rpc command was added when troubleshooting some instances, when the virtual machine (the operating system) was freezing for several minutes, then many transactions were past the expiration time and needed a hard cleanup. So normally it is not needed.
Cheers, Daniel
On 15.05.20 21:59, Alex Balashov wrote:
Hi Marat,
I think it's one of those things that's not supposed to happen, but can happen anyway due to bugs or improper script implementation (e.g. t_suspend() without t_continue(), or something like that).
And if it does happen, even though it's not supposed to, there should be a way to clear these out.
-- Alex
On Fri, May 15, 2020 at 12:28:14PM +0300, Marat Gareev wrote:
Hello.
I have a philosophical question about tm.clean https://kamailio.org/docs/modules/5.1.x/modules/tm.html#tm.rpc.clean command.
Unfortunately, I don’t understand what this command is for, because in my view, expired transactions are automatically deleted.
This is all I could find:
pc command tm.clean to clean long time expired transactions (for troubleshooting purposes) [1] https://www.kamailio.org/wiki/features/new-in-5.1.x
So, can you give an example when a transaction can remain in memory?
Thanks! _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi, Thanks for your reply!
What do you mean by "freezing operation system"? Can I manually reproduce stalled transactions?
I tried to send SIGSTOP to a group of Kamailio processes while the transaction is live. The idea is to freeze processes for a while, then continue to work, so that by this time the transaction deletion time was missed. But after a few seconds, the transaction is still cleared.