FreeSwitch and ASTPP High Load Problem

952 views
Skip to first unread message

freeswitchking

unread,
Jul 5, 2016, 4:49:38 AM7/5/16
to as...@googlegroups.com
Hello
I have a production server with these hardware specifications and freeswitch configuration but as soon as i arrive @150 calls at the same time it goes on 100 % of CPU and System load
Where is my problem ? so i can fix it.

The same server with asterisk goes to 700 calls at the same time with 30 % load.
Thnx

HardWare:


Intel Xeon L3426 1.86Ghz2x 2000GB HW RAID 116GB100Mbps


FreeSwitch Config:

CPS: 50
Codec: G729

core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 63421
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 63421
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited


# ethtool -g eth0
Ring parameters for eth0:
Pre-set maximums:
RX:             2040
RX Mini:        0
RX Jumbo:       8160
TX:             255
Current hardware settings:
RX:             255
RX Mini:        0
RX Jumbo:       0
TX:             255

echo vegas > /proc/sys/net/ipv4/tcp_congestion_control


Modules:

<!-- Loggers (I'd load these first) -->
    <load module="mod_console"/>
    <load module="mod_logfile"/>
    <load module="mod_syslog"/>

    <!-- Multi-Faceted -->
    <!-- mod_enum is a dialplan interface, an application interface and an api command interface -->
<!--     <load module="mod_enum"/> -->

    <!-- XML Interfaces -->
    <!-- <load module="mod_xml_rpc"/> -->
    
    <!--  Required to run astpp    -->
    <load module="mod_xml_curl"/>
    <load module="mod_xml_cdr"/>

    <!-- Event Handlers -->
    <load module="mod_cdr_csv"/>
    <!-- <load module="mod_event_multicast"/> -->
    <load module="mod_event_socket"/>
    <!-- <load module="mod_xmpp_event"/> -->
    <!-- <load module="mod_zeroconf"/> -->

    <!-- Directory Interfaces -->
    <!-- <load module="mod_ldap"/> -->

    <!-- Endpoints -->
    <!-- <load module="mod_dingaling"/> -->
    <!-- <load module="mod_iax"/> -->
    <!-- <load module="mod_portaudio"/> -->
    <!-- <load module="mod_alsa"/> -->
    <load module="mod_sofia"/>
    <!-- <load module="mod_wanpipe"/> -->
    <!-- <load module="mod_woomera"/> -->
    <!-- <load module="mod_openzap"/> -->

    <!-- Applications -->
    <load module="mod_commands"/>
<load module="mod_conference"/>
    <load module="mod_dptools"/>
<!--     <load module="mod_expr"/> -->
<!--     <load module="mod_fifo"/> -->
<!--     <load module="mod_voicemail"/> -->
<!--    <load module="mod_limit"/>-->
<!--     <load module="mod_esf"/> -->
<!--     <load module="mod_fsv"/> -->

    <!-- Dialplan Interfaces -->
    <load module="mod_dialplan_directory"/>
    <load module="mod_dialplan_xml"/>
    <load module="mod_dialplan_asterisk"/>

    <!-- Codec Interfaces -->
<!--    <load module="mod_voipcodecs"/>-->
    <load module="mod_g723_1"/>
    <load module="mod_g729"/>
    <load module="mod_amr"/>
    <load module="mod_ilbc"/>
    <load module="mod_speex"/>
    <load module="mod_h26x"/>

    <!-- File Format Interfaces -->
    <load module="mod_sndfile"/>
    <load module="mod_native_file"/>
    <!--For icecast/mp3 streams/files-->
    <!--<load module="mod_shout"/>-->
    <!--For local streams (play all the files in a directory)-->
    <load module="mod_local_stream"/>
    <load module="mod_tone_stream"/>
<load module="mod_db"/>

    <!-- Timers -->

    <!-- Languages -->
    <!-- <load module="mod_spidermonkey"/> -->
    <!--  Required to run astpp calling card module  -->
     <load module="mod_perl"/> 
    <!-- <load module="mod_python"/> -->
    <!-- <load module="mod_java"/> -->
<!--     <load module="mod_lua"/> -->

    <!-- ASR /TTS -->
    <!-- <load module="mod_cepstral"/> -->
    <!-- <load module="mod_openmrcp"/> -->
    <!-- <load module="mod_rss"/> -->
    
    <!-- Say -->
    <load module="mod_say_en"/>

Intel Networks

unread,
Jul 5, 2016, 11:17:13 PM7/5/16
to as...@googlegroups.com
i have similar issues any still unable to get it fix. I edited the xml file to 1000 concurrent calls but ASTPP will shut down. From many post on this forum show that it has to do with the database processing/request.
I have pyfreebilling on another sever and it doesn't shut down i tested it with 800 CC and still going.
Maybe a little tweak might change things but it will take some serious investigation/debugging to fix.

--
=====================================================================
Documentation : https://astppdoc.atlassian.net/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/28751067-ad8b-49b1-82b1-1c55a39e7310%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Samir Doshi

unread,
Jul 6, 2016, 3:23:10 AM7/6/16
to ASTPP
For time being you will require to tune mysql and apache in order to get better performance. We have done lot of work on call scripts to resolve calls performance issues in upcoming version 3.0.

Version 3.0 expected to be released in this month only. 


Best Regards
--
Samir Doshi
iNextrix Technologies Pvt. Ltd.
http://www.inextrix.com



Disclaimer:
The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking action in reliance of the contents of this information is strictly prohibited and may be unlawful.

freeswitchking

unread,
Jul 6, 2016, 3:50:42 AM7/6/16
to ASTPP
Hello Saimir
Are you telling that with Version 3.0 everything is going to be resolved ? How many concurrent calls can it handle on Version 3.0 ?
Even if i add tow other servers so on for Apache and on for MySql i think it will be the sa,e problem i a tested it and the sa,e problem.
Thnx

freeswitchking

unread,
Jul 6, 2016, 4:05:49 AM7/6/16
to ASTPP
Hello msprober
how long do you have that use pyfreebilling  ?! What hardware ? Single server or cluster ?
THnx

Samir Doshi

unread,
Jul 6, 2016, 4:09:34 AM7/6/16
to ASTPP
Yeah for sure thing. 

Will you be interested in doing Alpha testing of ASTPP 3.0 and provide feedback / issues? 


Best Regards
--
Samir Doshi
iNextrix Technologies Pvt. Ltd.
http://www.inextrix.com



Disclaimer:
The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking action in reliance of the contents of this information is strictly prohibited and may be unlawful.

freeswitchking

unread,
Jul 6, 2016, 4:20:37 AM7/6/16
to ASTPP
Yes of course.

Rohit Mathur

unread,
Jun 11, 2020, 2:34:03 AM6/11/20
to ASTPP
Hi Samir,

I have installed ASTPP 4.0.1 on 12 vCPU and 32 GB RAM Centos 7 with SSL.

on 200 CC the system load is more 400% and the voice starts breaking up.

What is the recommended hardware specs for ASTPP to handle uto 500 CC?

Is it compatible on Virtual Machines?

What is the recommended OS Centos 7 or Debian 9? 

Please suggest.

Thanks
Rohit Mathur
To unsubscribe from this group and stop receiving emails from it, send an email to as...@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/28751067-ad8b-49b1-82b1-1c55a39e7310%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
=====================================================================
Documentation : https://astppdoc.atlassian.net/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to as...@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.

Alex Bisio

unread,
Jun 14, 2020, 8:29:07 PM6/14/20
to as...@googlegroups.com
Just a word of advice. Use a VMWARE virtual machine ON YOUR OWN HARDWARE or SERVER.  I was able to hold 200+ CC (no transcoding) but I had control of the environment.
Is not  only the processing power; consider your bandwidth and peering with customers and vendors. Once the call is established; the resource usage is pretty low; however avoid using the CPS field. It does not work well



Alex Bisio


--
=====================================================================
Documentation: https://docs.astppbilling.org/display/itplmars/ASTPP

Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/61ec1441-f90a-48f9-af0d-a5ae09c1c0a6o%40googlegroups.com.

T Point Systems

unread,
Jun 15, 2020, 6:43:27 PM6/15/20
to as...@googlegroups.com
Conside to use you own  Hardware or at list dedicated server for that amount of calls 
Virtual server ar ok till 50-60 concurrent calls  

--
=====================================================================
Documentation: https://docs.astppbilling.org/display/itplmars/ASTPP
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/61ec1441-f90a-48f9-af0d-a5ae09c1c0a6o%40googlegroups.com.


--

Sales Christos Kouvousis 

Mob:00306948460953 USA Phone:0019142668209

56 Kyriakou Matsi Street 2368 Ayios Dhometios
Nicosia Cyprus P.O Box 25621,1311

www.tpointsystems.com



Rohit Mathur

unread,
Jun 27, 2020, 1:05:21 AM6/27/20
to ASTPP
Thanks for suggestions Abisio and T Point Systems.

I installed ASTPP now on a Physical Server hosted on Hertzner.

Config:

Intel E5 1650 V3 Hexa Core
64GB with SSD
1 Gbps Internet Port
CentOS 7.8

I am able to handle 300 plus CC but fail2ban is consuming most of the CPU.

FREESWITH SIP PROFILE CHANGE I DID:

inbound media proxy true

Any suggestions or replacement of fail2ban

Thanks

Rohit Mathur

Devang Nathwani

unread,
Jun 28, 2020, 6:13:16 AM6/28/20
to as...@googlegroups.com
Hello Rohit,
1. If you can, change the sip profile port from 5060 to a non-traditional one.
2. Decrease the FS log level
3. Have external firewall and manage the traffic from there instead of iptables of the server and stop f2b service.

--
=====================================================================
Documentation: https://docs.astppbilling.org/display/itplmars/ASTPP
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.


--
Thanks,
Devang Nathwani

Disclaimer:
The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking action in reliance of the contents of this information is strictly prohibited and may be unlawful. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.

ASTPP

unread,
Dec 3, 2020, 6:01:25 PM12/3/20
to ASTPP
Hi Rohit im to In Hetzner Virtual cloud server  ASTPP 3.6 Handel  200 CC    4 VCPU  16 GB Ram  80 GB Disk  any suggestion how i go to  300 ? P.S i have increase CPU and RAM but Noting  -->   have you change anything  in switch.conf.xml file ?  regards 

Laszlo Bekesi

unread,
Dec 3, 2020, 6:21:53 PM12/3/20
to as...@googlegroups.com
Fail2ban is a performance burden (and a false sense of security).

You could reach better result with geographical ip filtering for services, including sip.

- Laszlo

--
=====================================================================
Documentation: https://docs.astppbilling.org/display/itplmars/ASTPP
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages