Error message " [ERR] switch_cpp.cpp:48 Cannot queue any more events“
I use Mod event to fill channel cariables in my mysql table。When freeswitch runing some time,I got a lot of the following error messages: [ERR] switch_cpp.cpp:48 Cannot queue any more events。 This messages telling me that i have consumed too many events in my event consumer object. it has reached its max. Then the channel cariables can not be filled in mysql。 How can I solve this? Thanks! -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Error-message-ERR-switch-cpp-c... Sent from the freeswitch-users mailing list archive at Nabble.com.
consume some? That means you have built up 5000 unserviced events. I added a patch to latest git to add a param for the size of the queue but 5000 is fairly generous already. EventConsumer("event_name", "", 100000) On Wed, Jun 13, 2012 at 10:51 PM, tangdu <tang.du@hotmail.com> wrote:
I use Mod event to fill channel cariables in my mysql table。When freeswitch runing some time,I got a lot of the following error messages: [ERR] switch_cpp.cpp:48 Cannot queue any more events。 This messages telling me that i have consumed too many events in my event consumer object. it has reached its max. Then the channel cariables can not be filled in mysql。 How can I solve this? Thanks!
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Error-message-ERR-switch-cpp-c... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Where can I set this limit in Freeswitch. I've been hitting the limit quite regularly while using it to run call campaigns. Cheers -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Error-message-ERR-switch-cpp-c... Sent from the freeswitch-users mailing list archive at Nabble.com.
Its the 3rd arg to the EventConsumer constructor and it defaults to 5000 On Mon, May 13, 2013 at 10:31 PM, alex_ynema <alex@opensystems.net.au>wrote:
Where can I set this limit in Freeswitch. I've been hitting the limit quite regularly while using it to run call campaigns.
Cheers
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Error-message-ERR-switch-cpp-c... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Don't set it so high that you run out of memory. If your queue is growing now, with a higher limit it's going to grow more so. I suggest you look at how to speed up your consuming. Some ideas: - Use a new MySQL version - 5.5/5.6 (there will be numerous performance improvements over older versions) - Use the innodb engine (row locking this will better performance as multiple connections can use the table at the same time) - Use multiple DB connections at the same time (which will allow multiple DB threads therefore using all the cores of your CPU) - Use a large innodb buffer size (ideally this should be as large as your data set or at least what you actively use - this'll mean you don't need to read from disk as often and so reads *and* writes will be faster) - Use EXPLAIN to tune your queries and indexes. Don't underindex (so you can find/update data quickly) but also don't overindex (which will waste cpu and disk updating indexes that are rarely/never used). There're numerous other ways to tune it too. -Steve On 14 May 2013 16:43, Anthony Minessale <anthony.minessale@gmail.com> wrote:
Its the 3rd arg to the EventConsumer constructor and it defaults to 5000
On Mon, May 13, 2013 at 10:31 PM, alex_ynema <alex@opensystems.net.au>wrote:
Where can I set this limit in Freeswitch. I've been hitting the limit quite regularly while using it to run call campaigns.
Cheers
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Error-message-ERR-switch-cpp-c... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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 am also having the same issue. Thank you for the explanation Anthony. Unfortunately I am a noob and am not sure how to change this limit. Could you provide a few short steps to get me started. Commands would be greatly appreciated. Cheers! -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Error-message-ERR-switch-cpp-c... Sent from the freeswitch-users mailing list archive at Nabble.com.
Also, make sure that you are filtering events and only receive those that you actually need. Guillermo On Thu, Aug 22, 2013 at 6:53 PM, bjamm90 <bjamm90@gmail.com> wrote:
I am also having the same issue. Thank you for the explanation Anthony. Unfortunately I am a noob and am not sure how to change this limit.
Could you provide a few short steps to get me started. Commands would be greatly appreciated.
Cheers!
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Error-message-ERR-switch-cpp-c... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Guillermo Ruiz Camauer
Doesn't this also mean that your program can't keep up with all of the events coming in? You may need to make your program more efficient or slow down the speed of the campaign. Have you been able to determine why your program isn't consuming events quickly enough? -MC On Mon, May 13, 2013 at 8:31 PM, alex_ynema <alex@opensystems.net.au> wrote:
Where can I set this limit in Freeswitch. I've been hitting the limit quite regularly while using it to run call campaigns.
Cheers
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Error-message-ERR-switch-cpp-c... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
participants (7)
-
alex_ynema
-
Anthony Minessale
-
bjamm90
-
Guillermo Ruiz Camauer
-
Michael Collins
-
Steven Ayre
-
tangdu