[asterisk-dev] Asterisk stress test
能功 杜
shawndu at hotmail.com
Wed Oct 17 21:23:51 CDT 2007
dear all,
i try use two asterisk do stress testing. my method like this :
i wrote a application for Asterisk Server A name app_silence. the main code of this application as following :
/************************/
if(chan->_state != AST_STATE_UP){ ast_answer(chan); } ast_channel_start_silence_generator(chan);
while(ast_waitfor(chan, -1) > -1){ f = ast_read(chan); if (!f) break; ast_frfree(f); }/*************************/
then i configure Server B as a iax friend of Server A.
[test]
host = server_A_ip_address
secret = test
type = friend
context = test
i use call file to create calls.
callfile like this :
/*************/
Channel: IAX2/testMaxRetries: 2RetryTime: 60WaitTime: 30Application: echo
/*************/
while Server A i configure a default dialplan
exten => s,1,answer
exten => s,2,silence
so when i move the callfile to server B's outgoing. it create a call. Server A call server B.
in this way ,i can create many calls between two severs.
my question is : when i create 3 calls between the two servers,server A's loading is very heavy ,
CPU always 99% and load average is about 2 or so.
what's wrong ? is this the correct way to do concurrent-calls testing?
BR
shawn
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20071018/cfe45233/attachment.htm
More information about the asterisk-dev
mailing list