Hello; at second test , after 340000 calls , there is no problem about out of memory. it is still continue with 1100 active calls. i am gonna test it until 1 000 000 calls. Here is results at 340 000 calls
---- -- pkg ------ { entry: 0 pid: 12029 rank: 0 used: 1162024 free: 32149056 real_used: 1405376 total_size: 33554432 total_frags: 46 } { entry: 1 pid: 12039 rank: 1 used: 11740024 free: 4488648 real_used: 29065784 total_size: 33554432 total_frags: 57 } { entry: 2 pid: 12040 rank: 2 used: 11752360 free: 4675784 real_used: 28878648 total_size: 33554432 total_frags: 29 } { entry: 3 pid: 12041 rank: 3 used: 11740752 free: 4667680 real_used: 28886752 total_size: 33554432 total_frags: 39 } { entry: 4 pid: 12043 rank: 4 used: 11715240 free: 4737320 real_used: 28817112 total_size: 33554432 total_frags: 30 } { entry: 5 pid: 12045 rank: 5 used: 11701784 free: 4754696 real_used: 28799736 total_size: 33554432 total_frags: 55 } { entry: 6 pid: 12047 rank: 6 used: 11777872 free: 4505176 real_used: 29049256 total_size: 33554432 total_frags: 55 } { entry: 7 pid: 12049 rank: 7 used: 11796656 free: 4418128 real_used: 29136304 total_size: 33554432 total_frags: 39 } { entry: 8 pid: 12051 rank: 8 used: 11791968 free: 4491696 real_used: 29062736 total_size: 33554432 total_frags: 25 } { entry: 9 pid: 12053 rank: 9 used: 11789488 free: 4577672 real_used: 28976760 total_size: 33554432 total_frags: 54 } { entry: 10 pid: 12055 rank: 10 used: 11723864 free: 4687256 real_used: 28867176 total_size: 33554432 total_frags: 29 } { entry: 11 pid: 12057 rank: 11 used: 11722488 free: 4819504 real_used: 28734928 total_size: 33554432 total_frags: 29 } { entry: 12 pid: 12059 rank: 12 used: 11718304 free: 4652776 real_used: 28901656 total_size: 33554432 total_frags: 41 } { entry: 13 pid: 12061 rank: 13 used: 11737904 free: 4574264 real_used: 28980168 total_size: 33554432 total_frags: 29 } { entry: 14 pid: 12063 rank: 14 used: 11737096 free: 4709864 real_used: 28844568 total_size: 33554432 total_frags: 73 } { entry: 15 pid: 12066 rank: 15 used: 11860720 free: 4321360 real_used: 29233072 total_size: 33554432 total_frags: 72 } { entry: 16 pid: 12068 rank: 16 used: 11762576 free: 4509944 real_used: 29044488 total_size: 33554432 total_frags: 35 } { entry: 17 pid: 12070 rank: 17 used: 11779400 free: 4494744 real_used: 29059688 total_size: 33554432 total_frags: 43 } { entry: 18 pid: 12072 rank: 18 used: 11759048 free: 4522208 real_used: 29032224 total_size: 33554432 total_frags: 30 } { entry: 19 pid: 12074 rank: 19 used: 11761112 free: 4629176 real_used: 28925256 total_size: 33554432 total_frags: 59 } { entry: 20 pid: 12076 rank: 20 used: 11748240 free: 4576248 real_used: 28978184 total_size: 33554432 total_frags: 56 } { entry: 21 pid: 12078 rank: 21 used: 11741656 free: 4666944 real_used: 28887488 total_size: 33554432 total_frags: 36 } { entry: 22 pid: 12080 rank: 22 used: 11748864 free: 4591472 real_used: 28962960 total_size: 33554432 total_frags: 20 } { entry: 23 pid: 12082 rank: 23 used: 11734256 free: 4643824 real_used: 28910608 total_size: 33554432 total_frags: 30 } { entry: 24 pid: 12084 rank: 24 used: 11722608 free: 4638448 real_used: 28915984 total_size: 33554432 total_frags: 30 } { entry: 25 pid: 12086 rank: 25 used: 11682424 free: 4793096 real_used: 28761336 total_size: 33554432 total_frags: 38 } { entry: 26 pid: 12088 rank: 26 used: 11714760 free: 4683088 real_used: 28871344 total_size: 33554432 total_frags: 76 } { entry: 27 pid: 12090 rank: 27 used: 11708064 free: 4718680 real_used: 28835752 total_size: 33554432 total_frags: 73 } { entry: 28 pid: 12092 rank: 28 used: 11700920 free: 4724648 real_used: 28829784 total_size: 33554432 total_frags: 56 } { entry: 29 pid: 12094 rank: 29 used: 11765384 free: 4666960 real_used: 28887472 total_size: 33554432 total_frags: 30 } { entry: 30 pid: 12096 rank: 30 used: 11714640 free: 4670496 real_used: 28883936 total_size: 33554432 total_frags: 37 } { entry: 31 pid: 12098 rank: 31 used: 11705664 free: 4764424 real_used: 28790008 total_size: 33554432 total_frags: 59 } { entry: 32 pid: 12100 rank: 32 used: 11802080 free: 4418248 real_used: 29136184 total_size: 33554432 total_frags: 35 } { entry: 33 pid: 12102 rank: 33 used: 11763704 free: 4595728 real_used: 28958704 total_size: 33554432 total_frags: 40 } { entry: 34 pid: 12104 rank: 34 used: 11777936 free: 4535968 real_used: 29018464 total_size: 33554432 total_frags: 55 } { entry: 35 pid: 12106 rank: 35 used: 11764624 free: 4643752 real_used: 28910680 total_size: 33554432 total_frags: 40 } { entry: 36 pid: 12108 rank: 36 used: 11724184 free: 4557072 real_used: 28997360 total_size: 33554432 total_frags: 30 } { entry: 37 pid: 12110 rank: 37 used: 11785704 free: 4480096 real_used: 29074336 total_size: 33554432 total_frags: 21 } { entry: 38 pid: 12112 rank: 38 used: 11868048 free: 4252544 real_used: 29301888 total_size: 33554432 total_frags: 30 } { entry: 39 pid: 12116 rank: 39 used: 11815592 free: 4495960 real_used: 29058472 total_size: 33554432 total_frags: 59 } { entry: 40 pid: 12118 rank: 40 used: 11765432 free: 4666632 real_used: 28887800 total_size: 33554432 total_frags: 73 } { entry: 41 pid: 12120 rank: 41 used: 11724904 free: 4651104 real_used: 28903328 total_size: 33554432 total_frags: 29 } { entry: 42 pid: 12122 rank: 42 used: 11661944 free: 4878480 real_used: 28675952 total_size: 33554432 total_frags: 76 } { entry: 43 pid: 12124 rank: 43 used: 11793912 free: 4485944 real_used: 29068488 total_size: 33554432 total_frags: 36 } { entry: 44 pid: 12126 rank: 44 used: 11813880 free: 4299040 real_used: 29255392 total_size: 33554432 total_frags: 72 } { entry: 45 pid: 12128 rank: 45 used: 11782696 free: 4444016 real_used: 29110416 total_size: 33554432 total_frags: 35 } { entry: 46 pid: 12130 rank: 46 used: 11793072 free: 4562664 real_used: 28991768 total_size: 33554432 total_frags: 30 } { entry: 47 pid: 12132 rank: 47 used: 11731376 free: 4690104 real_used: 28864328 total_size: 33554432 total_frags: 34 } { entry: 48 pid: 12134 rank: 48 used: 11741616 free: 4569208 real_used: 28985224 total_size: 33554432 total_frags: 72 } { entry: 49 pid: 12136 rank: 49 used: 11755408 free: 4688416 real_used: 28866016 total_size: 33554432 total_frags: 72 } { entry: 50 pid: 12138 rank: 50 used: 11789520 free: 4528640 real_used: 29025792 total_size: 33554432 total_frags: 74 } { entry: 51 pid: 12140 rank: 51 used: 11837008 free: 4364504 real_used: 29189928 total_size: 33554432 total_frags: 29 } { entry: 52 pid: 12142 rank: 52 used: 11722752 free: 4691952 real_used: 28862480 total_size: 33554432 total_frags: 60 } { entry: 53 pid: 12144 rank: 53 used: 11756088 free: 4524832 real_used: 29029600 total_size: 33554432 total_frags: 36 } { entry: 54 pid: 12146 rank: 54 used: 11801432 free: 4405064 real_used: 29149368 total_size: 33554432 total_frags: 73 } { entry: 55 pid: 12148 rank: 55 used: 11777368 free: 4500304 real_used: 29054128 total_size: 33554432 total_frags: 56 } { entry: 56 pid: 12150 rank: 56 used: 11697856 free: 4684872 real_used: 28869560 total_size: 33554432 total_frags: 61 } { entry: 57 pid: 12152 rank: 57 used: 11687312 free: 4840512 real_used: 28713920 total_size: 33554432 total_frags: 73 } { entry: 58 pid: 12154 rank: 58 used: 11771648 free: 4576304 real_used: 28978128 total_size: 33554432 total_frags: 74 } { entry: 59 pid: 12156 rank: 59 used: 11699016 free: 4809152 real_used: 28745280 total_size: 33554432 total_frags: 25 } { entry: 60 pid: 12158 rank: 60 used: 11784104 free: 4494800 real_used: 29059632 total_size: 33554432 total_frags: 72 } { entry: 61 pid: 12160 rank: 61 used: 11759720 free: 4534024 real_used: 29020408 total_size: 33554432 total_frags: 35 } { entry: 62 pid: 12162 rank: 62 used: 11707472 free: 4761440 real_used: 28792992 total_size: 33554432 total_frags: 42 } { entry: 63 pid: 12164 rank: 63 used: 11827064 free: 4349584 real_used: 29204848 total_size: 33554432 total_frags: 74 } { entry: 64 pid: 12166 rank: 64 used: 11718240 free: 4726592 real_used: 28827840 total_size: 33554432 total_frags: 73 } { entry: 65 pid: 12168 rank: -1 used: 1170360 free: 32140328 real_used: 1414104 total_size: 33554432 total_frags: 51 } { entry: 66 pid: 12170 rank: -1 used: 1170360 free: 32140384 real_used: 1414048 total_size: 33554432 total_frags: 50 } { entry: 67 pid: 12172 rank: -128 used: 1179320 free: 32131200 real_used: 1423232 total_size: 33554432 total_frags: 52 } { entry: 68 pid: 12174 rank: -2 used: 1177232 free: 32133344 real_used: 1421088 total_size: 33554432 total_frags: 51 } { entry: 69 pid: 12176 rank: -1 used: 1170248 free: 32140496 real_used: 1413936 total_size: 33554432 total_frags: 50 } { entry: 70 pid: 12179 rank: -1 used: 1170368 free: 32140376 real_used: 1414056 total_size: 33554432 total_frags: 49 } { entry: 71 pid: 12183 rank: -4 used: 1251904 free: 32059008 real_used: 1495424 total_size: 33554432 total_frags: 45 }
---------------------------- shmem:fragments = 6677 shmem:free_size = 257794288 shmem:max_used_size = 13272808 shmem:real_used_size = 10641168 shmem:total_size = 268435456 shmem:used_size = 8709640 ----------------------- core:bad_URIs_rcvd = 0 core:bad_msg_hdr = 0 core:drop_replies = 0 core:drop_requests = 35 core:err_replies = 0 core:err_requests = 0 core:fwd_replies = 20 core:fwd_requests = 399077 core:rcv_replies = 1084764 core:rcv_requests = 1102274 core:unsupported_methods = 0 ----------------------------------- tmx:2xx_transactions = 740229 tmx:3xx_transactions = 0 tmx:4xx_transactions = 983 tmx:5xx_transactions = 0 tmx:6xx_transactions = 0 tmx:UAC_transactions = 2 tmx:UAS_transactions = 684282 tmx:active_transactions = 3 tmx:inuse_transactions = 150 tmx:local_replies = 342688 tmx:received_replies = 741212 tmx:relayed_replies = 398524
-- View this message in context: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141875.... Sent from the Users mailing list archive at Nabble.com.
Hello; after 392 000 calls , it gives out of memory error again. i got memlog at below. Could you help me find out. Thanks
------------------ core:bad_URIs_rcvd = 0 core:bad_msg_hdr = 0 core:drop_replies = 0 core:drop_requests = 35 core:err_replies = 0 core:err_requests = 0 core:fwd_replies = 23 core:fwd_requests = 458763 core:rcv_replies = 1249516 core:rcv_requests = 1269758 core:unsupported_methods = 0 dialog:active_dialogs = 1 dialog:early_dialogs = 0 dialog:expired_dialogs = 1 dialog:failed_dialogs = 4 dialog:processed_dialogs = 394542 dns:failed_dns_request = 0 mysql:driver_errors = 0 registrar:accepted_regs = 0 registrar:default_expire = 3600 registrar:default_expires_range = 0 registrar:expires_range = 0 registrar:max_contacts = 0 registrar:max_expires = 3600 registrar:rejected_regs = 0 shmem:fragments = 33244 shmem:free_size = 261538896 shmem:max_used_size = 13272808 shmem:real_used_size = 6896560 shmem:total_size = 268435456 shmem:used_size = 4965032 sl:1xx_replies = 0 sl:200_replies = 493 sl:202_replies = 0 sl:2xx_replies = 0 sl:300_replies = 0 sl:301_replies = 0 sl:302_replies = 0 sl:3xx_replies = 0 sl:400_replies = 0 sl:401_replies = 0 sl:403_replies = 0 sl:404_replies = 0 sl:407_replies = 0 sl:408_replies = 0 sl:483_replies = 0 sl:4xx_replies = 0 sl:500_replies = 0 sl:5xx_replies = 35 sl:6xx_replies = 0 sl:failures = 0 sl:received_ACKs = 35 sl:sent_err_replies = 0 sl:sent_replies = 395117 sl:xxx_replies = 394589 tcp:con_reset = 0 tcp:con_timeout = 0 tcp:connect_failed = 0 tcp:connect_success = 0 tcp:current_opened_connections = 0 tcp:current_write_queue_size = 0 tcp:established = 0 tcp:local_reject = 0 tcp:passive_open = 0 tcp:send_timeout = 0 tcp:sendq_full = 0 tmx:2xx_transactions = 852998 tmx:3xx_transactions = 0 tmx:4xx_transactions = 984 tmx:5xx_transactions = 3 tmx:6xx_transactions = 0 tmx:UAC_transactions = 2 tmx:UAS_transactions = 789109 tmx:active_transactions = 5 tmx:inuse_transactions = 6 tmx:local_replies = 394546 tmx:received_replies = 853985 tmx:relayed_replies = 459439 usrloc:location-contacts = 0 usrloc:location-expires = 0 usrloc:location-users = 0 usrloc:registered_users = 0 ----------------------- { entry: 0 pid: 12029 rank: 0 used: 1162024 free: 32149056 real_used: 1405376 total_size: 33554432 total_frags: 46 } { entry: 1 pid: 12039 rank: 1 used: 13425600 free: 148336 real_used: 33406096 total_size: 33554432 total_frags: 20 } { entry: 2 pid: 12040 rank: 2 used: 13447016 free: 290776 real_used: 33263656 total_size: 33554432 total_frags: 20 } { entry: 3 pid: 12041 rank: 3 used: 13395480 free: 336992 real_used: 33217440 total_size: 33554432 total_frags: 20 } { entry: 4 pid: 12043 rank: 4 used: 13406432 free: 338808 real_used: 33215624 total_size: 33554432 total_frags: 20 } { entry: 5 pid: 12045 rank: 5 used: 13407640 free: 348240 real_used: 33206192 total_size: 33554432 total_frags: 20 } { entry: 6 pid: 12047 rank: 6 used: 13467776 free: 70320 real_used: 33484112 total_size: 33554432 total_frags: 33 } { entry: 7 pid: 12049 rank: 7 used: 13499392 free: 456 real_used: 33553976 total_size: 33554432 total_frags: 13 } { entry: 8 pid: 12051 rank: 8 used: 13500280 free: 52656 real_used: 33501776 total_size: 33554432 total_frags: 34 } { entry: 9 pid: 12053 rank: 9 used: 13517776 free: 57560 real_used: 33496872 total_size: 33554432 total_frags: 33 } { entry: 10 pid: 12055 rank: 10 used: 13408680 free: 298256 real_used: 33256176 total_size: 33554432 total_frags: 20 } { entry: 11 pid: 12057 rank: 11 used: 13375864 free: 517608 real_used: 33036824 total_size: 33554432 total_frags: 33 } { entry: 12 pid: 12059 rank: 12 used: 13426496 free: 181544 real_used: 33372888 total_size: 33554432 total_frags: 19 } { entry: 13 pid: 12061 rank: 13 used: 13437960 free: 153112 real_used: 33401320 total_size: 33554432 total_frags: 38 } { entry: 14 pid: 12063 rank: 14 used: 13428744 free: 335984 real_used: 33218448 total_size: 33554432 total_frags: 33 } { entry: 15 pid: 12066 rank: 15 used: 13508216 free: 312 real_used: 33554120 total_size: 33554432 total_frags: 8 } { entry: 16 pid: 12068 rank: 16 used: 13409776 free: 279072 real_used: 33275360 total_size: 33554432 total_frags: 20 } { entry: 17 pid: 12070 rank: 17 used: 13490176 free: 51056 real_used: 33503376 total_size: 33554432 total_frags: 34 } { entry: 18 pid: 12072 rank: 18 used: 13439888 free: 123464 real_used: 33430968 total_size: 33554432 total_frags: 1 } { entry: 19 pid: 12074 rank: 19 used: 13464856 free: 157968 real_used: 33396464 total_size: 33554432 total_frags: 21 } { entry: 20 pid: 12076 rank: 20 used: 13425864 free: 182288 real_used: 33372144 total_size: 33554432 total_frags: 18 } { entry: 21 pid: 12078 rank: 21 used: 13409512 free: 313664 real_used: 33240768 total_size: 33554432 total_frags: 34 } { entry: 22 pid: 12080 rank: 22 used: 13430072 free: 207984 real_used: 33346448 total_size: 33554432 total_frags: 34 } { entry: 23 pid: 12082 rank: 23 used: 13439040 free: 200920 real_used: 33353512 total_size: 33554432 total_frags: 19 } { entry: 24 pid: 12084 rank: 24 used: 13437184 free: 203784 real_used: 33350648 total_size: 33554432 total_frags: 20 } { entry: 25 pid: 12086 rank: 25 used: 13347856 free: 470072 real_used: 33084360 total_size: 33554432 total_frags: 33 } { entry: 26 pid: 12088 rank: 26 used: 13410992 free: 251816 real_used: 33302616 total_size: 33554432 total_frags: 11 } { entry: 27 pid: 12090 rank: 27 used: 13413000 free: 246336 real_used: 33308096 total_size: 33554432 total_frags: 34 } { entry: 28 pid: 12092 rank: 28 used: 13419640 free: 299952 real_used: 33254480 total_size: 33554432 total_frags: 4 } { entry: 29 pid: 12094 rank: 29 used: 13440184 free: 319112 real_used: 33235320 total_size: 33554432 total_frags: 35 } { entry: 30 pid: 12096 rank: 30 used: 13427600 free: 222944 real_used: 33331488 total_size: 33554432 total_frags: 20 } { entry: 31 pid: 12098 rank: 31 used: 13417640 free: 306320 real_used: 33248112 total_size: 33554432 total_frags: 2 } { entry: 32 pid: 12100 rank: 32 used: 13514152 free: 88 real_used: 33554344 total_size: 33554432 total_frags: 3 } { entry: 33 pid: 12102 rank: 33 used: 13470264 free: 118904 real_used: 33435528 total_size: 33554432 total_frags: 33 } { entry: 34 pid: 12104 rank: 34 used: 13442144 free: 217976 real_used: 33336456 total_size: 33554432 total_frags: 20 } { entry: 35 pid: 12106 rank: 35 used: 13461848 free: 245368 real_used: 33309064 total_size: 33554432 total_frags: 34 } { entry: 36 pid: 12108 rank: 36 used: 13431632 free: 108256 real_used: 33446176 total_size: 33554432 total_frags: 20 } { entry: 37 pid: 12110 rank: 37 used: 13485880 free: 74560 real_used: 33479872 total_size: 33554432 total_frags: 33 } { entry: 38 pid: 12112 rank: 38 used: 13505424 free: 2488 real_used: 33551944 total_size: 33554432 total_frags: 21 } { entry: 39 pid: 12116 rank: 39 used: 13509000 free: 37552 real_used: 33516880 total_size: 33554432 total_frags: 34 } { entry: 40 pid: 12118 rank: 40 used: 13449384 free: 297256 real_used: 33257176 total_size: 33554432 total_frags: 33 } { entry: 41 pid: 12120 rank: 41 used: 13427208 free: 226808 real_used: 33327624 total_size: 33554432 total_frags: 34 } { entry: 42 pid: 12122 rank: 42 used: 13351968 free: 460640 real_used: 33093792 total_size: 33554432 total_frags: 33 } { entry: 43 pid: 12124 rank: 43 used: 13481336 free: 112032 real_used: 33442400 total_size: 33554432 total_frags: 34 } { entry: 44 pid: 12126 rank: 44 used: 13454240 free: 2544 real_used: 33551888 total_size: 33554432 total_frags: 22 } { entry: 45 pid: 12128 rank: 45 used: 13475824 free: 50232 real_used: 33504200 total_size: 33554432 total_frags: 20 } { entry: 46 pid: 12130 rank: 46 used: 13475224 free: 152192 real_used: 33402240 total_size: 33554432 total_frags: 34 } { entry: 47 pid: 12132 rank: 47 used: 13452808 free: 215824 real_used: 33338608 total_size: 33554432 total_frags: 20 } { entry: 48 pid: 12134 rank: 48 used: 13447224 free: 150120 real_used: 33404312 total_size: 33554432 total_frags: 20 } { entry: 49 pid: 12136 rank: 49 used: 13466144 free: 250648 real_used: 33303784 total_size: 33554432 total_frags: 34 } { entry: 50 pid: 12138 rank: 50 used: 13527928 free: 592 real_used: 33553840 total_size: 33554432 total_frags: 14 } { entry: 51 pid: 12140 rank: 51 used: 13516176 free: 192 real_used: 33554240 total_size: 33554432 total_frags: 3 } { entry: 52 pid: 12142 rank: 52 used: 13412768 free: 284648 real_used: 33269784 total_size: 33554432 total_frags: 19 } { entry: 53 pid: 12144 rank: 53 used: 13458696 free: 102472 real_used: 33451960 total_size: 33554432 total_frags: 20 } { entry: 54 pid: 12146 rank: 54 used: 13486776 free: 49136 real_used: 33505296 total_size: 33554432 total_frags: 34 } { entry: 55 pid: 12148 rank: 55 used: 13460016 free: 131224 real_used: 33423208 total_size: 33554432 total_frags: 34 } { entry: 56 pid: 12150 rank: 56 used: 13390920 free: 264944 real_used: 33289488 total_size: 33554432 total_frags: 20 } { entry: 57 pid: 12152 rank: 57 used: 13393024 free: 432296 real_used: 33122136 total_size: 33554432 total_frags: 34 } { entry: 58 pid: 12154 rank: 58 used: 13490224 free: 109248 real_used: 33445184 total_size: 33554432 total_frags: 20 } { entry: 59 pid: 12156 rank: 59 used: 13420104 free: 322000 real_used: 33232432 total_size: 33554432 total_frags: 19 } { entry: 60 pid: 12158 rank: 60 used: 13466960 free: 154072 real_used: 33400360 total_size: 33554432 total_frags: 16 } { entry: 61 pid: 12160 rank: 61 used: 13443384 free: 162472 real_used: 33391960 total_size: 33554432 total_frags: 20 } { entry: 62 pid: 12162 rank: 62 used: 13386768 free: 411672 real_used: 33142760 total_size: 33554432 total_frags: 20 } { entry: 63 pid: 12164 rank: 63 used: 13481656 free: 67024 real_used: 33487408 total_size: 33554432 total_frags: 34 } { entry: 64 pid: 12166 rank: 64 used: 13406760 free: 295192 real_used: 33259240 total_size: 33554432 total_frags: 33 } { entry: 65 pid: 12168 rank: -1 used: 1170360 free: 32140328 real_used: 1414104 total_size: 33554432 total_frags: 51 } { entry: 66 pid: 12170 rank: -1 used: 1170360 free: 32140384 real_used: 1414048 total_size: 33554432 total_frags: 50 } { entry: 67 pid: 12172 rank: -128 used: 1179320 free: 32131200 real_used: 1423232 total_size: 33554432 total_frags: 52 } { entry: 68 pid: 12174 rank: -2 used: 1177232 free: 32133344 real_used: 1421088 total_size: 33554432 total_frags: 51 } { entry: 69 pid: 12176 rank: -1 used: 1170248 free: 32140496 real_used: 1413936 total_size: 33554432 total_frags: 50 } { entry: 70 pid: 12179 rank: -1 used: 1170368 free: 32140376 real_used: 1414056 total_size: 33554432 total_frags: 49 } { entry: 71 pid: 12183 rank: -4 used: 1251904 free: 32059008 real_used: 1495424 total_size: 33554432 total_frags: 45 } ---------------------------------- Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: summarizing all alloc'ed. fragments: Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 16 bytes from dialog: dlg_hash.c: dlg_set_toroute(1055) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 472 bytes from dialog: dlg_hash.c: build_new_dlg(428) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 2 size= 24 bytes from dialog: dlg_hash.c: dlg_set_leg_info(504) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 3 size= 144 bytes from dialog: dlg_var.c: new_dlg_var(97) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 3 size= 40 bytes from dialog: dlg_var.c: new_dlg_var(116) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 3 size= 48 bytes from dialog: dlg_var.c: new_dlg_var(106) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 2 size= 112 bytes from dialog: dlg_hash.c: dlg_set_leg_info(496) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 9 size= 72 bytes from dialog: dlg_handlers.c: dlg_get_iuid_shm_clone(279) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 55296 bytes from <core>: counters.c: counters_prefork_init(207) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 13824 bytes from sl: sl_stats.c: init_sl_stats_child(125) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 1024 bytes from tmx: tmx_pretran.c: tmx_init_pretran_table(90) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 18432 bytes from tm: t_stats.c: init_tm_stats_child(60) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 3456 bytes from kex: pkg_stats.c: pkg_proc_stats_init(79) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 6 size= 112 bytes from <core>: cfg/cfg_struct.c: cfg_clone_str(130) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 800 bytes from <core>: cfg/cfg_struct.c: cfg_shmize(217) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 3 size= 64 bytes from usrloc: udomain.c: build_stat_name(51) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 40960 bytes from usrloc: udomain.c: new_udomain(93) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 48 bytes from usrloc: udomain.c: new_udomain(86) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 16 bytes from usrloc: dlist.c: new_dlist(556) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 32 bytes from usrloc: dlist.c: new_dlist(548) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: pt.c: init_pt(110) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: pt.c: init_pt(105) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 10080 bytes from <core>: pt.c: init_pt(104) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 131088 bytes from dialog: dlg_hash.c: init_dlg_table(277) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from dialog: dlg_hash.c: init_dlg_table(269) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from dialog: dlg_hash.c: init_dlg_table(262) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from dialog: dlg_hash.c: init_dlg_table(257) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from dialog: dlg_timer.c: init_dlg_timer(57) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 32 bytes from dialog: dlg_timer.c: init_dlg_timer(48) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 4 size= 1256 bytes from dialog: dlg_profile.c: new_dlg_profile(187) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 2 size= 16 bytes from carrierroute: cr_data.c: rule_fixup_recursor(584) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 10 size= 112 bytes from carrierroute: ../../ut.h: shm_str_dup(691) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 2 size= 304 bytes from carrierroute: cr_rule.c: add_route_rule(74) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 4 size= 320 bytes from <core>: dtrie.c: dtrie_insert(151) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 4 size= 64 bytes from <core>: dtrie.c: dtrie_insert(142) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 2 size= 96 bytes from carrierroute: cr_rule.c: add_route_flags(225) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 4 size= 320 bytes from <core>: dtrie.c: dtrie_init(60) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 4 size= 64 bytes from <core>: dtrie.c: dtrie_init(51) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 2 size= 64 bytes from carrierroute: cr_domain.c: create_domain_data(83) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 2 size= 16 bytes from carrierroute: cr_carrier.c: create_carrier_data(59) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 3 size= 120 bytes from carrierroute: cr_carrier.c: create_carrier_data(50) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 24 bytes from carrierroute: cr_db.c: load_route_data_db(284) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 2 size= 32 bytes from carrierroute: cr_db.c: load_domain_map(172) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 48 bytes from carrierroute: cr_db.c: load_domain_map(161) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 3 size= 24 bytes from carrierroute: cr_db.c: load_carrier_map(116) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 72 bytes from carrierroute: cr_db.c: load_carrier_map(105) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 64 bytes from carrierroute: cr_data.c: reload_route_data(172) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from carrierroute: cr_data.c: init_route_data(74) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 195 size= 17160 bytes from htable: ht_api.c: ht_cell_new(183) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 2097152 bytes from htable: ht_api.c: ht_init_tables(336) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 16 bytes from rtpproxy: rtpproxy.c: mod_init(911) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from nathelper: nathelper.c: mod_init(662) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 16 bytes from domain: hash.c: hash_table_install(145) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from domain: hash.c: hash_table_install(136) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 48 bytes from domain: hash.c: hash_table_install(129) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from domain: domain_mod.c: mod_init(219) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 1032 bytes from domain: domain_mod.c: mod_init(207) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 1032 bytes from domain: domain_mod.c: mod_init(205) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from domain: domain_mod.c: mod_init(203) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 2 size= 136 bytes from permissions: hash.c: addr_hash_table_insert(417) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from permissions: address.c: init_addresses(353) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 2 size= 2048 bytes from permissions: hash.c: new_domain_name_table(864) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from permissions: address.c: init_addresses(339) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 2 size= 14448 bytes from permissions: hash.c: new_subnet_table(614) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from permissions: address.c: init_addresses(325) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 2 size= 2048 bytes from permissions: hash.c: new_addr_hash_table(378) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 4 size= 32 bytes from permissions: hash.c: hash_table_insert(184) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 4 size= 64 bytes from permissions: hash.c: hash_table_insert(158) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 4 size= 224 bytes from permissions: hash.c: hash_table_insert(128) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from permissions: trusted.c: init_trusted(208) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 2 size= 2048 bytes from permissions: hash.c: new_hash_table(94) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 24 bytes from utils: conf.c: conf_init(549) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from utils: utils.c: init_shmlock(150) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from cfgutils: cfgutils.c: mod_init(920) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from cfgutils: cfgutils.c: mod_init(914) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from cfgutils: cfgutils.c: mod_init(906) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from db_flatstore: km_flatstore_mod.c: km_mod_init(107) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from db_flatstore: flatstore_mod.c: mod_init(169) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 10 size= 400 bytes from tm: t_hooks.c: insert_tmcb(137) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 16 bytes from usrloc: ul_callback.c: init_ulcb_list(45) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 2 size= 144 bytes from <core>: timer.c: register_timer(1011) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 4112 bytes from usrloc: ../../lock_alloc.h: lock_set_alloc(70) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from sl: sl_funcs.c: sl_startup(83) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from sl: sl_stats.c: init_sl_stats(110) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 16 bytes from tm: t_hooks.c: init_tmcb_lists(74) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 16 bytes from tm: t_hooks.c: init_tmcb_lists(72) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 2097152 bytes from tm: h_table.c: init_hash_table(450) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 2 size= 64 bytes from <core>: cfg/cfg_ctx.c: cfg_register_ctx(47) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8192 bytes from <core>: tcp_main.c: init_tcp(4634) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 32768 bytes from <core>: tcp_main.c: init_tcp(4628) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: tcp_main.c: init_tcp(4620) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: tcp_main.c: init_tcp(4613) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: tcp_main.c: init_tcp(4606) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: tcp_main.c: init_tcp(4600) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: tcp_main.c: init_tcp(4588) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: usr_avp.c: init_avps(90) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: usr_avp.c: init_avps(89) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 16384 bytes from <core>: dst_blacklist.c: init_dst_blacklist(437) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: dst_blacklist.c: init_dst_blacklist(430) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 2 size= 96 bytes from <core>: timer.c: timer_alloc(514) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: dns_cache.c: init_dns_cache(366) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 16384 bytes from <core>: dns_cache.c: init_dns_cache(358) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 16 bytes from <core>: dns_cache.c: init_dns_cache(351) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: dns_cache.c: init_dns_cache(345) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: timer.c: init_timer(283) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 16384 bytes from <core>: timer.c: init_timer(282) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: timer.c: init_timer(281) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: timer.c: init_timer(280) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: timer.c: init_timer(269) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: timer.c: init_timer(237) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 278544 bytes from <core>: timer.c: init_timer(220) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: timer.c: init_timer(219) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: timer.c: init_timer(206) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 64 bytes from <core>: cfg/cfg_struct.c: cfg_child_cb_new(830) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: cfg/cfg_struct.c: sr_cfg_init(361) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: cfg/cfg_struct.c: sr_cfg_init(354) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: cfg/cfg_struct.c: sr_cfg_init(347) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: cfg/cfg_struct.c: sr_cfg_init(335) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: cfg/cfg_struct.c: sr_cfg_init(323) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 96 bytes from htable: ht_api.c: ht_add_table(275) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: count= 1 size= 8 bytes from <core>: mem/shm_mem.c: shm_mem_init_mallocs(179) Sep 28 18:12:51 localhost /usr/local/sbin/kamailio[12174]: WARNING: fm_status: -----------------------------
-- View this message in context: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141877.... Sent from the Users mailing list archive at Nabble.com.
The free size for private memory/pkg is getting low.
Set in kamailio.cfg:
memlog=1 mem_summary=8
Be sure that debug parameter is at least 1.
Restart kamailio and run the test again. When you get out of memory, stop kamailio (e.g., using: killall kamailio).
Look inside syslog file for the messages printed at the end. For each kamailio process, there should be a pkg summary -- messages can be mixed, so you can send all of them
To have lower number of process (which will probably result in faster consuming of memory), you can set children=2.
Cheers, Daniel
On 28/09/15 17:31, ycaner wrote:
{ entry: 1 pid: 12039 rank: 1 used: 13425600 free: 148336 real_used: 33406096 total_size: 33554432 total_frags: 20 }
Hello Daniel;
First of all , Thanks for reply.This project deserve a big award because of you. you try to give response any question as you can. i hope with my test results help you to make it bigger this project.
Before you reply i set memlog=0 , debug=0 and mem_summary=15 , children 64 ,"SHM_MEMORY=256" , "PKG_MEMORY=32" .i added to results. i dont know how to analyse results but i think the problem is "acc: acc_extra.c: extra2strar(265)". it increases bytes.
Thanks.
29.09.2015 00:31 tarihinde Daniel-Constantin Mierla-6 [via SIP Router] yazdı:
The free size for private memory/pkg is getting low.
Set in kamailio.cfg:
memlog=1
mem_summary=8
Be sure that debug parameter is at least 1.
Restart kamailio and run the test again. When you get out of memory, stop kamailio (e.g., using: killall kamailio).
Look inside syslog file for the messages printed at the end. For each kamailio process, there should be a pkg summary -- messages can be mixed, so you can send all of them
To have lower number of process (which will probably result in faster consuming of memory), you can set children=2.
Cheers, Daniel
On 28/09/15 17:31, ycaner wrote:
{ entry: 1 pid: 12039 rank: 1 used: 13425600 free: 148336 real_used: 33406096 total_size: 33554432 total_frags: 20 }
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
[hidden email]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141889....
To unsubscribe from out of memory Error, click here . NAML
--
yasin-imza-2014.jpg (51K) http://sip-router.1086192.n5.nabble.com/attachment/141893/0/yasin-imza-2014.jpg kamailio_mem_dump_1.txt (1M) http://sip-router.1086192.n5.nabble.com/attachment/141893/1/kamailio_mem_dump_1.txt
-- View this message in context: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141893.... Sent from the Users mailing list archive at Nabble.com.
Hello,
there are no logs.
You should have followed my suggestions, because mem_summary=15 is printing a lot of other unnecessary log messages. It is better to use mem_summary=8 to get a smaller log. Also, the children is quite high, try with children=2 -- the out of memory should appear sooner.
Also, use -M 8 in order to reduce the time to using all memory.
Cheers, Daniel
On 29/09/15 08:30, ycaner wrote:
Hello Daniel;
First of all , Thanks for reply.This project deserve a big award because of you. you try to give response any question as you can. i hope with my test results help you to make it bigger this project.
Before you reply i set memlog=0 , debug=0 and mem_summary=15 , children 64 ,"SHM_MEMORY=256" , "PKG_MEMORY=32" .i added to results. i dont know how to analyse results but i think the problem is "acc: acc_extra.c: extra2strar(265)". it increases bytes.
Thanks.
29.09.2015 00:31 tarihinde Daniel-Constantin Mierla-6 [via SIP Router] yazdı:
The free size for private memory/pkg is getting low.
Set in kamailio.cfg:
memlog=1 mem_summary=8
Be sure that debug parameter is at least 1.
Restart kamailio and run the test again. When you get out of memory, stop kamailio (e.g., using: killall kamailio).
Look inside syslog file for the messages printed at the end. For each kamailio process, there should be a pkg summary -- messages can be mixed, so you can send all of them
To have lower number of process (which will probably result in faster consuming of memory), you can set children=2.
Cheers, Daniel
On 28/09/15 17:31, ycaner wrote:
{ entry: 1 pid: 12039 rank: 1 used: 13425600 free: 148336 real_used: 33406096 total_size: 33554432 total_frags: 20 }
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] </user/SendEmail.jtp?type=node&node=141889&i=0> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141889....
To unsubscribe from out of memory Error, click here. NAML http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
*kamailio_mem_dump_1.txt* (1M) Download Attachment http://sip-router.1086192.n5.nabble.com/attachment/141893/1/kamailio_mem_dump_1.txt
View this message in context: Re: out of memory Error http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141893.html Sent from the Users mailing list archive http://sip-router.1086192.n5.nabble.com/Users-f3.html at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello Daniel; i got summary on "kamailio -E -m 256 -M 8". as you said i did children 2. after 3000 calls i get this errors.
in additon , i saw some logs about loops some packets. Thanks
0(11969) NOTICE: <core> [main.c:555]: cleanup(): Memory still-in-use summary (pkg): 0(11969) NOTICE: fm_status: summarizing all alloc'ed. fragments: 0(11969) NOTICE: fm_status: count= 1 size= 56 bytes from textops: textops.c: hname_fixup(2208) 0(11969) NOTICE: fm_status: count= 1 size= 128 bytes from <core>: mod_fix.c: fixup_pvar_all(270) 0(11969) NOTICE: fm_status: count= 1 size= 128 bytes from <core>: switch.c: mk_switch_cond_table(43) 0(11969) NOTICE: fm_status: count= 1 size= 232 bytes from <core>: parser/msg_parser.c: get_hdr_field(116) 0(11969) NOTICE: fm_status: count= 1 size= 64 bytes from <core>: parser/msg_parser.c: parse_headers(326) 0(11969) NOTICE: fm_status: count= 1 size= 56 bytes from acc: acc_mod.c: acc_register_engine(844) 0(11969) NOTICE: fm_status: count= 19 size= 2128 bytes from acc: acc_extra.c: parse_acc_extra(127) 0(11969) NOTICE: fm_status: count= 1 size= 112 bytes from misc_radius: extra.c: parse_extra_str(83) 0(11969) NOTICE: fm_status: count= 2 size= 32 bytes from <core>: select.c: register_select_table(448) 0(11969) NOTICE: fm_status: count= 1 size= 24 bytes from kex: mi_core.c: init_mi_uptime(82) 0(11969) NOTICE: fm_status: count= 1 size= 80 bytes from <core>: socket_info.c: fix_sock_str(419) 0(11969) NOTICE: fm_status: count= 1 size= 16 bytes from <core>: name_alias.h: add_alias(93) 0(11969) NOTICE: fm_status: count= 1 size= 32 bytes from <core>: name_alias.h: add_alias(91) 0(11969) NOTICE: fm_status: count= 1 size= 32208 bytes from <core>: dset.c: init_dst_set(83) 0(11969) NOTICE: fm_status: count= 1 size= 40 bytes from <core>: socket_info.c: fix_hostname(1357) 0(11969) NOTICE: fm_status: count= 1 size= 64 bytes from <core>: route.c: fix_expr(541) 0(11969) NOTICE: fm_status: count= 10 size= 656 bytes from <core>: cfg.y: mk_case_stm(3718) 0(11969) NOTICE: fm_status: count= 1 size= 256 bytes from <core>: switch.c: mk_match_cond_table(94) 0(11969) NOTICE: fm_status: count= 1 size= 168 bytes from <core>: mod_fix.c: fixup_regexp_null(213) 0(11969) NOTICE: fm_status: count= 5 size= 560 bytes from <core>: sr_module.c: fix_param(1211) 0(11969) NOTICE: fm_status: count= 3 size= 232 bytes from <core>: route_struct.c: mk_elem(90) 0(11969) NOTICE: fm_status: count= 1 size= 32 bytes from <core>: socket_info.c: fix_socket_list(1559) 0(11969) NOTICE: fm_status: count= 24 size= 632 bytes from textops: textops.c: fixup_method(2278) 0(11969) NOTICE: fm_status: count= 1 size= 72 bytes from htable: ht_var.c: pv_parse_ht_name(135) 0(11969) NOTICE: fm_status: count= 2 size= 64 bytes from pv: pv_trans.c: tr_parse_string(2120) 0(11969) NOTICE: fm_status: count= 3 size= 152 bytes from pv: pv_trans.c: tr_parse_string(2109) 0(11969) NOTICE: fm_status: count= 2 size= 16 bytes from <core>: re.c: subst_parser(300) 0(11969) NOTICE: fm_status: count= 3 size= 432 bytes from <core>: re.c: subst_parser(290) 0(11969) NOTICE: fm_status: count= 3 size= 192 bytes from <core>: re.c: subst_parser(273) 0(11969) NOTICE: fm_status: count= 3 size= 96 bytes from textops: txt_var.c: tr_txt_parse_re(212) 0(11969) NOTICE: fm_status: count= 9 size= 432 bytes from pv: pv_svar.c: add_var(58) 0(11969) NOTICE: fm_status: count= 1 size= 32 bytes from pv: pv_trans.c: tr_parse_string(2245) 0(11969) NOTICE: fm_status: count= 8 size= 384 bytes from <core>: pvapi.c: tr_new(1542) 0(11969) NOTICE: fm_status: count= 1 size= 128 bytes from <core>: rvalue.c: fix_match_rve(3018) 0(11969) NOTICE: fm_status: count= 9 size= 112 bytes from pv: pv_svar.c: add_var(65) 0(11969) NOTICE: fm_status: count= 48 size= 83328 bytes from <core>: rvalue.c: mk_rval_expr1(2611) 0(11969) NOTICE: fm_status: count= 211 size= 7624 bytes from <core>: pvapi.c: pv_parse_format(1057) 0(11969) NOTICE: fm_status: count= 147 size= 14440 bytes from <core>: sr_module.c: fix_param(1116) 0(11969) NOTICE: fm_status: count= 262 size= 5464 bytes from <core>: rvalue.c: rval_get_str(1252) 0(11969) NOTICE: fm_status: count= 52 size= 90272 bytes from <core>: rvalue.c: mk_rval_expr2(2669) 0(11969) NOTICE: fm_status: count= 54 size= 6496 bytes from xlog: xlog.c: xlog_fixup_helper(449) 0(11969) NOTICE: fm_status: count= 544 size= 136224 bytes from <core>: route_struct.c: mk_action(118) 0(11969) NOTICE: fm_status: count= 252 size= 437472 bytes from <core>: rvalue.c: mk_rval_expr_v(2532) 0(11969) NOTICE: fm_status: count= 87 size= 3704 bytes from <core>: cfg.y: yyparse(2700) 0(11969) NOTICE: fm_status: count= 71 size= 10040 bytes from <core>: pvapi.c: pv_cache_add(272) 0(11969) NOTICE: fm_status: count= 3 size= 168 bytes from <core>: parser/parse_param.c: parse_params2(584) 0(11969) NOTICE: fm_status: count= 18 size= 296 bytes from <core>: rvalue.c: mk_rval_expr_v(2543) 0(11969) NOTICE: fm_status: count= 17 size= 488 bytes from <core>: modparam.c: set_mod_param_regex(119) 0(11969) NOTICE: fm_status: count= 15 size= 1296 bytes from <core>: modparam.c: set_mod_param_regex(108) 0(11969) NOTICE: fm_status: count= 31 size= 25704 bytes from <core>: sr_module.c: sr_cmd_exports_convert(224) 0(11969) NOTICE: fm_status: count= 34 size= 1672 bytes from <core>: sr_module.c: load_module(488) 0(11969) NOTICE: fm_status: count= 2 size= 16 bytes from rtpproxy: rtpproxy.c: child_init(1013) 0(11969) NOTICE: fm_status: count= 1 size= 16 bytes from <core>: socket_info.c: new_sock_info(234) 0(11969) NOTICE: fm_status: count= 1 size= 264 bytes from <core>: socket_info.c: new_sock_info(229) 0(11969) NOTICE: fm_status: count= 1 size= 16 bytes from <core>: cfg.y: yyparse(703) 0(11969) NOTICE: fm_status: count= 1 size= 24 bytes from <core>: cfg.y: yyparse(1717) 0(11969) NOTICE: fm_status: count= 1005 size= 132640 bytes from <core>: cfg.lex: addstr(1410) 0(11969) NOTICE: fm_status: count= 58 size= 904 bytes from <core>: cfg.lex: pp_define(1771) 0(11969) NOTICE: fm_status: count= 1 size= 128 bytes from <core>: str_hash.h: str_hash_alloc(59) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: route.c: init_rlist(146) 0(11969) NOTICE: fm_status: count= 3 size= 48 bytes from <core>: cfg.y: yyparse(1767) 0(11969) NOTICE: fm_status: count= 35 size= 1832 bytes from <core>: route.c: route_add(124) 0(11969) NOTICE: fm_status: count= 57 size= 1184 bytes from xlog: xlog.c: xdbg_fixup_helper(415) 0(11969) NOTICE: fm_status: ----------------------------- 0(11969) NOTICE: <core> [main.c:569]: cleanup(): Memory still-in-use summary (shm): 0(11969) NOTICE: fm_status: summarizing all alloc'ed. fragments: 0(11969) NOTICE: fm_status: count= 1 size= 128 bytes from tmx: tmx_pretran.c: tmx_init_pretran_table(90) 0(11969) NOTICE: fm_status: count= 3 size= 64 bytes from usrloc: udomain.c: build_stat_name(51) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: pt.c: init_pt(110) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: pt.c: init_pt(105) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from dialog: dlg_hash.c: init_dlg_table(269) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from dialog: dlg_hash.c: init_dlg_table(262) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from dialog: dlg_hash.c: init_dlg_table(257) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from domain: domain_mod.c: mod_init(219) 0(11969) NOTICE: fm_status: count= 2 size= 144 bytes from <core>: timer.c: register_timer(1011) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: usr_avp.c: init_avps(90) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: usr_avp.c: init_avps(89) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: mem/shm_mem.c: shm_mem_init_mallocs(179) 0(11969) NOTICE: fm_status: -----------------------------
29.09.2015 09:40 tarihinde Daniel-Constantin Mierla-6 [via SIP Router] yazdı:
Hello,
there are no logs.
You should have followed my suggestions, because mem_summary=15 is printing a lot of other unnecessary log messages. It is better to use mem_summary=8 to get a smaller log. Also, the children is quite high, try with children=2 -- the out of memory should appear sooner.
Also, use -M 8 in order to reduce the time to using all memory.
Cheers, Daniel
On 29/09/15 08:30, ycaner wrote:
Hello Daniel;
First of all , Thanks for reply.This project deserve a big award because of you. you try to give response any question as you can. i hope with my test results help you to make it bigger this project.
Before you reply i set memlog=0 , debug=0 and mem_summary=15 , children 64 ,"SHM_MEMORY=256" , "PKG_MEMORY=32" .i added to results. i dont know how to analyse results but i think the problem is "acc: acc_extra.c: extra2strar(265)". it increases bytes.
Thanks.
29.09.2015 00:31 tarihinde Daniel-Constantin Mierla-6 [via SIP Router] yazdı:
The free size for private memory/pkg is getting low.
Set in kamailio.cfg:
memlog=1
mem_summary=8
Be sure that debug parameter is at least 1.
Restart kamailio and run the test again. When you get out of memory, stop kamailio (e.g., using: killall kamailio).
Look inside syslog file for the messages printed at the end. For each kamailio process, there should be a pkg summary -- messages can be mixed, so you can send all of them
To have lower number of process (which will probably result in faster consuming of memory), you can set children=2.
Cheers, Daniel
On 28/09/15 17:31, ycaner wrote:
{ entry: 1 pid: 12039 rank: 1 used: 13425600 free: 148336 real_used: 33406096 total_size: 33554432 total_frags: 20 }
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141889....
To unsubscribe from out of memory Error, click here . NAML
--
kamailio_mem_dump_1.txt (1M) Download Attachment
View this message in context: Re: out of memory Error Sent from the Users mailing list archive at Nabble.com.
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - http://asipto.com/u/kat
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
[hidden email]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141895....
To unsubscribe from out of memory Error, click here . NAML
--
yasin-imza-2014.jpg (51K) http://sip-router.1086192.n5.nabble.com/attachment/141898/0/yasin-imza-2014.jpg
-- View this message in context: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141898.... Sent from the Users mailing list archive at Nabble.com.
Hello,
so these logs are only from main kamailio process, which doesn't handle sip, so it looks like it has still a lot of pkg.
Is there another group of logs for "fm_status: summarizing all alloc'ed. fragments" but for another PID than 11969?
If not, then do the test again. When you get out memory logs, identify the PID of the process that wrote the log message, then run:
kamcmd cfg.set_now_int core mem_dump_pkg <pid>
Replace <pid> with actual value for PID.
Then send some traffic so the process with PID is doing some work. It should print the summary when it receives the first packet.
Cheers, Daniel
On 29/09/15 10:34, ycaner wrote:
Hello Daniel; i got summary on "kamailio -E -m 256 -M 8". as you said i did children 2. after 3000 calls i get this errors.
in additon , i saw some logs about loops some packets. Thanks
0(11969) NOTICE: <core> [main.c:555]: cleanup(): Memory still-in-use summary (pkg): 0(11969) NOTICE: fm_status: summarizing all alloc'ed. fragments: 0(11969) NOTICE: fm_status: count= 1 size= 56 bytes from textops: textops.c: hname_fixup(2208) 0(11969) NOTICE: fm_status: count= 1 size= 128 bytes from <core>: mod_fix.c: fixup_pvar_all(270) 0(11969) NOTICE: fm_status: count= 1 size= 128 bytes from <core>: switch.c: mk_switch_cond_table(43) 0(11969) NOTICE: fm_status: count= 1 size= 232 bytes from <core>: parser/msg_parser.c: get_hdr_field(116) 0(11969) NOTICE: fm_status: count= 1 size= 64 bytes from <core>: parser/msg_parser.c: parse_headers(326) 0(11969) NOTICE: fm_status: count= 1 size= 56 bytes from acc: acc_mod.c: acc_register_engine(844) 0(11969) NOTICE: fm_status: count= 19 size= 2128 bytes from acc: acc_extra.c: parse_acc_extra(127) 0(11969) NOTICE: fm_status: count= 1 size= 112 bytes from misc_radius: extra.c: parse_extra_str(83) 0(11969) NOTICE: fm_status: count= 2 size= 32 bytes from <core>: select.c: register_select_table(448) 0(11969) NOTICE: fm_status: count= 1 size= 24 bytes from kex: mi_core.c: init_mi_uptime(82) 0(11969) NOTICE: fm_status: count= 1 size= 80 bytes from <core>: socket_info.c: fix_sock_str(419) 0(11969) NOTICE: fm_status: count= 1 size= 16 bytes from <core>: name_alias.h: add_alias(93) 0(11969) NOTICE: fm_status: count= 1 size= 32 bytes from <core>: name_alias.h: add_alias(91) 0(11969) NOTICE: fm_status: count= 1 size= 32208 bytes from <core>: dset.c: init_dst_set(83) 0(11969) NOTICE: fm_status: count= 1 size= 40 bytes from <core>: socket_info.c: fix_hostname(1357) 0(11969) NOTICE: fm_status: count= 1 size= 64 bytes from <core>: route.c: fix_expr(541) 0(11969) NOTICE: fm_status: count= 10 size= 656 bytes from <core>: cfg.y: mk_case_stm(3718) 0(11969) NOTICE: fm_status: count= 1 size= 256 bytes from <core>: switch.c: mk_match_cond_table(94) 0(11969) NOTICE: fm_status: count= 1 size= 168 bytes from <core>: mod_fix.c: fixup_regexp_null(213) 0(11969) NOTICE: fm_status: count= 5 size= 560 bytes from <core>: sr_module.c: fix_param(1211) 0(11969) NOTICE: fm_status: count= 3 size= 232 bytes from <core>: route_struct.c: mk_elem(90) 0(11969) NOTICE: fm_status: count= 1 size= 32 bytes from <core>: socket_info.c: fix_socket_list(1559) 0(11969) NOTICE: fm_status: count= 24 size= 632 bytes from textops: textops.c: fixup_method(2278) 0(11969) NOTICE: fm_status: count= 1 size= 72 bytes from htable: ht_var.c: pv_parse_ht_name(135) 0(11969) NOTICE: fm_status: count= 2 size= 64 bytes from pv: pv_trans.c: tr_parse_string(2120) 0(11969) NOTICE: fm_status: count= 3 size= 152 bytes from pv: pv_trans.c: tr_parse_string(2109) 0(11969) NOTICE: fm_status: count= 2 size= 16 bytes from <core>: re.c: subst_parser(300) 0(11969) NOTICE: fm_status: count= 3 size= 432 bytes from <core>: re.c: subst_parser(290) 0(11969) NOTICE: fm_status: count= 3 size= 192 bytes from <core>: re.c: subst_parser(273) 0(11969) NOTICE: fm_status: count= 3 size= 96 bytes from textops: txt_var.c: tr_txt_parse_re(212) 0(11969) NOTICE: fm_status: count= 9 size= 432 bytes from pv: pv_svar.c: add_var(58) 0(11969) NOTICE: fm_status: count= 1 size= 32 bytes from pv: pv_trans.c: tr_parse_string(2245) 0(11969) NOTICE: fm_status: count= 8 size= 384 bytes from <core>: pvapi.c: tr_new(1542) 0(11969) NOTICE: fm_status: count= 1 size= 128 bytes from <core>: rvalue.c: fix_match_rve(3018) 0(11969) NOTICE: fm_status: count= 9 size= 112 bytes from pv: pv_svar.c: add_var(65) 0(11969) NOTICE: fm_status: count= 48 size= 83328 bytes from <core>: rvalue.c: mk_rval_expr1(2611) 0(11969) NOTICE: fm_status: count= 211 size= 7624 bytes from <core>: pvapi.c: pv_parse_format(1057) 0(11969) NOTICE: fm_status: count= 147 size= 14440 bytes from <core>: sr_module.c: fix_param(1116) 0(11969) NOTICE: fm_status: count= 262 size= 5464 bytes from <core>: rvalue.c: rval_get_str(1252) 0(11969) NOTICE: fm_status: count= 52 size= 90272 bytes from <core>: rvalue.c: mk_rval_expr2(2669) 0(11969) NOTICE: fm_status: count= 54 size= 6496 bytes from xlog: xlog.c: xlog_fixup_helper(449) 0(11969) NOTICE: fm_status: count= 544 size= 136224 bytes from <core>: route_struct.c: mk_action(118) 0(11969) NOTICE: fm_status: count= 252 size= 437472 bytes from <core>: rvalue.c: mk_rval_expr_v(2532) 0(11969) NOTICE: fm_status: count= 87 size= 3704 bytes from <core>: cfg.y: yyparse(2700) 0(11969) NOTICE: fm_status: count= 71 size= 10040 bytes from <core>: pvapi.c: pv_cache_add(272) 0(11969) NOTICE: fm_status: count= 3 size= 168 bytes from <core>: parser/parse_param.c: parse_params2(584) 0(11969) NOTICE: fm_status: count= 18 size= 296 bytes from <core>: rvalue.c: mk_rval_expr_v(2543) 0(11969) NOTICE: fm_status: count= 17 size= 488 bytes from <core>: modparam.c: set_mod_param_regex(119) 0(11969) NOTICE: fm_status: count= 15 size= 1296 bytes from <core>: modparam.c: set_mod_param_regex(108) 0(11969) NOTICE: fm_status: count= 31 size= 25704 bytes from <core>: sr_module.c: sr_cmd_exports_convert(224) 0(11969) NOTICE: fm_status: count= 34 size= 1672 bytes from <core>: sr_module.c: load_module(488) 0(11969) NOTICE: fm_status: count= 2 size= 16 bytes from rtpproxy: rtpproxy.c: child_init(1013) 0(11969) NOTICE: fm_status: count= 1 size= 16 bytes from <core>: socket_info.c: new_sock_info(234) 0(11969) NOTICE: fm_status: count= 1 size= 264 bytes from <core>: socket_info.c: new_sock_info(229) 0(11969) NOTICE: fm_status: count= 1 size= 16 bytes from <core>: cfg.y: yyparse(703) 0(11969) NOTICE: fm_status: count= 1 size= 24 bytes from <core>: cfg.y: yyparse(1717) 0(11969) NOTICE: fm_status: count= 1005 size= 132640 bytes from <core>: cfg.lex: addstr(1410) 0(11969) NOTICE: fm_status: count= 58 size= 904 bytes from <core>: cfg.lex: pp_define(1771) 0(11969) NOTICE: fm_status: count= 1 size= 128 bytes from <core>: str_hash.h: str_hash_alloc(59) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: route.c: init_rlist(146) 0(11969) NOTICE: fm_status: count= 3 size= 48 bytes from <core>: cfg.y: yyparse(1767) 0(11969) NOTICE: fm_status: count= 35 size= 1832 bytes from <core>: route.c: route_add(124) 0(11969) NOTICE: fm_status: count= 57 size= 1184 bytes from xlog: xlog.c: xdbg_fixup_helper(415) 0(11969) NOTICE: fm_status: ----------------------------- 0(11969) NOTICE: <core> [main.c:569]: cleanup(): Memory still-in-use summary (shm): 0(11969) NOTICE: fm_status: summarizing all alloc'ed. fragments: 0(11969) NOTICE: fm_status: count= 1 size= 128 bytes from tmx: tmx_pretran.c: tmx_init_pretran_table(90) 0(11969) NOTICE: fm_status: count= 3 size= 64 bytes from usrloc: udomain.c: build_stat_name(51) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: pt.c: init_pt(110) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: pt.c: init_pt(105) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from dialog: dlg_hash.c: init_dlg_table(269) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from dialog: dlg_hash.c: init_dlg_table(262) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from dialog: dlg_hash.c: init_dlg_table(257) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from domain: domain_mod.c: mod_init(219) 0(11969) NOTICE: fm_status: count= 2 size= 144 bytes from <core>: timer.c: register_timer(1011) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: usr_avp.c: init_avps(90) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: usr_avp.c: init_avps(89) 0(11969) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: mem/shm_mem.c: shm_mem_init_mallocs(179) 0(11969) NOTICE: fm_status: -----------------------------
29.09.2015 09:40 tarihinde Daniel-Constantin Mierla-6 [via SIP Router] yazdı:
Hello,
there are no logs.
You should have followed my suggestions, because mem_summary=15 is printing a lot of other unnecessary log messages. It is better to use mem_summary=8 to get a smaller log. Also, the children is quite high, try with children=2 -- the out of memory should appear sooner.
Also, use -M 8 in order to reduce the time to using all memory.
Cheers, Daniel
On 29/09/15 08:30, ycaner wrote:
Hello Daniel;
First of all , Thanks for reply.This project deserve a big award because of you. you try to give response any question as you can. i hope with my test results help you to make it bigger this project.
Before you reply i set memlog=0 , debug=0 and mem_summary=15 , children 64 ,"SHM_MEMORY=256" , "PKG_MEMORY=32" .i added to results. i dont know how to analyse results but i think the problem is "acc: acc_extra.c: extra2strar(265)". it increases bytes.
Thanks.
29.09.2015 00:31 tarihinde Daniel-Constantin Mierla-6 [via SIP Router] yazdı:
The free size for private memory/pkg is getting low.
Set in kamailio.cfg:
memlog=1 mem_summary=8
Be sure that debug parameter is at least 1.
Restart kamailio and run the test again. When you get out of memory, stop kamailio (e.g., using: killall kamailio).
Look inside syslog file for the messages printed at the end. For each kamailio process, there should be a pkg summary -- messages can be mixed, so you can send all of them
To have lower number of process (which will probably result in faster consuming of memory), you can set children=2.
Cheers, Daniel
On 28/09/15 17:31, ycaner wrote:
{ entry: 1 pid: 12039 rank: 1 used: 13425600 free: 148336 real_used: 33406096 total_size: 33554432 total_frags: 20 }
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] </user/SendEmail.jtp?type=node&node=141889&i=0> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141889....
To unsubscribe from out of memory Error, click here. NAML http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
*kamailio_mem_dump_1.txt* (1M) Download Attachment http://sip-router.1086192.n5.nabble.com/attachment/141893/1/kamailio_mem_dump_1.txt
View this message in context: Re: out of memory Error http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141893.html Sent from the Users mailing list archive http://sip-router.1086192.n5.nabble.com/Users-f3.html at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] </user/SendEmail.jtp?type=node&node=141895&i=0> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - http://asipto.com/u/kat
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] </user/SendEmail.jtp?type=node&node=141895&i=1> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141895....
To unsubscribe from out of memory Error, click here. NAML http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
View this message in context: Re: out of memory Error http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141898.html Sent from the Users mailing list archive http://sip-router.1086192.n5.nabble.com/Users-f3.html at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello;
There is no changes after changin .cfg and ports. here is second summary.
0(15002) NOTICE: <core> [main.c:555]: cleanup(): Memory still-in-use summary (pkg): 0(15002) NOTICE: fm_status: summarizing all alloc'ed. fragments: 0(15002) NOTICE: fm_status: count= 1 size= 56 bytes from textops: textops.c: hname_fixup(2208) 0(15002) NOTICE: fm_status: count= 1 size= 128 bytes from <core>: mod_fix.c: fixup_pvar_all(270) 0(15002) NOTICE: fm_status: count= 1 size= 128 bytes from <core>: switch.c: mk_switch_cond_table(43) 0(15002) NOTICE: fm_status: count= 1 size= 232 bytes from <core>: parser/msg_parser.c: get_hdr_field(116) 0(15002) NOTICE: fm_status: count= 1 size= 64 bytes from <core>: parser/msg_parser.c: parse_headers(326) 0(15002) NOTICE: fm_status: count= 1 size= 56 bytes from acc: acc_mod.c: acc_register_engine(844) 0(15002) NOTICE: fm_status: count= 19 size= 2128 bytes from acc: acc_extra.c: parse_acc_extra(127) 0(15002) NOTICE: fm_status: count= 1 size= 112 bytes from misc_radius: extra.c: parse_extra_str(83) 0(15002) NOTICE: fm_status: count= 2 size= 32 bytes from <core>: select.c: register_select_table(448) 0(15002) NOTICE: fm_status: count= 1 size= 24 bytes from kex: mi_core.c: init_mi_uptime(82) 0(15002) NOTICE: fm_status: count= 1 size= 80 bytes from <core>: socket_info.c: fix_sock_str(419) 0(15002) NOTICE: fm_status: count= 1 size= 16 bytes from <core>: name_alias.h: add_alias(93) 0(15002) NOTICE: fm_status: count= 1 size= 32 bytes from <core>: name_alias.h: add_alias(91) 0(15002) NOTICE: fm_status: count= 1 size= 32208 bytes from <core>: dset.c: init_dst_set(83) 0(15002) NOTICE: fm_status: count= 1 size= 40 bytes from <core>: socket_info.c: fix_hostname(1357) 0(15002) NOTICE: fm_status: count= 1 size= 64 bytes from <core>: route.c: fix_expr(541) 0(15002) NOTICE: fm_status: count= 1 size= 72 bytes from <core>: mod_fix.c: fixup_regexp_null(213) 0(15002) NOTICE: fm_status: count= 10 size= 656 bytes from <core>: cfg.y: mk_case_stm(3718) 0(15002) NOTICE: fm_status: count= 1 size= 256 bytes from <core>: switch.c: mk_match_cond_table(94) 0(15002) NOTICE: fm_status: count= 5 size= 560 bytes from <core>: sr_module.c: fix_param(1211) 0(15002) NOTICE: fm_status: count= 3 size= 232 bytes from <core>: route_struct.c: mk_elem(90) 0(15002) NOTICE: fm_status: count= 1 size= 32 bytes from <core>: socket_info.c: fix_socket_list(1559) 0(15002) NOTICE: fm_status: count= 24 size= 632 bytes from textops: textops.c: fixup_method(2278) 0(15002) NOTICE: fm_status: count= 1 size= 72 bytes from htable: ht_var.c: pv_parse_ht_name(135) 0(15002) NOTICE: fm_status: count= 2 size= 64 bytes from pv: pv_trans.c: tr_parse_string(2120) 0(15002) NOTICE: fm_status: count= 3 size= 152 bytes from pv: pv_trans.c: tr_parse_string(2109) 0(15002) NOTICE: fm_status: count= 2 size= 16 bytes from <core>: re.c: subst_parser(300) 0(15002) NOTICE: fm_status: count= 3 size= 432 bytes from <core>: re.c: subst_parser(290) 0(15002) NOTICE: fm_status: count= 3 size= 192 bytes from <core>: re.c: subst_parser(273) 0(15002) NOTICE: fm_status: count= 3 size= 96 bytes from textops: txt_var.c: tr_txt_parse_re(212) 0(15002) NOTICE: fm_status: count= 147 size= 14392 bytes from <core>: sr_module.c: fix_param(1116) 0(15002) NOTICE: fm_status: count= 9 size= 432 bytes from pv: pv_svar.c: add_var(58) 0(15002) NOTICE: fm_status: count= 1 size= 32 bytes from pv: pv_trans.c: tr_parse_string(2245) 0(15002) NOTICE: fm_status: count= 8 size= 384 bytes from <core>: pvapi.c: tr_new(1542) 0(15002) NOTICE: fm_status: count= 9 size= 112 bytes from pv: pv_svar.c: add_var(65) 0(15002) NOTICE: fm_status: count= 1 size= 128 bytes from <core>: rvalue.c: fix_match_rve(3018) 0(15002) NOTICE: fm_status: count= 48 size= 83328 bytes from <core>: rvalue.c: mk_rval_expr1(2611) 0(15002) NOTICE: fm_status: count= 213 size= 7688 bytes from <core>: pvapi.c: pv_parse_format(1057) 0(15002) NOTICE: fm_status: count= 262 size= 5472 bytes from <core>: rvalue.c: rval_get_str(1252) 0(15002) NOTICE: fm_status: count= 52 size= 90272 bytes from <core>: rvalue.c: mk_rval_expr2(2669) 0(15002) NOTICE: fm_status: count= 54 size= 6504 bytes from xlog: xlog.c: xlog_fixup_helper(449) 0(15002) NOTICE: fm_status: count= 544 size= 136208 bytes from <core>: route_struct.c: mk_action(118) 0(15002) NOTICE: fm_status: count= 252 size= 437472 bytes from <core>: rvalue.c: mk_rval_expr_v(2532) 0(15002) NOTICE: fm_status: count= 87 size= 3704 bytes from <core>: cfg.y: yyparse(2700) 0(15002) NOTICE: fm_status: count= 71 size= 10024 bytes from <core>: pvapi.c: pv_cache_add(272) 0(15002) NOTICE: fm_status: count= 3 size= 168 bytes from <core>: parser/parse_param.c: parse_params2(584) 0(15002) NOTICE: fm_status: count= 18 size= 296 bytes from <core>: rvalue.c: mk_rval_expr_v(2543) 0(15002) NOTICE: fm_status: count= 17 size= 488 bytes from <core>: modparam.c: set_mod_param_regex(119) 0(15002) NOTICE: fm_status: count= 15 size= 1296 bytes from <core>: modparam.c: set_mod_param_regex(108) 0(15002) NOTICE: fm_status: count= 31 size= 25704 bytes from <core>: sr_module.c: sr_cmd_exports_convert(224) 0(15002) NOTICE: fm_status: count= 34 size= 1672 bytes from <core>: sr_module.c: load_module(488) 0(15002) NOTICE: fm_status: count= 2 size= 16 bytes from rtpproxy: rtpproxy.c: child_init(1013) 0(15002) NOTICE: fm_status: count= 1 size= 16 bytes from <core>: socket_info.c: new_sock_info(234) 0(15002) NOTICE: fm_status: count= 1 size= 264 bytes from <core>: socket_info.c: new_sock_info(229) 0(15002) NOTICE: fm_status: count= 1 size= 16 bytes from <core>: cfg.y: yyparse(703) 0(15002) NOTICE: fm_status: count= 1 size= 24 bytes from <core>: cfg.y: yyparse(1717) 0(15002) NOTICE: fm_status: count= 1005 size= 132640 bytes from <core>: cfg.lex: addstr(1410) 0(15002) NOTICE: fm_status: count= 58 size= 904 bytes from <core>: cfg.lex: pp_define(1771) 0(15002) NOTICE: fm_status: count= 1 size= 128 bytes from <core>: str_hash.h: str_hash_alloc(59) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: route.c: init_rlist(146) 0(15002) NOTICE: fm_status: count= 3 size= 48 bytes from <core>: cfg.y: yyparse(1767) 0(15002) NOTICE: fm_status: count= 35 size= 1832 bytes from <core>: route.c: route_add(124) 0(15002) NOTICE: fm_status: count= 57 size= 1184 bytes from xlog: xlog.c: xdbg_fixup_helper(415) 0(15002) NOTICE: fm_status: ----------------------------- 0(15002) NOTICE: <core> [main.c:569]: cleanup(): Memory still-in-use summary (shm): 0(15002) NOTICE: fm_status: summarizing all alloc'ed. fragments: 0(15002) NOTICE: fm_status: count= 1 size= 128 bytes from tmx: tmx_pretran.c: tmx_init_pretran_table(90) 0(15002) NOTICE: fm_status: count= 3 size= 64 bytes from usrloc: udomain.c: build_stat_name(51) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: pt.c: init_pt(110) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: pt.c: init_pt(105) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from dialog: dlg_hash.c: init_dlg_table(269) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from dialog: dlg_hash.c: init_dlg_table(262) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from dialog: dlg_hash.c: init_dlg_table(257) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from domain: domain_mod.c: mod_init(219) 0(15002) NOTICE: fm_status: count= 2 size= 144 bytes from <core>: timer.c: register_timer(1011) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: usr_avp.c: init_avps(90) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: usr_avp.c: init_avps(89) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: mem/shm_mem.c: shm_mem_init_mallocs(179) 0(15002) NOTICE: fm_status: -----------------------------
29.09.2015 09:40 tarihinde Daniel-Constantin Mierla-6 [via SIP Router] yazdı:
Hello,
there are no logs.
You should have followed my suggestions, because mem_summary=15 is printing a lot of other unnecessary log messages. It is better to use mem_summary=8 to get a smaller log. Also, the children is quite high, try with children=2 -- the out of memory should appear sooner.
Also, use -M 8 in order to reduce the time to using all memory.
Cheers, Daniel
On 29/09/15 08:30, ycaner wrote:
Hello Daniel;
First of all , Thanks for reply.This project deserve a big award because of you. you try to give response any question as you can. i hope with my test results help you to make it bigger this project.
Before you reply i set memlog=0 , debug=0 and mem_summary=15 , children 64 ,"SHM_MEMORY=256" , "PKG_MEMORY=32" .i added to results. i dont know how to analyse results but i think the problem is "acc: acc_extra.c: extra2strar(265)". it increases bytes.
Thanks.
29.09.2015 00:31 tarihinde Daniel-Constantin Mierla-6 [via SIP Router] yazdı:
The free size for private memory/pkg is getting low.
Set in kamailio.cfg:
memlog=1
mem_summary=8
Be sure that debug parameter is at least 1.
Restart kamailio and run the test again. When you get out of memory, stop kamailio (e.g., using: killall kamailio).
Look inside syslog file for the messages printed at the end. For each kamailio process, there should be a pkg summary -- messages can be mixed, so you can send all of them
To have lower number of process (which will probably result in faster consuming of memory), you can set children=2.
Cheers, Daniel
On 28/09/15 17:31, ycaner wrote:
{ entry: 1 pid: 12039 rank: 1 used: 13425600 free: 148336 real_used: 33406096 total_size: 33554432 total_frags: 20 }
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141889....
To unsubscribe from out of memory Error, click here . NAML
--
kamailio_mem_dump_1.txt (1M) Download Attachment
View this message in context: Re: out of memory Error Sent from the Users mailing list archive at Nabble.com.
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - http://asipto.com/u/kat
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
[hidden email]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141895....
To unsubscribe from out of memory Error, click here . NAML
--
yasin-imza-2014.jpg (51K) http://sip-router.1086192.n5.nabble.com/attachment/141900/0/yasin-imza-2014.jpg
-- View this message in context: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141900.... Sent from the Users mailing list archive at Nabble.com.
Hello,
still look like only mem summary from main process, which is not relevant for a worker process.
Use the suggestions from my previous email to get the pkg mem summary for a sip worker process.
Cheers, Daniel
On 29/09/15 10:52, ycaner wrote:
Hello;
There is no changes after changin .cfg and ports. here is second summary.
0(15002) NOTICE: <core> [main.c:555]: cleanup(): Memory still-in-use summary (pkg): 0(15002) NOTICE: fm_status: summarizing all alloc'ed. fragments: 0(15002) NOTICE: fm_status: count= 1 size= 56 bytes from textops: textops.c: hname_fixup(2208) 0(15002) NOTICE: fm_status: count= 1 size= 128 bytes from <core>: mod_fix.c: fixup_pvar_all(270) 0(15002) NOTICE: fm_status: count= 1 size= 128 bytes from <core>: switch.c: mk_switch_cond_table(43) 0(15002) NOTICE: fm_status: count= 1 size= 232 bytes from <core>: parser/msg_parser.c: get_hdr_field(116) 0(15002) NOTICE: fm_status: count= 1 size= 64 bytes from <core>: parser/msg_parser.c: parse_headers(326) 0(15002) NOTICE: fm_status: count= 1 size= 56 bytes from acc: acc_mod.c: acc_register_engine(844) 0(15002) NOTICE: fm_status: count= 19 size= 2128 bytes from acc: acc_extra.c: parse_acc_extra(127) 0(15002) NOTICE: fm_status: count= 1 size= 112 bytes from misc_radius: extra.c: parse_extra_str(83) 0(15002) NOTICE: fm_status: count= 2 size= 32 bytes from <core>: select.c: register_select_table(448) 0(15002) NOTICE: fm_status: count= 1 size= 24 bytes from kex: mi_core.c: init_mi_uptime(82) 0(15002) NOTICE: fm_status: count= 1 size= 80 bytes from <core>: socket_info.c: fix_sock_str(419) 0(15002) NOTICE: fm_status: count= 1 size= 16 bytes from <core>: name_alias.h: add_alias(93) 0(15002) NOTICE: fm_status: count= 1 size= 32 bytes from <core>: name_alias.h: add_alias(91) 0(15002) NOTICE: fm_status: count= 1 size= 32208 bytes from <core>: dset.c: init_dst_set(83) 0(15002) NOTICE: fm_status: count= 1 size= 40 bytes from <core>: socket_info.c: fix_hostname(1357) 0(15002) NOTICE: fm_status: count= 1 size= 64 bytes from <core>: route.c: fix_expr(541) 0(15002) NOTICE: fm_status: count= 1 size= 72 bytes from <core>: mod_fix.c: fixup_regexp_null(213) 0(15002) NOTICE: fm_status: count= 10 size= 656 bytes from <core>: cfg.y: mk_case_stm(3718) 0(15002) NOTICE: fm_status: count= 1 size= 256 bytes from <core>: switch.c: mk_match_cond_table(94) 0(15002) NOTICE: fm_status: count= 5 size= 560 bytes from <core>: sr_module.c: fix_param(1211) 0(15002) NOTICE: fm_status: count= 3 size= 232 bytes from <core>: route_struct.c: mk_elem(90) 0(15002) NOTICE: fm_status: count= 1 size= 32 bytes from <core>: socket_info.c: fix_socket_list(1559) 0(15002) NOTICE: fm_status: count= 24 size= 632 bytes from textops: textops.c: fixup_method(2278) 0(15002) NOTICE: fm_status: count= 1 size= 72 bytes from htable: ht_var.c: pv_parse_ht_name(135) 0(15002) NOTICE: fm_status: count= 2 size= 64 bytes from pv: pv_trans.c: tr_parse_string(2120) 0(15002) NOTICE: fm_status: count= 3 size= 152 bytes from pv: pv_trans.c: tr_parse_string(2109) 0(15002) NOTICE: fm_status: count= 2 size= 16 bytes from <core>: re.c: subst_parser(300) 0(15002) NOTICE: fm_status: count= 3 size= 432 bytes from <core>: re.c: subst_parser(290) 0(15002) NOTICE: fm_status: count= 3 size= 192 bytes from <core>: re.c: subst_parser(273) 0(15002) NOTICE: fm_status: count= 3 size= 96 bytes from textops: txt_var.c: tr_txt_parse_re(212) 0(15002) NOTICE: fm_status: count= 147 size= 14392 bytes from <core>: sr_module.c: fix_param(1116) 0(15002) NOTICE: fm_status: count= 9 size= 432 bytes from pv: pv_svar.c: add_var(58) 0(15002) NOTICE: fm_status: count= 1 size= 32 bytes from pv: pv_trans.c: tr_parse_string(2245) 0(15002) NOTICE: fm_status: count= 8 size= 384 bytes from <core>: pvapi.c: tr_new(1542) 0(15002) NOTICE: fm_status: count= 9 size= 112 bytes from pv: pv_svar.c: add_var(65) 0(15002) NOTICE: fm_status: count= 1 size= 128 bytes from <core>: rvalue.c: fix_match_rve(3018) 0(15002) NOTICE: fm_status: count= 48 size= 83328 bytes from <core>: rvalue.c: mk_rval_expr1(2611) 0(15002) NOTICE: fm_status: count= 213 size= 7688 bytes from <core>: pvapi.c: pv_parse_format(1057) 0(15002) NOTICE: fm_status: count= 262 size= 5472 bytes from <core>: rvalue.c: rval_get_str(1252) 0(15002) NOTICE: fm_status: count= 52 size= 90272 bytes from <core>: rvalue.c: mk_rval_expr2(2669) 0(15002) NOTICE: fm_status: count= 54 size= 6504 bytes from xlog: xlog.c: xlog_fixup_helper(449) 0(15002) NOTICE: fm_status: count= 544 size= 136208 bytes from <core>: route_struct.c: mk_action(118) 0(15002) NOTICE: fm_status: count= 252 size= 437472 bytes from <core>: rvalue.c: mk_rval_expr_v(2532) 0(15002) NOTICE: fm_status: count= 87 size= 3704 bytes from <core>: cfg.y: yyparse(2700) 0(15002) NOTICE: fm_status: count= 71 size= 10024 bytes from <core>: pvapi.c: pv_cache_add(272) 0(15002) NOTICE: fm_status: count= 3 size= 168 bytes from <core>: parser/parse_param.c: parse_params2(584) 0(15002) NOTICE: fm_status: count= 18 size= 296 bytes from <core>: rvalue.c: mk_rval_expr_v(2543) 0(15002) NOTICE: fm_status: count= 17 size= 488 bytes from <core>: modparam.c: set_mod_param_regex(119) 0(15002) NOTICE: fm_status: count= 15 size= 1296 bytes from <core>: modparam.c: set_mod_param_regex(108) 0(15002) NOTICE: fm_status: count= 31 size= 25704 bytes from <core>: sr_module.c: sr_cmd_exports_convert(224) 0(15002) NOTICE: fm_status: count= 34 size= 1672 bytes from <core>: sr_module.c: load_module(488) 0(15002) NOTICE: fm_status: count= 2 size= 16 bytes from rtpproxy: rtpproxy.c: child_init(1013) 0(15002) NOTICE: fm_status: count= 1 size= 16 bytes from <core>: socket_info.c: new_sock_info(234) 0(15002) NOTICE: fm_status: count= 1 size= 264 bytes from <core>: socket_info.c: new_sock_info(229) 0(15002) NOTICE: fm_status: count= 1 size= 16 bytes from <core>: cfg.y: yyparse(703) 0(15002) NOTICE: fm_status: count= 1 size= 24 bytes from <core>: cfg.y: yyparse(1717) 0(15002) NOTICE: fm_status: count= 1005 size= 132640 bytes from <core>: cfg.lex: addstr(1410) 0(15002) NOTICE: fm_status: count= 58 size= 904 bytes from <core>: cfg.lex: pp_define(1771) 0(15002) NOTICE: fm_status: count= 1 size= 128 bytes from <core>: str_hash.h: str_hash_alloc(59) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: route.c: init_rlist(146) 0(15002) NOTICE: fm_status: count= 3 size= 48 bytes from <core>: cfg.y: yyparse(1767) 0(15002) NOTICE: fm_status: count= 35 size= 1832 bytes from <core>: route.c: route_add(124) 0(15002) NOTICE: fm_status: count= 57 size= 1184 bytes from xlog: xlog.c: xdbg_fixup_helper(415) 0(15002) NOTICE: fm_status: ----------------------------- 0(15002) NOTICE: <core> [main.c:569]: cleanup(): Memory still-in-use summary (shm): 0(15002) NOTICE: fm_status: summarizing all alloc'ed. fragments: 0(15002) NOTICE: fm_status: count= 1 size= 128 bytes from tmx: tmx_pretran.c: tmx_init_pretran_table(90) 0(15002) NOTICE: fm_status: count= 3 size= 64 bytes from usrloc: udomain.c: build_stat_name(51) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: pt.c: init_pt(110) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: pt.c: init_pt(105) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from dialog: dlg_hash.c: init_dlg_table(269) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from dialog: dlg_hash.c: init_dlg_table(262) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from dialog: dlg_hash.c: init_dlg_table(257) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from domain: domain_mod.c: mod_init(219) 0(15002) NOTICE: fm_status: count= 2 size= 144 bytes from <core>: timer.c: register_timer(1011) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: usr_avp.c: init_avps(90) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: usr_avp.c: init_avps(89) 0(15002) NOTICE: fm_status: count= 1 size= 8 bytes from <core>: mem/shm_mem.c: shm_mem_init_mallocs(179) 0(15002) NOTICE: fm_status: -----------------------------
29.09.2015 09:40 tarihinde Daniel-Constantin Mierla-6 [via SIP Router] yazdı:
Hello,
there are no logs.
You should have followed my suggestions, because mem_summary=15 is printing a lot of other unnecessary log messages. It is better to use mem_summary=8 to get a smaller log. Also, the children is quite high, try with children=2 -- the out of memory should appear sooner.
Also, use -M 8 in order to reduce the time to using all memory.
Cheers, Daniel
On 29/09/15 08:30, ycaner wrote:
Hello Daniel;
First of all , Thanks for reply.This project deserve a big award because of you. you try to give response any question as you can. i hope with my test results help you to make it bigger this project.
Before you reply i set memlog=0 , debug=0 and mem_summary=15 , children 64 ,"SHM_MEMORY=256" , "PKG_MEMORY=32" .i added to results. i dont know how to analyse results but i think the problem is "acc: acc_extra.c: extra2strar(265)". it increases bytes.
Thanks.
29.09.2015 00:31 tarihinde Daniel-Constantin Mierla-6 [via SIP Router] yazdı:
The free size for private memory/pkg is getting low.
Set in kamailio.cfg:
memlog=1 mem_summary=8
Be sure that debug parameter is at least 1.
Restart kamailio and run the test again. When you get out of memory, stop kamailio (e.g., using: killall kamailio).
Look inside syslog file for the messages printed at the end. For each kamailio process, there should be a pkg summary -- messages can be mixed, so you can send all of them
To have lower number of process (which will probably result in faster consuming of memory), you can set children=2.
Cheers, Daniel
On 28/09/15 17:31, ycaner wrote:
{ entry: 1 pid: 12039 rank: 1 used: 13425600 free: 148336 real_used: 33406096 total_size: 33554432 total_frags: 20 }
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] </user/SendEmail.jtp?type=node&node=141889&i=0> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141889....
To unsubscribe from out of memory Error, click here. NAML http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
*kamailio_mem_dump_1.txt* (1M) Download Attachment http://sip-router.1086192.n5.nabble.com/attachment/141893/1/kamailio_mem_dump_1.txt
View this message in context: Re: out of memory Error http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141893.html Sent from the Users mailing list archive http://sip-router.1086192.n5.nabble.com/Users-f3.html at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] </user/SendEmail.jtp?type=node&node=141895&i=0> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - http://asipto.com/u/kat
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] </user/SendEmail.jtp?type=node&node=141895&i=1> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141895....
To unsubscribe from out of memory Error, click here. NAML http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
View this message in context: Re: out of memory Error http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141900.html Sent from the Users mailing list archive http://sip-router.1086192.n5.nabble.com/Users-f3.html at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello Daniel;
i got logs from kamailio. there is 10 pid about kamailio and don't give dumps for all kamailio pids expects somes. Here is results;
root 18323 0.0 0.0 454628 12968 ? S 12:12 0:00 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -m 256 -M 8 -u root -g root root 18333 0.0 0.1 454628 16632 ? S 12:12 0:03 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -m 256 -M 8 -u root -g root root 18334 0.0 0.1 454628 16504 ? S 12:12 0:03 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -m 256 -M 8 -u root -g root root 18335 0.0 0.0 454628 7132 ? S 12:12 0:00 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -m 256 -M 8 -u root -g root root 18337 0.0 0.0 454628 10232 ? S 12:12 0:02 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -m 256 -M 8 -u root -g root root 18339 0.0 0.0 454632 5332 ? S 12:12 0:00 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -m 256 -M 8 -u root -g root root 18341 0.0 0.0 454628 6012 ? S 12:12 0:00 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -m 256 -M 8 -u root -g root root 18344 0.0 0.0 454628 5776 ? S 12:12 0:00 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -m 256 -M 8 -u root -g root root 18346 0.0 0.0 454628 6716 ? S 12:12 0:00 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -m 256 -M 8 -u root -g root root 18348 0.0 0.0 454628 5680 ? S 12:12 0:00 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -m 256 -M 8 -u root -g root
Sep 29 13:59:21 localhost /usr/local/sbin/kamailio[18334]: ALERT: <core> [pt.c:531]: mem_dump_pkg_cb(): Memory status (pkg) of process 18334: Sep 29 13:59:21 localhost /usr/local/sbin/kamailio[18334]: ALERT: fm_status: fm_status (0x7f4b67aa8010): Sep 29 13:59:21 localhost /usr/local/sbin/kamailio[18334]: ALERT: fm_status: heap size= 8388608 Sep 29 13:59:21 localhost /usr/local/sbin/kamailio[18334]: ALERT: fm_status: used= 3949448, used+overhead=8384064, free=4544 Sep 29 13:59:21 localhost /usr/local/sbin/kamailio[18334]: ALERT: fm_status: max used (+overhead)= 8388608 Sep 29 13:59:21 localhost /usr/local/sbin/kamailio[18334]: ALERT: fm_status: dumping free list: Sep 29 13:59:21 localhost /usr/local/sbin/kamailio[18334]: ALERT: fm_status: hash = 6 fragments no.: 2, unused: 0#012#011#011 bucket size: 48 - 48 (first 48) Sep 29 13:59:21 localhost /usr/local/sbin/kamailio[18334]: ALERT: fm_status: hash = 7 fragments no.: 1, unused: 0#012#011#011 bucket size: 56 - 56 (first 56) Sep 29 13:59:21 localhost /usr/local/sbin/kamailio[18334]: ALERT: fm_status: hash = 8 fragments no.: 15, unused: 0#012#011#011 bucket size: 64 - 64 (first 64) Sep 29 13:59:21 localhost /usr/local/sbin/kamailio[18334]: ALERT: fm_status: hash = 14 fragments no.: 1, unused: 0#012#011#011 bucket size: 112 - 112 (first 112) Sep 29 13:59:21 localhost /usr/local/sbin/kamailio[18334]: ALERT: fm_status: hash = 29 fragments no.: 1, unused: 0#012#011#011 bucket size: 232 - 232 (first 232) Sep 29 13:59:21 localhost /usr/local/sbin/kamailio[18334]: ALERT: fm_status: hash = 59 fragments no.: 1, unused: 0#012#011#011 bucket size: 472 - 472 (first 472) Sep 29 13:59:21 localhost /usr/local/sbin/kamailio[18334]: ALERT: fm_status: hash = 106 fragments no.: 1, unused: 0#012#011#011 bucket size: 848 - 848 (first 848) Sep 29 13:59:21 localhost /usr/local/sbin/kamailio[18334]: ALERT: fm_status: hash = 221 fragments no.: 1, unused: 0#012#011#011 bucket size: 1768 - 1768 (first 1768) Sep 29 13:59:21 localhost /usr/local/sbin/kamailio[18334]: ALERT: fm_status: TOTAL: 23 free fragments = 4544 free bytes Sep 29 13:59:21 localhost /usr/local/sbin/kamailio[18334]: ALERT: fm_status: -----------------------------
Sep 29 13:59:23 localhost /usr/local/sbin/kamailio[18335]: ALERT: <core> [pt.c:531]: mem_dump_pkg_cb(): Memory status (pkg) of process 18335: Sep 29 13:59:23 localhost /usr/local/sbin/kamailio[18335]: ALERT: fm_status: fm_status (0x7f4b67aa8010): Sep 29 13:59:23 localhost /usr/local/sbin/kamailio[18335]: ALERT: fm_status: heap size= 8388608 Sep 29 13:59:23 localhost /usr/local/sbin/kamailio[18335]: ALERT: fm_status: used= 1170144, used+overhead=1413944, free=6974664 Sep 29 13:59:23 localhost /usr/local/sbin/kamailio[18335]: ALERT: fm_status: max used (+overhead)= 1425984 Sep 29 13:59:23 localhost /usr/local/sbin/kamailio[18335]: ALERT: fm_status: dumping free list: Sep 29 13:59:23 localhost /usr/local/sbin/kamailio[18335]: ALERT: fm_status: hash = 1 fragments no.: 33, unused: 0#012#011#011 bucket size: 8 - 8 (first 8) Sep 29 13:59:23 localhost /usr/local/sbin/kamailio[18335]: ALERT: fm_status: hash = 2 fragments no.: 3, unused: 0#012#011#011 bucket size: 16 - 16 (first 16) Sep 29 13:59:23 localhost /usr/local/sbin/kamailio[18335]: ALERT: fm_status: hash = 15 fragments no.: 1, unused: 0#012#011#011 bucket size: 120 - 120 (first 120) Sep 29 13:59:23 localhost /usr/local/sbin/kamailio[18335]: ALERT: fm_status: hash = 55 fragments no.: 1, unused: 0#012#011#011 bucket size: 440 - 440 (first 440) Sep 29 13:59:23 localhost /usr/local/sbin/kamailio[18335]: ALERT: fm_status: hash = 217 fragments no.: 12, unused: 0#012#011#011 bucket size: 1736 - 1736 (first 1736) Sep 29 13:59:23 localhost /usr/local/sbin/kamailio[18335]: ALERT: fm_status: hash = 2057 fragments no.: 1, unused: 0#012#011#011 bucket size: 4194304 - 8388608 (first 6952960) Sep 29 13:59:23 localhost /usr/local/sbin/kamailio[18335]: ALERT: fm_status: TOTAL: 51 free fragments = 6974664 free bytes Sep 29 13:59:23 localhost /usr/local/sbin/kamailio[18335]: ALERT: fm_status: -----------------------------
Sep 29 13:59:25 localhost /usr/local/sbin/kamailio[18337]: ALERT: <core> [pt.c:531]: mem_dump_pkg_cb(): Memory status (pkg) of process 18337: Sep 29 13:59:25 localhost /usr/local/sbin/kamailio[18337]: ALERT: fm_status: fm_status (0x7f4b67aa8010): Sep 29 13:59:25 localhost /usr/local/sbin/kamailio[18337]: ALERT: fm_status: heap size= 8388608 Sep 29 13:59:25 localhost /usr/local/sbin/kamailio[18337]: ALERT: fm_status: used= 1170144, used+overhead=1413944, free=6974664 Sep 29 13:59:25 localhost /usr/local/sbin/kamailio[18337]: ALERT: fm_status: max used (+overhead)= 1425984 Sep 29 13:59:25 localhost /usr/local/sbin/kamailio[18337]: ALERT: fm_status: dumping free list: Sep 29 13:59:25 localhost /usr/local/sbin/kamailio[18337]: ALERT: fm_status: hash = 1 fragments no.: 33, unused: 0#012#011#011 bucket size: 8 - 8 (first 8) Sep 29 13:59:25 localhost /usr/local/sbin/kamailio[18337]: ALERT: fm_status: hash = 2 fragments no.: 3, unused: 0#012#011#011 bucket size: 16 - 16 (first 16) Sep 29 13:59:25 localhost /usr/local/sbin/kamailio[18337]: ALERT: fm_status: hash = 15 fragments no.: 1, unused: 0#012#011#011 bucket size: 120 - 120 (first 120) Sep 29 13:59:25 localhost /usr/local/sbin/kamailio[18337]: ALERT: fm_status: hash = 55 fragments no.: 1, unused: 0#012#011#011 bucket size: 440 - 440 (first 440) Sep 29 13:59:25 localhost /usr/local/sbin/kamailio[18337]: ALERT: fm_status: hash = 217 fragments no.: 12, unused: 0#012#011#011 bucket size: 1736 - 1736 (first 1736) Sep 29 13:59:25 localhost /usr/local/sbin/kamailio[18337]: ALERT: fm_status: hash = 2057 fragments no.: 1, unused: 0#012#011#011 bucket size: 4194304 - 8388608 (first 6952960) Sep 29 13:59:25 localhost /usr/local/sbin/kamailio[18337]: ALERT: fm_status: TOTAL: 51 free fragments = 6974664 free bytes Sep 29 13:59:25 localhost /usr/local/sbin/kamailio[18337]: ALERT: fm_status: -----------------------------
Sep 29 13:59:30 localhost /usr/local/sbin/kamailio[18341]: ALERT: <core> [pt.c:531]: mem_dump_pkg_cb(): Memory status (pkg) of process 18341: Sep 29 13:59:30 localhost /usr/local/sbin/kamailio[18341]: ALERT: fm_status: fm_status (0x7f4b67aa8010): Sep 29 13:59:30 localhost /usr/local/sbin/kamailio[18341]: ALERT: fm_status: heap size= 8388608 Sep 29 13:59:30 localhost /usr/local/sbin/kamailio[18341]: ALERT: fm_status: used= 1168208, used+overhead=1412176, free=6976432 Sep 29 13:59:30 localhost /usr/local/sbin/kamailio[18341]: ALERT: fm_status: max used (+overhead)= 1425984 Sep 29 13:59:30 localhost /usr/local/sbin/kamailio[18341]: ALERT: fm_status: dumping free list: Sep 29 13:59:30 localhost /usr/local/sbin/kamailio[18341]: ALERT: fm_status: hash = 1 fragments no.: 33, unused: 0#012#011#011 bucket size: 8 - 8 (first 8) Sep 29 13:59:30 localhost /usr/local/sbin/kamailio[18341]: ALERT: fm_status: hash = 2 fragments no.: 3, unused: 0#012#011#011 bucket size: 16 - 16 (first 16) Sep 29 13:59:30 localhost /usr/local/sbin/kamailio[18341]: ALERT: fm_status: hash = 15 fragments no.: 1, unused: 0#012#011#011 bucket size: 120 - 120 (first 120) Sep 29 13:59:30 localhost /usr/local/sbin/kamailio[18341]: ALERT: fm_status: hash = 33 fragments no.: 1, unused: 0#012#011#011 bucket size: 264 - 264 (first 264) Sep 29 13:59:30 localhost /usr/local/sbin/kamailio[18341]: ALERT: fm_status: hash = 217 fragments no.: 12, unused: 0#012#011#011 bucket size: 1736 - 1736 (first 1736) Sep 29 13:59:30 localhost /usr/local/sbin/kamailio[18341]: ALERT: fm_status: hash = 2057 fragments no.: 1, unused: 0#012#011#011 bucket size: 4194304 - 8388608 (first 6954904) Sep 29 13:59:30 localhost /usr/local/sbin/kamailio[18341]: ALERT: fm_status: TOTAL: 51 free fragments = 6976432 free bytes Sep 29 13:59:30 localhost /usr/local/sbin/kamailio[18341]: ALERT: fm_status: -----------------------------
Sep 29 13:59:33 localhost /usr/local/sbin/kamailio[18344]: ALERT: <core> [pt.c:531]: mem_dump_pkg_cb(): Memory status (pkg) of process 18344: Sep 29 13:59:33 localhost /usr/local/sbin/kamailio[18344]: ALERT: fm_status: fm_status (0x7f4b67aa8010): Sep 29 13:59:33 localhost /usr/local/sbin/kamailio[18344]: ALERT: fm_status: heap size= 8388608 Sep 29 13:59:33 localhost /usr/local/sbin/kamailio[18344]: ALERT: fm_status: used= 1170144, used+overhead=1413944, free=6974664 Sep 29 13:59:33 localhost /usr/local/sbin/kamailio[18344]: ALERT: fm_status: max used (+overhead)= 1425984 Sep 29 13:59:33 localhost /usr/local/sbin/kamailio[18344]: ALERT: fm_status: dumping free list: Sep 29 13:59:33 localhost /usr/local/sbin/kamailio[18344]: ALERT: fm_status: hash = 1 fragments no.: 33, unused: 0#012#011#011 bucket size: 8 - 8 (first 8) Sep 29 13:59:33 localhost /usr/local/sbin/kamailio[18344]: ALERT: fm_status: hash = 2 fragments no.: 3, unused: 0#012#011#011 bucket size: 16 - 16 (first 16) Sep 29 13:59:33 localhost /usr/local/sbin/kamailio[18344]: ALERT: fm_status: hash = 15 fragments no.: 1, unused: 0#012#011#011 bucket size: 120 - 120 (first 120) Sep 29 13:59:33 localhost /usr/local/sbin/kamailio[18344]: ALERT: fm_status: hash = 55 fragments no.: 1, unused: 0#012#011#011 bucket size: 440 - 440 (first 440) Sep 29 13:59:33 localhost /usr/local/sbin/kamailio[18344]: ALERT: fm_status: hash = 217 fragments no.: 12, unused: 0#012#011#011 bucket size: 1736 - 1736 (first 1736) Sep 29 13:59:33 localhost /usr/local/sbin/kamailio[18344]: ALERT: fm_status: hash = 2057 fragments no.: 1, unused: 0#012#011#011 bucket size: 4194304 - 8388608 (first 6952960) Sep 29 13:59:33 localhost /usr/local/sbin/kamailio[18344]: ALERT: fm_status: TOTAL: 51 free fragments = 6974664 free bytes Sep 29 13:59:33 localhost /usr/local/sbin/kamailio[18344]: ALERT: fm_status: ----------------------------- ------------ After kill kamailio gives =>> Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: <core> [main.c:555]: cleanup(): Memory still-in-use summary (pkg): Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: summarizing all alloc'ed. fragments: Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 56 bytes from textops: textops.c: hname_fixup(2208) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 128 bytes from <core>: mod_fix.c: fixup_pvar_all(270) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 128 bytes from <core>: switch.c: mk_switch_cond_table(43) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 232 bytes from <core>: parser/msg_parser.c: get_hdr_field(116) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 64 bytes from <core>: parser/msg_parser.c: parse_headers(326) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 56 bytes from acc: acc_mod.c: acc_register_engine(844) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 19 size= 2128 bytes from acc: acc_extra.c: parse_acc_extra(127) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 112 bytes from misc_radius: extra.c: parse_extra_str(83) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 2 size= 32 bytes from <core>: select.c: register_select_table(448) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 24 bytes from kex: mi_core.c: init_mi_uptime(82) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 80 bytes from <core>: socket_info.c: fix_sock_str(419) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 16 bytes from <core>: name_alias.h: add_alias(93) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 32 bytes from <core>: name_alias.h: add_alias(91) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 32208 bytes from <core>: dset.c: init_dst_set(83) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 40 bytes from <core>: socket_info.c: fix_hostname(1357) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 64 bytes from <core>: route.c: fix_expr(541) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 72 bytes from <core>: mod_fix.c: fixup_regexp_null(213) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 10 size= 656 bytes from <core>: cfg.y: mk_case_stm(3718) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 256 bytes from <core>: switch.c: mk_match_cond_table(94) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 5 size= 560 bytes from <core>: sr_module.c: fix_param(1211) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 3 size= 232 bytes from <core>: route_struct.c: mk_elem(90) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 32 bytes from <core>: socket_info.c: fix_socket_list(1559) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 24 size= 632 bytes from textops: textops.c: fixup_method(2278) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 72 bytes from htable: ht_var.c: pv_parse_ht_name(135) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 2 size= 64 bytes from pv: pv_trans.c: tr_parse_string(2120) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 3 size= 152 bytes from pv: pv_trans.c: tr_parse_string(2109) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 2 size= 16 bytes from <core>: re.c: subst_parser(300) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 3 size= 432 bytes from <core>: re.c: subst_parser(290) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 3 size= 192 bytes from <core>: re.c: subst_parser(273) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 3 size= 96 bytes from textops: txt_var.c: tr_txt_parse_re(212) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 147 size= 14392 bytes from <core>: sr_module.c: fix_param(1116) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 9 size= 432 bytes from pv: pv_svar.c: add_var(58) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 32 bytes from pv: pv_trans.c: tr_parse_string(2245) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 8 size= 384 bytes from <core>: pvapi.c: tr_new(1542) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 9 size= 112 bytes from pv: pv_svar.c: add_var(65) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 128 bytes from <core>: rvalue.c: fix_match_rve(3018) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 48 size= 83328 bytes from <core>: rvalue.c: mk_rval_expr1(2611) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 213 size= 7688 bytes from <core>: pvapi.c: pv_parse_format(1057) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 262 size= 5472 bytes from <core>: rvalue.c: rval_get_str(1252) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 52 size= 90272 bytes from <core>: rvalue.c: mk_rval_expr2(2669) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 54 size= 6504 bytes from xlog: xlog.c: xlog_fixup_helper(449) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 544 size= 136208 bytes from <core>: route_struct.c: mk_action(118) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 252 size= 437472 bytes from <core>: rvalue.c: mk_rval_expr_v(2532) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 87 size= 3704 bytes from <core>: cfg.y: yyparse(2700) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 71 size= 10024 bytes from <core>: pvapi.c: pv_cache_add(272) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 3 size= 168 bytes from <core>: parser/parse_param.c: parse_params2(584) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 18 size= 296 bytes from <core>: rvalue.c: mk_rval_expr_v(2543) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 17 size= 488 bytes from <core>: modparam.c: set_mod_param_regex(119) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 15 size= 1296 bytes from <core>: modparam.c: set_mod_param_regex(108) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 31 size= 25704 bytes from <core>: sr_module.c: sr_cmd_exports_convert(224) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 34 size= 1672 bytes from <core>: sr_module.c: load_module(488) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 2 size= 16 bytes from rtpproxy: rtpproxy.c: child_init(1013) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 16 bytes from <core>: socket_info.c: new_sock_info(234) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 264 bytes from <core>: socket_info.c: new_sock_info(229) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 16 bytes from <core>: cfg.y: yyparse(703) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 24 bytes from <core>: cfg.y: yyparse(1717) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1005 size= 132640 bytes from <core>: cfg.lex: addstr(1410) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 58 size= 904 bytes from <core>: cfg.lex: pp_define(1771) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 128 bytes from <core>: str_hash.h: str_hash_alloc(59) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 8 bytes from <core>: route.c: init_rlist(146) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 3 size= 48 bytes from <core>: cfg.y: yyparse(1767) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 35 size= 1832 bytes from <core>: route.c: route_add(124) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 57 size= 1184 bytes from xlog: xlog.c: xdbg_fixup_helper(415) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: ----------------------------- Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: <core> [main.c:569]: cleanup(): Memory still-in-use summary (shm): Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: summarizing all alloc'ed. fragments: Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 1048 bytes from <core>: sip_msg_clone.c: msg_lump_cloner(978) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 416 bytes from <core>: mem/shm_mem.c: sh_realloc(79) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 5704 bytes from tm: h_table.c: build_cell(300) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 4920 bytes from <core>: sip_msg_clone.c: sip_msg_shm_clone(494) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 2 size= 16 bytes from dialog: dlg_handlers.c: dlg_get_iuid_shm_clone(279) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 3 size= 120 bytes from tm: t_hooks.c: insert_tmcb(137) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 40 size= 2144 bytes from <core>: usr_avp.c: create_avp(175) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 128 bytes from tmx: tmx_pretran.c: tmx_init_pretran_table(90) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 3 size= 64 bytes from usrloc: udomain.c: build_stat_name(51) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 8 bytes from <core>: pt.c: init_pt(110) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 8 bytes from <core>: pt.c: init_pt(105) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 8 bytes from dialog: dlg_hash.c: init_dlg_table(269) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 8 bytes from dialog: dlg_hash.c: init_dlg_table(262) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 8 bytes from dialog: dlg_hash.c: init_dlg_table(257) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 8 bytes from domain: domain_mod.c: mod_init(219) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 2 size= 144 bytes from <core>: timer.c: register_timer(1011) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 8 bytes from <core>: usr_avp.c: init_avps(90) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 8 bytes from <core>: usr_avp.c: init_avps(89) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: count= 1 size= 8 bytes from <core>: mem/shm_mem.c: shm_mem_init_mallocs(179) Sep 29 13:59:58 localhost /usr/local/sbin/kamailio[18323]: NOTICE: fm_status: -----------------------------
29.09.2015 12:03 tarihinde Daniel-Constantin Mierla-6 [via SIP Router] yazdı:
Hello,
still look like only mem summary from main process, which is not relevant for a worker process.
Use the suggestions from my previous email to get the pkg mem summary for a sip worker process.
Cheers, Daniel
29.09.2015 09:40 tarihinde Daniel-Constantin Mierla-6 [via SIP Router] yazdı:
Hello,
there are no logs.
You should have followed my suggestions, because mem_summary=15 is printing a lot of other unnecessary log messages. It is better to use mem_summary=8 to get a smaller log. Also, the children is quite high, try with children=2 -- the out of memory should appear sooner.
Also, use -M 8 in order to reduce the time to using all memory.
Cheers, Daniel
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141889....
To unsubscribe from out of memory Error, click here . NAML
--
kamailio_mem_dump_1.txt (1M) Download Attachment
View this message in context: Re: out of memory Error Sent from the Users mailing list archive at Nabble.com.
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - http://asipto.com/u/kat
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141895....
To unsubscribe from out of memory Error, click here . NAML
--
View this message in context: Re: out of memory Error Sent from the Users mailing list archive at Nabble.com.
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - http://asipto.com/u/kat
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141901....
To unsubscribe from out of memory Error, click
here . NAML
--
part38.04040708.06020007@netgsm.com.tr (51K) http://sip-router.1086192.n5.nabble.com/attachment/141904/0/part38.04040708.06020007%40netgsm.com.tr
-- View this message in context: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141904.... Sent from the Users mailing list archive at Nabble.com.
Hello,
hmm, even these logs were not catching the relevant information, the main process is the one logging the used packets, from the others I saw only the free chunks summary.
Let's do it again with stopping kamailio when you get out of memory errors. Set children=2 and mem_summary=15 to get all possible logs related to the memory.
You can send directly to me all the log messages with memory status and summary printed when kamailio is stopped, because the size can be quite big and the mailing list won't accept it.
Cheers, Daniel
On 29/09/15 13:10, ycaner wrote:
Hello Daniel;
i got logs from kamailio. there is 10 pid about kamailio and don't
give dumps for all kamailio pids expects somes. Here is results;
Hello Daniel i did what you wrote here. Here is results; http://pastebin.com/YQFxcnLN
And i did some test without acc_radius module. without acc_radius module , there is no out of memory on pkg. it continue 10000+ calls instead with acc_radius , it gets out of memory in 2000+ calls.
i don't know how to analyze logs but "extra2strar" function has big data. i am gonna run with debug mod for 1 calls and try to analyze it again. Thanks for help.
-- View this message in context: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141938.... Sent from the Users mailing list archive at Nabble.com.
Hello Daniel;
I think i found the mem leak. after debuggin memory in acc_radius_send_request at /root/kamailio-4.3.2/modules/acc_radius/acc_radius_mod.c , after allocing with get_extra_attrs as using extra2strar , don't free in acc_radius_send_request. i will do some test and write results.
2(18158) DEBUG: acc [acc_logic.c:644]: tmcb_func(): acc callback called for t(0x7ff29cc3c9a8) event type 512, reply code 200 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 10) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 16) returns address 0x7ff2b2699620 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 12) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 16) returns address 0x7ff2b25de960 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 12) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 16) returns address 0x7ff2b25fd618 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 15) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 16) returns address 0x7ff2b25fdb08 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 12) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 16) returns address 0x7ff2b25fd880 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 1) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b2638078 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 19) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 24) returns address 0x7ff2b25fd6d8 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 1) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b263b0c8 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 12) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 16) returns address 0x7ff2b2699538 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 2) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b2632860 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 1) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b262f440 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 6) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b2605d60 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 1) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b2607c30 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 1) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b2601fa8 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 2) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b25ffaf8 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 4) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b25fd188 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 20) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 24) returns address 0x7ff2b25de888 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 1) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b25f0560 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 5) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b25eee68 2(18158) NOTICE: acc [acc.c:317]: acc_log_request(): ACC: transaction answered: timestamp=1443609895;method=INVITE;from_tag=624230f16f6c4864ae7ca8f58b4bd590;to_tag=as2194f3f3;call_id=7aca05f5e0e449f88fed3308fabafd4b;code=200;reason=OK;src_user=8503023166;src_domain=185.88.7.181;src_ip=185.88.7.182;dst_user=200015066113309;dst_domain=185.88.7.180;src_ousername=0;networkdatetime=2015-09-30 13:44:55;dst_ouser=0;provider=185.88.7.182;m_id=15;tibtip=0;src_userid=154802;dst_userid=0;flags=1;op_kodu=20;lifetime=3600;uniqueid=srid-560bbd22-46ee-1;servis=4;numbasekle=20001 2(18158) DEBUG: acc [acc_extra.h:81]: free_strar_mem(): Freeing memory, type is 2, message_index 6, index i 0 2(18158) DEBUG: <core> [mem/f_malloc.c:575]: fm_free(): fm_free(0x7ff2b2550010, 0x7ff2b2699620), called from acc: acc_extra.h: free_strar_mem(82) 2(18158) DEBUG: <core> [mem/f_malloc.c:594]: fm_free(): fm_free: freeing block alloc'ed from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: acc [acc_extra.h:81]: free_strar_mem(): Freeing memory, type is 2, message_index 6, index i 1 2(18158) DEBUG: <core> [mem/f_malloc.c:575]: fm_free(): fm_free(0x7ff2b2550010, 0x7ff2b25de960), called from acc: acc_extra.h: free_strar_mem(82) 2(18158) DEBUG: <core> [mem/f_malloc.c:594]: fm_free(): fm_free: freeing block alloc'ed from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: acc [acc_extra.h:81]: free_strar_mem(): Freeing memory, type is 2, message_index 6, index i 2 2(18158) DEBUG: <core> [mem/f_malloc.c:575]: fm_free(): fm_free(0x7ff2b2550010, 0x7ff2b25fd618), called from acc: acc_extra.h: free_strar_mem(82) 2(18158) DEBUG: <core> [mem/f_malloc.c:594]: fm_free(): fm_free: freeing block alloc'ed from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: acc [acc_extra.h:81]: free_strar_mem(): Freeing memory, type is 2, message_index 6, index i 3 2(18158) DEBUG: <core> [mem/f_malloc.c:575]: fm_free(): fm_free(0x7ff2b2550010, 0x7ff2b25fdb08), called from acc: acc_extra.h: free_strar_mem(82) 2(18158) DEBUG: <core> [mem/f_malloc.c:594]: fm_free(): fm_free: freeing block alloc'ed from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: acc [acc_extra.h:81]: free_strar_mem(): Freeing memory, type is 2, message_index 6, index i 4 2(18158) DEBUG: <core> [mem/f_malloc.c:575]: fm_free(): fm_free(0x7ff2b2550010, 0x7ff2b25fd880), called from acc: acc_extra.h: free_strar_mem(82) 2(18158) DEBUG: <core> [mem/f_malloc.c:594]: fm_free(): fm_free: freeing block alloc'ed from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: acc [acc_extra.h:81]: free_strar_mem(): Freeing memory, type is 1, message_index 6, index i 5 2(18158) DEBUG: <core> [mem/f_malloc.c:575]: fm_free(): fm_free(0x7ff2b2550010, 0x7ff2b2638078), called from acc: acc_extra.h: free_strar_mem(82) 2(18158) DEBUG: <core> [mem/f_malloc.c:594]: fm_free(): fm_free: freeing block alloc'ed from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: acc [acc_extra.h:81]: free_strar_mem(): Freeing memory, type is 2, message_index 6, index i 6 2(18158) DEBUG: <core> [mem/f_malloc.c:575]: fm_free(): fm_free(0x7ff2b2550010, 0x7ff2b25fd6d8), called from acc: acc_extra.h: free_strar_mem(82) 2(18158) DEBUG: <core> [mem/f_malloc.c:594]: fm_free(): fm_free: freeing block alloc'ed from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: acc [acc_extra.h:81]: free_strar_mem(): Freeing memory, type is 1, message_index 6, index i 7 2(18158) DEBUG: <core> [mem/f_malloc.c:575]: fm_free(): fm_free(0x7ff2b2550010, 0x7ff2b263b0c8), called from acc: acc_extra.h: free_strar_mem(82) 2(18158) DEBUG: <core> [mem/f_malloc.c:594]: fm_free(): fm_free: freeing block alloc'ed from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: acc [acc_extra.h:81]: free_strar_mem(): Freeing memory, type is 2, message_index 6, index i 8 2(18158) DEBUG: <core> [mem/f_malloc.c:575]: fm_free(): fm_free(0x7ff2b2550010, 0x7ff2b2699538), called from acc: acc_extra.h: free_strar_mem(82) 2(18158) DEBUG: <core> [mem/f_malloc.c:594]: fm_free(): fm_free: freeing block alloc'ed from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: acc [acc_extra.h:81]: free_strar_mem(): Freeing memory, type is 2, message_index 6, index i 9 2(18158) DEBUG: <core> [mem/f_malloc.c:575]: fm_free(): fm_free(0x7ff2b2550010, 0x7ff2b2632860), called from acc: acc_extra.h: free_strar_mem(82) 2(18158) DEBUG: <core> [mem/f_malloc.c:594]: fm_free(): fm_free: freeing block alloc'ed from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: acc [acc_extra.h:81]: free_strar_mem(): Freeing memory, type is 1, message_index 6, index i 10 2(18158) DEBUG: <core> [mem/f_malloc.c:575]: fm_free(): fm_free(0x7ff2b2550010, 0x7ff2b262f440), called from acc: acc_extra.h: free_strar_mem(82) 2(18158) DEBUG: <core> [mem/f_malloc.c:594]: fm_free(): fm_free: freeing block alloc'ed from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: acc [acc_extra.h:81]: free_strar_mem(): Freeing memory, type is 2, message_index 6, index i 11 2(18158) DEBUG: <core> [mem/f_malloc.c:575]: fm_free(): fm_free(0x7ff2b2550010, 0x7ff2b2605d60), called from acc: acc_extra.h: free_strar_mem(82) 2(18158) DEBUG: <core> [mem/f_malloc.c:594]: fm_free(): fm_free: freeing block alloc'ed from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: acc [acc_extra.h:81]: free_strar_mem(): Freeing memory, type is 1, message_index 6, index i 12 2(18158) DEBUG: <core> [mem/f_malloc.c:575]: fm_free(): fm_free(0x7ff2b2550010, 0x7ff2b2607c30), called from acc: acc_extra.h: free_strar_mem(82) 2(18158) DEBUG: <core> [mem/f_malloc.c:594]: fm_free(): fm_free: freeing block alloc'ed from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: acc [acc_extra.h:81]: free_strar_mem(): Freeing memory, type is 1, message_index 6, index i 13 2(18158) DEBUG: <core> [mem/f_malloc.c:575]: fm_free(): fm_free(0x7ff2b2550010, 0x7ff2b2601fa8), called from acc: acc_extra.h: free_strar_mem(82) 2(18158) DEBUG: <core> [mem/f_malloc.c:594]: fm_free(): fm_free: freeing block alloc'ed from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: acc [acc_extra.h:81]: free_strar_mem(): Freeing memory, type is 1, message_index 6, index i 14 2(18158) DEBUG: <core> [mem/f_malloc.c:575]: fm_free(): fm_free(0x7ff2b2550010, 0x7ff2b25ffaf8), called from acc: acc_extra.h: free_strar_mem(82) 2(18158) DEBUG: <core> [mem/f_malloc.c:594]: fm_free(): fm_free: freeing block alloc'ed from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: acc [acc_extra.h:81]: free_strar_mem(): Freeing memory, type is 1, message_index 6, index i 15 2(18158) DEBUG: <core> [mem/f_malloc.c:575]: fm_free(): fm_free(0x7ff2b2550010, 0x7ff2b25fd188), called from acc: acc_extra.h: free_strar_mem(82) 2(18158) DEBUG: <core> [mem/f_malloc.c:594]: fm_free(): fm_free: freeing block alloc'ed from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: acc [acc_extra.h:81]: free_strar_mem(): Freeing memory, type is 2, message_index 6, index i 16 2(18158) DEBUG: <core> [mem/f_malloc.c:575]: fm_free(): fm_free(0x7ff2b2550010, 0x7ff2b25de888), called from acc: acc_extra.h: free_strar_mem(82) 2(18158) DEBUG: <core> [mem/f_malloc.c:594]: fm_free(): fm_free: freeing block alloc'ed from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: acc [acc_extra.h:81]: free_strar_mem(): Freeing memory, type is 1, message_index 6, index i 17 2(18158) DEBUG: <core> [mem/f_malloc.c:575]: fm_free(): fm_free(0x7ff2b2550010, 0x7ff2b25f0560), called from acc: acc_extra.h: free_strar_mem(82) 2(18158) DEBUG: <core> [mem/f_malloc.c:594]: fm_free(): fm_free: freeing block alloc'ed from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: acc [acc_extra.h:81]: free_strar_mem(): Freeing memory, type is 1, message_index 6, index i 18 2(18158) DEBUG: <core> [mem/f_malloc.c:575]: fm_free(): fm_free(0x7ff2b2550010, 0x7ff2b25eee68), called from acc: acc_extra.h: free_strar_mem(82) 2(18158) DEBUG: <core> [mem/f_malloc.c:594]: fm_free(): fm_free: freeing block alloc'ed from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: acc [acc.c:996]: acc_run_engines(): acc event for engine: radius 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 12) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 16) returns address 0x7ff2b25de960 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 27) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 32) returns address 0x7ff2b2699538 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 12) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 16) returns address 0x7ff2b2699620 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 20) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 24) returns address 0x7ff2b25fdb08 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 10) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 16) returns address 0x7ff2b25fd618 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 15) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 16) returns address 0x7ff2b25fd6d8 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 12) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 16) returns address 0x7ff2b25fd880 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 1) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b25eee68 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 19) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 24) returns address 0x7ff2b25de888 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 1) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b25f0560 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 2) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b25fd188 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 1) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b25ffaf8 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 6) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b2601fa8 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 1) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b2607c30 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 1) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b2605d60 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 2) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b262f440 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 4) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b2632860 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 1) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b263b0c8 2(18158) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 5) called from acc: acc_extra.c: extra2strar(265) 2(18158) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 8) returns address 0x7ff2b2638078 1(18157) DEBUG: <core> [mem/f_malloc.c:431]: fm_malloc(): fm_malloc(0x7ff2b2550010, 1768) called from <core>: receive.c: receive_msg(100) 1(18157) DEBUG: <core> [mem/f_malloc.c:506]: fm_malloc(): fm_malloc(0x7ff2b2550010, 1768) returns address 0x7ff2b26b17a8
-- View this message in context: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141946.... Sent from the Users mailing list archive at Nabble.com.
Hello Daniel ;
After changes some codes , it is solved. Here is diff for checking.
diff --git a/modules/acc_radius/acc_radius_mod.c b/modules/acc_radius/acc_radius_mod.c index b1843d6..2bc0acc 100644 --- a/modules/acc_radius/acc_radius_mod.c +++ b/modules/acc_radius/acc_radius_mod.c @@ -49,6 +49,7 @@ #include "../../lib/kcore/radius.h" #include "../../modules/acc/acc_api.h" #include "acc_radius_mod.h" +#include "../../modules/acc/acc_extra.h"
MODULE_VERSION
@@ -329,6 +330,8 @@ int acc_radius_send_request(struct sip_msg *req, acc_info_t *inf) uint32_t av_type; int offset; int i; + int m=0; + int o=0;
send=NULL;
@@ -353,8 +356,11 @@ int acc_radius_send_request(struct sip_msg *req, acc_info_t *inf) ADD_RAD_AVPAIR( RA_TIME_STAMP, &av_type, -1);
/* add extra also */ - attr_cnt += accb.get_extra_attrs(rad_extra, req, inf->varr+attr_cnt, - inf->iarr+attr_cnt, inf->tarr+attr_cnt); + o = accb.get_extra_attrs(rad_extra, req, inf->varr+attr_cnt, + inf->iarr+attr_cnt, inf->tarr+attr_cnt); + + attr_cnt += o; + m = attr_cnt;
/* add the values for the vector - start from 1 instead of * 0 to skip the first value which is the METHOD as string */ @@ -388,10 +394,14 @@ int acc_radius_send_request(struct sip_msg *req, acc_info_t *inf) goto error; } rc_avpair_free(send); + /*dont forget free memory allocated by extra2strar */ + free_strar_mem( &(inf->tarr[m-o]), &(inf->varr[m-o]), o, m); return 1;
error: rc_avpair_free(send); + /* free memory allocated by extra2strar */ + free_strar_mem( &(inf->tarr[m-o]), &(inf->varr[m-o]), o, m); return -1; }
-- View this message in context: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141948.... Sent from the Users mailing list archive at Nabble.com.
Hello,
ok, so the issue was in acc_radius module.
Can you make a pull request with this patch via github project:
- https://github.com/kamailio/kamailio/pulls
Cheers, Daniel
On 30/09/15 15:59, ycaner wrote:
Hello Daniel ;
After changes some codes , it is solved. Here is diff for checking.
diff --git a/modules/acc_radius/acc_radius_mod.c b/modules/acc_radius/acc_radius_mod.c index b1843d6..2bc0acc 100644 --- a/modules/acc_radius/acc_radius_mod.c +++ b/modules/acc_radius/acc_radius_mod.c @@ -49,6 +49,7 @@ #include "../../lib/kcore/radius.h" #include "../../modules/acc/acc_api.h" #include "acc_radius_mod.h" +#include "../../modules/acc/acc_extra.h"
MODULE_VERSION
@@ -329,6 +330,8 @@ int acc_radius_send_request(struct sip_msg *req, acc_info_t *inf) uint32_t av_type; int offset; int i;
int m=0;
int o=0; send=NULL;
@@ -353,8 +356,11 @@ int acc_radius_send_request(struct sip_msg *req, acc_info_t *inf) ADD_RAD_AVPAIR( RA_TIME_STAMP, &av_type, -1);
/* add extra also */
attr_cnt += accb.get_extra_attrs(rad_extra, req, inf->varr+attr_cnt,
inf->iarr+attr_cnt, inf->tarr+attr_cnt);
o = accb.get_extra_attrs(rad_extra, req, inf->varr+attr_cnt,
inf->iarr+attr_cnt, inf->tarr+attr_cnt);
attr_cnt += o;
m = attr_cnt; /* add the values for the vector - start from 1 instead of * 0 to skip the first value which is the METHOD as string */
@@ -388,10 +394,14 @@ int acc_radius_send_request(struct sip_msg *req, acc_info_t *inf) goto error; } rc_avpair_free(send);
/*dont forget free memory allocated by extra2strar */
free_strar_mem( &(inf->tarr[m-o]), &(inf->varr[m-o]), o, m); return 1;
error: rc_avpair_free(send);
/* free memory allocated by extra2strar */
free_strar_mem( &(inf->tarr[m-o]), &(inf->varr[m-o]), o, m); return -1;
}
-- View this message in context: http://sip-router.1086192.n5.nabble.com/out-of-memory-Error-tp141866p141948.... Sent from the Users mailing list archive at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users