Assuming you expect less traffic on the alternative ports, you could lower the number of socket workers for those ports. 
https://www.kamailio.org/wiki/cookbooks/5.1.x/core#socket_workers

On Mon, Nov 19, 2018 at 2:19 PM Duarte Rocha <duarterocha91@gmail.com> wrote:
Greetings, 

I have my core parameter listen like this : 

listen=udp:eth0 

children=12

Like this and the other settings, my kamailio has 21 threads and 20 Sql connections.

If I add more listens,

listen=udp:eth0
listen=udp:eth0:5072
listen=udp:eth0:5074

Now I have 45 threads and 45 Sql connections.

Why does this happen and can i set a a number of threads and/or sql connections that doesn't change with the number of "listen" parameters that i have ?

Best Regards,

Duarte Rocha
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users