[asterisk-users] Problems faced in load testing of asterisk

shalu dhamija shalu.dhamija at rancoretech.com
Wed Jan 11 01:04:14 CST 2012



Hello, 



I am trying to run load on asterisk server(version 1.8.7.1) through SIPp tool for the voicemail() application. But I am facing a lot of problems. I tried running 1000 calls from SIPp for 100 subscribers (10 messages for each subscriber). I am using odbc storage for the messages. 



Following warnings/errors are coming on the asterisk server: 



Jan 11 11:30:49] WARNING[22924] app.c: Failed to lock path '/var/spool/asterisk/voicemail/default/27/INBOX': File exists 
[Jan 11 11:30:49] ERROR[22924] app_voicemail.c: Couldn't lock directory /var/spool/asterisk/voicemail/default/27/INBOX.  Voicemail will be lost. 



Sometimes I have seen that  .lock file remains in the INBOX folder for a particular subscriber. I wanted to know why this .lock file is not deleted. Is this a bug or I am missing something in the configuration. 





[ Jan 11 11:30:50] WARNING[22874] app_voicemail.c: Open of sound file '/var/spool/asterisk/voicemail/default/2/INBOX/msg0011.gsm' failed: No such file or directory  



[Jan 11 11:30:50] WARNING[ 23109] app .c: No audio available on SIP/172.16.129.13:9027-00000206?? 





[ Jan 11 11:30:17] ERROR[22122] res_rtp_asterisk.c: Oh dear... we couldn't allocate a port (x=6460)6460 for RTP instance '0x2aaacd6454c8'. errno 98 

I have given the rtp port range as 6000 to 8000 in rtp.conf. Is this not sufficient for running 1000 calls. 





The SIPp command which I am running  is as follows: 

/sipp -m 10 -r 1 -rp 1000 -d 45 -mp 7000 -p 9000 -bg -max_socket 65536 -sf uac_msg_deposit.xml -i 172.16.129.13 -s 1 172.16.129.14 --trace_err 
usleep 80000 
./sipp -m 10 -r 1 -rp 1000 -d 45 -mp 7004 -p 9001 -bg -max_socket 65536 -sf uac_msg_deposit.xml -i 172.16.129.13 -s 2 172.16.129.14 --trace_err 
usleep 80000 
./sipp -m 10 -r 1 -rp 1000 -d 45 -mp 7008 -p 9002 -bg -max_socket 65536 -sf uac_msg_deposit.xml -i 172.16.129.13 -s 3 172.16.129.14 --trace_err 
usleep 80000 
./sipp -m 10 -r 1 -rp 1000 -d 45 -mp 7012 -p 9003 -bg -max_socket 65536 -sf uac_msg_deposit.xml -i 172.16.129.13 -s 4 172.16.129.14 --trace_err 
----- 

this way it continues for 100 subscribers. 





Please suggest. 





Thanks. 



Shalu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120111/f392d984/attachment.htm>


More information about the asterisk-users mailing list