josecapurro wrote:I have got some severe memory leaks in the past.
Maybe it is not the best approach to this problem, but it worked for me:
Log in as root via SSH in your telephony nodes and add this line to root's crontab:
*/5 * * * * /bin/echo 3 > /proc/sys/vm/drop_caches
With this cronjob, each 5' those cached objects who resides in memory will be flushed inmediately. You can check this with free -m
I note that you did not indicate what makes you think caches are in any way related to the problem(s) you or anyone else is experiencing.
I strongly suggest that before you implement such a script, you experience a problem that you can demonstrate has been resolved by your "override" of the standard system operations.
In other words: Did you experience a problem with your dialer, and did this solve the problem? Or did you see memory in use in caches, which is *not* a problem, and then jump to the conclusion that "caches are not necessary" so this deletion of caches *should* solve a problem?
There are lots of caches in a Vicidial implementation. You could delete all of them if you like. But of course, then that cached information would require regeneration with each request, degrading operations of those applications.