we use asterisk in a control center with about 2000 calls per day. Additionally we have a coupling to tetra radio, configured in asterisk as confbridges interworking with clients speaking/listening to the tetra radio groups by frequently muting / unmuting the channels and confbridges per AMI.
Using this scenario rises the memory usage of asterisk about 20 GB per day until there is no more memory and asterisk restarts.
We have tested Version 13.18-cert3 LTS and 16.8-cert3 LTS. Activating Compiler Flag “MALLOC_DEBUG” helps to see the memory usage, especially frame.c gets large in Size: 436,782,887 Bytes 9533921 objects
Strangely we have in messages
[Aug 16 16:43:24] ERROR astobj2.c: Excessive refcount 100000 reached on ao2 object 0x13255f0
[Aug 16 16:43:24] ERROR astobj2.c: FRACK!, Failed assertion Excessive refcount 100000 reached on ao2 object 0x13255f0 (0)
but memory info says:
Sun Aug 16 16:44:01 CEST 2020
memory show summary
258200 bytes in 3227 allocations in file astobj2.c
I’am confused. How to find out the reasons for the upgrowing memory ?