Hi All I have built a IVR system in Freeswitch using LUA. In my IVR i am doing basic operation like select, insert etc. with remote MSSQL database. I am using FreeSWITCH version: 1.6.19+git~20171120T163416Z~b1b21d0695~64bit (git b1b21d0 2017-11-20 16:34:16Z 64bit) My concern is with the CPU usage it get more than 100% in just 3 calls. Please suggest what should i do to get normal usage of CPU.
how do you connect to the database? On Mon, Mar 5, 2018 at 8:42 AM, Vishal Pai <vishalmpai@gmail.com> wrote:
Hi All
I have built a IVR system in Freeswitch using LUA. In my IVR i am doing basic operation like select, insert etc. with remote MSSQL database.
I am using FreeSWITCH version: 1.6.19+git~20171120T163416Z~b1b21d0695~64bit (git b1b21d0 2017-11-20 16:34:16Z 64bit)
My concern is with the CPU usage it get more than 100% in just 3 calls.
Please suggest what should i do to get normal usage of CPU.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I connect the database using FreeTDS ODBC driver. On Mon, Mar 5, 2018 at 10:20 PM, Abaci B <abaci64@gmail.com> wrote:
how do you connect to the database?
On Mon, Mar 5, 2018 at 8:42 AM, Vishal Pai <vishalmpai@gmail.com> wrote:
Hi All
I have built a IVR system in Freeswitch using LUA. In my IVR i am doing basic operation like select, insert etc. with remote MSSQL database.
I am using FreeSWITCH version: 1.6.19+git~20171120T163416Z~b1b21d0695~64bit (git b1b21d0 2017-11-20 16:34:16Z 64bit)
My concern is with the CPU usage it get more than 100% in just 3 calls.
Please suggest what should i do to get normal usage of CPU.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
do you maybe have an infinite loop in your code? is the code you use something that you can share so that others can take a look if there is something obvious? On Mon, Mar 5, 2018 at 12:42 PM, Vishal Pai <vishalmpai@gmail.com> wrote:
I connect the database using FreeTDS ODBC driver.
On Mon, Mar 5, 2018 at 10:20 PM, Abaci B <abaci64@gmail.com> wrote:
how do you connect to the database?
On Mon, Mar 5, 2018 at 8:42 AM, Vishal Pai <vishalmpai@gmail.com> wrote:
Hi All
I have built a IVR system in Freeswitch using LUA. In my IVR i am doing basic operation like select, insert etc. with remote MSSQL database.
I am using FreeSWITCH version: 1.6.19+git~20171120T163416Z~b1b21d0695~64bit (git b1b21d0 2017-11-20 16:34:16Z 64bit)
My concern is with the CPU usage it get more than 100% in just 3 calls.
Please suggest what should i do to get normal usage of CPU.
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Unless you are on a raspberry pi, thats extremely strange. Something is running away with the cpu. I suggest you stub out pieces of your solution until you find the problem piece.
On Mar 5, 2018, at 12:42 PM, Vishal Pai <vishalmpai@gmail.com> wrote:
I connect the database using FreeTDS ODBC driver.
On Mon, Mar 5, 2018 at 10:20 PM, Abaci B <abaci64@gmail.com <mailto:abaci64@gmail.com>> wrote: how do you connect to the database?
On Mon, Mar 5, 2018 at 8:42 AM, Vishal Pai <vishalmpai@gmail.com <mailto:vishalmpai@gmail.com>> wrote: Hi All
I have built a IVR system in Freeswitch using LUA. In my IVR i am doing basic operation like select, insert etc. with remote MSSQL database.
I am using FreeSWITCH version: 1.6.19+git~20171120T163416Z~b1b21d0695~64bit (git b1b21d0 2017-11-20 16:34:16Z 64bit)
My concern is with the CPU usage it get more than 100% in just 3 calls.
Please suggest what should i do to get normal usage of CPU.
participants (3)
-
Abaci B
-
Michael Jerris
-
Vishal Pai