[asterisk-bugs] [JIRA] (ASTERISK-28707) Pjsip Threadpool cant handle more than 10 calls per second

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Tue Jan 21 05:13:25 CST 2020


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=249504#comment-249504 ] 

Joshua C. Colp edited comment on ASTERISK-28707 at 1/21/20 5:13 AM:
--------------------------------------------------------------------

Asterisk isn't a SIP proxy and isn't simply moving around messages, so even without media there is a substantial cost to setting up and handling calls. If you need high capacity SIP routing then a SIP proxy would be a MUCH better fit as that is what they are designed for.

The code will predictably distribute calls to threads, depending on the contents of the SIP request it can cause the calls to end up over a few threads.

If you still want to use Asterisk you'd need to do profiling, understand the bottleneck, see if there are ways to improve it.


was (Author: jcolp):
Asterisk isn't a SIP proxy and isn't simply moving around messages, so even without media there is a substantial cost to setting up and handling calls. If you need high capacity SIP routing then a SIP proxy would be a MUCH better fit as that is what they are designed for.

The code will predictably distribute calls to threads, depending on the contents of the SIP request it can cause the calls to end up over a few threads.

> Pjsip Threadpool cant handle more than 10 calls per second
> ----------------------------------------------------------
>
>                 Key: ASTERISK-28707
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28707
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_pjsip
>    Affects Versions: 16.2.0
>         Environment: Linux Centos 7
>            Reporter: Ahmet Hancer
>            Assignee: Ahmet Hancer
>
> Hi,
> Using sipp I run loadtests on Asterisk and I observe If I send 10 calls per second Monitor_thread and pjsip Threadpool(with 200 threads) can handles calls with 30second duration long. But say if I send 50 calls per second using sipp to Asterik I observe monitor_thread can handle it without problem but threadpool cant: I see as monitor_thread processed 1000 calls (new INVITE) while threadpool only processed around 300 calls(New INVITE) and rest are ignored
> I will appreciate if you can help
> Regards



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list