I noticed that Kamailio produces huge (3400+) number qm_free() syslog messages if sqlops fails to connect to database. Don't know if it is intentional.
-- Juha
... Apr 19 18:02:40 edge /usr/bin/edge-proxy[1467]: CRITICAL: <core> [main.c:1716]: main_loop(): Cannot fork Apr 19 18:02:40 edge /usr/bin/edge-proxy[1484]: CRITICAL: <core> [core/pass_fd.c:277]: receive_fd(): EOF on 12 Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: ERROR: db_mysql [km_my_con.c:163]: db_mysql_new_connection(): driver error: Can't connect to MySQL server on '192.26.134.10' (110) Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: ERROR: <core> [db.c:319]: db_do_init2(): could not add connection to the pool Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: ERROR: sqlops [sql_api.c:165]: sql_connect(): failed to connect to the database [main_proxy] Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: ERROR: <core> [core/sr_module.c:865]: init_mod_child(): error while initializing module sqlops (/usr/lib/x86_64-linux-gnu/edge-proxy/modules/sqlops.so) (idx: 1 rank: 1 desc: [udp receiver child=0 sock=192.26.134.11:5060]) Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: ERROR: <core> [core/pt.c:338]: fork_process(): init_child failed for process 1, pid 1466, "udp receiver child=0 sock=192.26.134.11:5060" Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: CRITICAL: <core> [main.c:1716]: main_loop(): Cannot fork Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: INFO: <core> [core/mem/q_malloc.c:529]: qm_free(): freeing a free fragment (0x7f82ea9dc2d0/0x7f82ea9dc2e0) - ignore Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: INFO: <core> [core/mem/q_malloc.c:529]: qm_free(): freeing a free fragment (0x7f82ea9dc540/0x7f82ea9dc550) - ignore Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: INFO: <core> [core/mem/q_malloc.c:529]: qm_free(): freeing a free fragment (0x7f82ea9daff0/0x7f82ea9db000) - ignore Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: INFO: <core> [core/mem/q_malloc.c:529]: qm_free(): freeing a free fragment (0x7f82ea9d47d0/0x7f82ea9d47e0) - ignore Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: INFO: <core> [core/mem/q_malloc.c:529]: qm_free(): freeing a free fragment (0x7f82ea9d4660/0x7f82ea9d4670) - ignore ...
What is the value for connect_mode modparam?
https://www.kamailio.org/docs/modules/stable/modules/sqlops.html#sqlops.p.co...
Cheers, Daniel
On 19.04.21 17:09, Juha Heinanen wrote:
I noticed that Kamailio produces huge (3400+) number qm_free() syslog messages if sqlops fails to connect to database. Don't know if it is intentional.
-- Juha
... Apr 19 18:02:40 edge /usr/bin/edge-proxy[1467]: CRITICAL: <core> [main.c:1716]: main_loop(): Cannot fork Apr 19 18:02:40 edge /usr/bin/edge-proxy[1484]: CRITICAL: <core> [core/pass_fd.c:277]: receive_fd(): EOF on 12 Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: ERROR: db_mysql [km_my_con.c:163]: db_mysql_new_connection(): driver error: Can't connect to MySQL server on '192.26.134.10' (110) Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: ERROR: <core> [db.c:319]: db_do_init2(): could not add connection to the pool Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: ERROR: sqlops [sql_api.c:165]: sql_connect(): failed to connect to the database [main_proxy] Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: ERROR: <core> [core/sr_module.c:865]: init_mod_child(): error while initializing module sqlops (/usr/lib/x86_64-linux-gnu/edge-proxy/modules/sqlops.so) (idx: 1 rank: 1 desc: [udp receiver child=0 sock=192.26.134.11:5060]) Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: ERROR: <core> [core/pt.c:338]: fork_process(): init_child failed for process 1, pid 1466, "udp receiver child=0 sock=192.26.134.11:5060" Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: CRITICAL: <core> [main.c:1716]: main_loop(): Cannot fork Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: INFO: <core> [core/mem/q_malloc.c:529]: qm_free(): freeing a free fragment (0x7f82ea9dc2d0/0x7f82ea9dc2e0) - ignore Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: INFO: <core> [core/mem/q_malloc.c:529]: qm_free(): freeing a free fragment (0x7f82ea9dc540/0x7f82ea9dc550) - ignore Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: INFO: <core> [core/mem/q_malloc.c:529]: qm_free(): freeing a free fragment (0x7f82ea9daff0/0x7f82ea9db000) - ignore Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: INFO: <core> [core/mem/q_malloc.c:529]: qm_free(): freeing a free fragment (0x7f82ea9d47d0/0x7f82ea9d47e0) - ignore Apr 19 18:02:40 edge /usr/bin/edge-proxy[1466]: INFO: <core> [core/mem/q_malloc.c:529]: qm_free(): freeing a free fragment (0x7f82ea9d4660/0x7f82ea9d4670) - ignore ...
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Daniel-Constantin Mierla writes:
What is the value for connect_mode modparam?
https://www.kamailio.org/docs/modules/stable/modules/sqlops.html#sqlops.p.co...
It is not set, i.e., has default value 0.
-- Juha
On 20.04.21 06:49, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
What is the value for connect_mode modparam?
https://www.kamailio.org/docs/modules/stable/modules/sqlops.html#sqlops.p.co...
It is not set, i.e., has default value 0.
If that value is 0, then Kamailio should not start if it cannot connect to database, meaning that it performs shut down, so a lot of memory chunks can freed in such case. If it appears many times, likely there is a tool restarting it (i.e., systemd).
Anyhow, the debug logs for memory operations can be controlled via memlog and memdbg, set their value higher than debug and they should not be printed.
Cheers, Daniel