I have started Lamailio module with patch provied above.
To start Kamailio used command with '-ddd -E' and output send to tmp logfile.
Then send curl https request to Kamailio tls port.
And then greped logfile using command
```
grep alloc /tmp/logfile | grep -v db_row| grep -v db_val | grep -v db_res
```
I got this result
```
0(4032186) DEBUG: <core> [core/mem/q_malloc.c:199]: qm_malloc_init():
QM_OPTIMIZE=16384, /ROUNDTO=2048
0(4032186) DEBUG: <core> [core/mem/q_malloc.c:201]: qm_malloc_init():
QM_HASH_SIZE=2099, qm_block size=235152
0(4032186) DEBUG: <core> [core/mem/q_malloc.c:203]: qm_malloc_init():
qm_malloc_init(0xffffb36f0010, 25165824), start=0xffffb36f0010
0(4032186) DEBUG: <core> [core/mem/q_malloc.c:212]: qm_malloc_init(): size=
25165824, init_overhead=235256
0(4032186) DEBUG: <core> [core/mem/q_malloc.c:199]: qm_malloc_init():
QM_OPTIMIZE=16384, /ROUNDTO=2048
0(4032186) DEBUG: <core> [core/mem/q_malloc.c:201]: qm_malloc_init():
QM_HASH_SIZE=2099, qm_block size=235152
0(4032186) DEBUG: <core> [core/mem/q_malloc.c:203]: qm_malloc_init():
qm_malloc_init(0xffffab400000, 134217728), start=0xffffab400000
0(4032186) DEBUG: <core> [core/mem/q_malloc.c:212]: qm_malloc_init(): size=
134217728, init_overhead=235256
0(4032186) DEBUG: <core> [db_query.c:412]: db_query_init(): About to allocate
sql_buf size = 65535
0(4032186) DEBUG: <core> [core/mem/pkg.c:109]: pkg_print_manager(): pkg - using
memory manager: q_malloc
0(4032186) DEBUG: <core> [core/mem/shm.c:301]: shm_print_manager(): shm - using
memory manager: q_malloc
0(4032186) DEBUG: <core> [core/mem/shm.c:289]: shm_destroy_manager(): destroying
memory manager: q_malloc
0(4032186) DEBUG: <core> [core/mem/q_malloc.c:1260]: qm_shm_lock_destroy():
destroying the shared memory lock
0(4032186) DEBUG: <core> [core/mem/pkg.c:98]: pkg_destroy_manager(): destroying
memory manager: q_malloc
```
Not much info about memory allocation.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3532#issuecomment-1684791862
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3532/1684791862(a)github.com>