On 09/21/2010 05:41 PM, Santiago Soares wrote:
Thanks for the answers. Here are the config file and the memory status right now. I didn't change the memory pool. I don't know how to interpret the memory log. Can you help me?
Hello
Yes sure. But you still haven't answer my question. Is it private memory or shared memory ? Have you any log entries that are useful for debugging?
I think pkg memory is all right
Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: used= 126576, used+overhead=169192, free=4025112
SHM mem looks as well pretty good:
Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: used= 3071760, used+overhead=3109608, free=30444824
I think you need to compile Kamailio with MEMDBG=1 (Makefile.defs - I think Daniel already suggested that)
Please send the SIGUSR1 to the main process when the mem leak condition appears.
Marius
Memory log:
Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: <core> [main.c:691]: Memory status (pkg): Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: fm_status (0x88d5c0): Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: heap size= 4194304 Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: used= 126576, used+overhead=169192, free=4025112 Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: max used (+overhead)= 204008 Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: dumping free list: Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: hash = 1 fragments no.: 1, unused: 0 bucket size: 8 - 8 (first 8) Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: hash = 2 fragments no.: 2, unused: 0 bucket size: 16 - 16 (first 16) Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: hash = 3 fragments no.: 8, unused: 0 bucket size: 24 - 24 (first 24) Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: hash = 4 fragments no.: 1, unused: 0 bucket size: 32 - 32 (first 32) Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: hash = 5 fragments no.: 3, unused: 0 bucket size: 40 - 40 (first 40) Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: hash = 54 fragments no.: 1, unused: 0 bucket size: 432 - 432 (first 432) Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: hash = 216 fragments no.: 20, unused: 0 bucket size: 1728 - 1728 (first 1728) Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: hash = 2056 fragments no.: 1, unused: 0 bucket size: 2097152 - 4194304 (first 3989736) Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: TOTAL: 37 free fragments = 4025112 free bytes Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: ----------------------------- Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: <core> [main.c:703]: Memory status (shm): Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: fm_status (0x2b982b03b000): Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: heap size= 33554432 Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: used= 3071760, used+overhead=3109608, free=30444824 Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: max used (+overhead)= 3235640 Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: dumping free list: Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: hash = 3 fragments no.: 2, unused: 0 bucket size: 24 - 24 (first 24) Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: hash = 5 fragments no.: 8, unused: 0 bucket size: 40 - 40 (first 40) Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: hash = 8 fragments no.: 19, unused: 0 bucket size: 64 - 64 (first 64) Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: hash = 27 fragments no.: 1, unused: 0 bucket size: 216 - 216 (first 216) Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: hash = 37 fragments no.: 1, unused: 0 bucket size: 296 - 296 (first 296) Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: hash = 38 fragments no.: 22, unused: 0 bucket size: 304 - 304 (first 304) Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: hash = 39 fragments no.: 2, unused: 0 bucket size: 312 - 312 (first 312) Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: hash = 40 fragments no.: 1, unused: 0 bucket size: 320 - 320 (first 320) Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: hash = 583 fragments no.: 25, unused: 0 bucket size: 4664 - 4664 (first 4664) Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: hash = 2059 fragments no.: 1, unused: 0 bucket size: 16777216 - 33554432 (first 30318496) Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: TOTAL: 82 free fragments = 30444824 free bytes Sep 21 11:31:02 siprouter /usr/local/sbin/kamailio[766]: NOTICE: fm_status: -----------------------------
Santiago Soares