From: Ioan I. <ioa...@mo...> - 2007-05-25 09:46:22
|
Hello, Any idea on how to debug the asterisk crash? Last test was running 2 cps with calls of 10 sec (resulting 20 simultaneous G711 calls) and after aprox. 3 hours asterisk crash. Same behaviour - no "visible" traces. If no other ideas I will configure some swap space and try again. Best regards, Ioan. > Hello Kris, > > Thank you for your quick answer and tips. Still I do not think it is a > problem on ulimit. > I verify fds for asterisk pid and was less that 1024. Also, for generating > the core I run unlimit -c unlimited....but this is just to get the core. > How > to debug it? > > Regarding swap - I see (with free) that there is plenty of free memory. So > no need for a swap. Or am I wrong? > > Bellow you have some data from such a crash: > > ------------------------------------------------------------------------ > pbx ~ # asterisk -rx "show channels"; free > Channel Location State Application(Data) > 0 active channels > 0 active calls > total used free shared buffers > Mem: 971136 57964 913172 0 8304 > Swap: 0 0 0 > Total: 971136 57964 913172 > > pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime > 10 active calls > total used free shared buffers > Mem: 971136 58808 912328 0 8304 > Swap: 0 0 0 > Total: 971136 58808 912328 > 22:16:56 up 7:42, load average: 0.09, 0.02, 0.00 > > pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime > 20 active calls > total used free shared buffers > Mem: 971136 59656 911480 0 8304 > Swap: 0 0 0 > Total: 971136 59656 911480 > 22:17:22 up 7:42, load average: 0.11, 0.03, 0.00 > > pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime > 31 active calls > total used free shared buffers > Mem: 971136 60596 910540 0 8304 > Swap: 0 0 0 > Total: 971136 60596 910540 > 22:17:46 up 7:43, load average: 0.14, 0.05, 0.01 > > pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime > 35 active calls > total used free shared buffers > Mem: 971136 60940 910196 0 8304 > Swap: 0 0 0 > Total: 971136 60940 910196 > 22:17:58 up 7:43, load average: 0.11, 0.04, 0.01 > > pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime > 41 active calls > total used free shared buffers > Mem: 971136 61580 909556 0 8304 > Swap: 0 0 0 > Total: 971136 61580 909556 > 22:18:14 up 7:43, load average: 0.08, 0.04, 0.00 > > pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime > 42 active calls > total used free shared buffers > Mem: 971136 61660 909476 0 8304 > Swap: 0 0 0 > Total: 971136 61660 909476 > 22:18:29 up 7:44, load average: 0.06, 0.04, 0.00 > > pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime > 43 active calls > total used free shared buffers > Mem: 971136 61752 909384 0 8304 > Swap: 0 0 0 > Total: 971136 61752 909384 > 22:18:37 up 7:44, load average: 0.05, 0.04, 0.00 > > pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime > 44 active calls > total used free shared buffers > Mem: 971136 61832 909304 0 8304 > Swap: 0 0 0 > Total: 971136 61832 909304 > 22:18:44 up 7:44, load average: 0.05, 0.04, 0.00 > > pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime > 45 active calls > total used free shared buffers > Mem: 971136 61924 909212 0 8304 > Swap: 0 0 0 > Total: 971136 61924 909212 > 22:18:53 up 7:44, load average: 0.04, 0.03, 0.00 > > pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime > 46 active calls > total used free shared buffers > Mem: 971136 62004 909132 0 8304 > Swap: 0 0 0 > Total: 971136 62004 909132 > 22:18:59 up 7:44, load average: 0.03, 0.03, 0.00 > > --- When I tried 47th call, asterisk crashed --- > > pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime > total used free shared buffers > Mem: 971136 55480 915656 0 8304 > Swap: 0 0 0 > Total: 971136 55480 915656 > 22:19:05 up 7:44, load average: 0.51, 0.13, 0.03 > pbx ~ # > > ------------------------------------------------------------------------ > > > What do you think? > > BR, > Ioan. |