Cannot queue any more events.....
HI, I'm testing my freeswitch on Windows (1.2.14) 64 bit and I used pjsip-perf.exe --method=INVITE sip:2@127.0.0.1:5063 --count=1000 --thread=4 After a few hundred calls I start to get Cannot queue any more events..... and about 30 cps. A fast Bing search shows this line of code. Anyone know what this means and how to fix it? <http://docs.freeswitch.org/switch__cpp_8cpp.html#bf63f3ec89e7e6ace32f689869 5930b1> 00040 static void <http://docs.freeswitch.org/switch__cpp_8cpp.html#bf63f3ec89e7e6ace32f689869 5930b1> event_handler( <http://docs.freeswitch.org/structswitch__event.html> switch_event_t * <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325 a45> event) 00041 { 00042 <http://docs.freeswitch.org/classEventConsumer.html> EventConsumer *E = ( <http://docs.freeswitch.org/classEventConsumer.html> EventConsumer *) <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325 a45> event->bind_user_data; 00043 <http://docs.freeswitch.org/structswitch__event.html> switch_event_t *dup; 00044 00045 <http://docs.freeswitch.org/group__events.html#g84d51747affe16447c198259393f 7f5f> switch_event_dup(&dup, <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325 a45> event); 00046 00047 if ( <http://docs.freeswitch.org/group__switch__FIFO.html#g741daa24824e7980820491 29dda769cc> switch_queue_trypush(E-> <http://docs.freeswitch.org/classEventConsumer.html#2f2dfe6b5ce6d0e0eac6cbdc 035dcbd4> events, dup) != <http://docs.freeswitch.org/switch__types_8h.html#fedb3923fc3ae51937cef145c5 499dc1c65533002f858f1db8ea9a4aa9fd9784> SWITCH_STATUS_SUCCESS) { 00048 <http://docs.freeswitch.org/group__log.html#g5a8b2daf3d882cd8c92e7995ef7628f f> switch_log_printf( <http://docs.freeswitch.org/switch__types_8h.html#e66733232089cf717202d43a4a 8d4db2> SWITCH_CHANNEL_LOG, <http://docs.freeswitch.org/switch__types_8h.html#b74279dba7ee171b8b9d3decfc f1358417a4142baa45448bf4f74eb773d24870> SWITCH_LOG_ERROR, "Cannot queue any more events.....\n"); 00049 <http://docs.freeswitch.org/group__events.html#gd16cb49fa95c53cad45731669de4 0038> switch_event_destroy(&dup); 00050 } 00051 00052 }
You're using an event consumer somewhere in a lua script or dotnet binding or something and not popping from it so it fills it up. On Nov 14, 2013 4:46 PM, "Andre" <andretodd@verizon.net> wrote:
HI, I’m testing my freeswitch on Windows (1.2.14) 64 bit and I used pjsip-perf.exe --method=INVITE sip:2@127.0.0.1:5063 --count=1000 --thread=4
After a few hundred calls I start to get *Cannot queue any more events..... *and about 30 cps. A fast Bing search shows this line of code.
Anyone know what this means and how to fix it?
00040 <http://docs.freeswitch.org/switch__cpp_8cpp.html#bf63f3ec89e7e6ace32f6898695930b1> static void event_handler <http://docs.freeswitch.org/switch__cpp_8cpp.html#bf63f3ec89e7e6ace32f6898695930b1>(switch_event_t <http://docs.freeswitch.org/structswitch__event.html> *event <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325a45>)
00041 {
00042 EventConsumer <http://docs.freeswitch.org/classEventConsumer.html> *E = (EventConsumer <http://docs.freeswitch.org/classEventConsumer.html> *) event <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325a45>->bind_user_data;
00043 switch_event_t <http://docs.freeswitch.org/structswitch__event.html> *dup;
00044
00045 switch_event_dup <http://docs.freeswitch.org/group__events.html#g84d51747affe16447c198259393f7f5f>(&dup, event <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325a45>);
00046
00047 if (switch_queue_trypush <http://docs.freeswitch.org/group__switch__FIFO.html#g741daa24824e798082049129dda769cc>(E->events <http://docs.freeswitch.org/classEventConsumer.html#2f2dfe6b5ce6d0e0eac6cbdc035dcbd4>, dup) != SWITCH_STATUS_SUCCESS <http://docs.freeswitch.org/switch__types_8h.html#fedb3923fc3ae51937cef145c5499dc1c65533002f858f1db8ea9a4aa9fd9784>) {
00048 switch_log_printf <http://docs.freeswitch.org/group__log.html#g5a8b2daf3d882cd8c92e7995ef7628ff>(SWITCH_CHANNEL_LOG <http://docs.freeswitch.org/switch__types_8h.html#e66733232089cf717202d43a4a8d4db2>, SWITCH_LOG_ERROR <http://docs.freeswitch.org/switch__types_8h.html#b74279dba7ee171b8b9d3decfcf1358417a4142baa45448bf4f74eb773d24870>, "Cannot queue any more events.....\n");
00049 switch_event_destroy <http://docs.freeswitch.org/group__events.html#gd16cb49fa95c53cad45731669de40038>(&dup);
00050 }
00051
00052 }
_________________________________________________________________________ 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
It's .Net 4.5.1 and the memory exceeds 2GB then crashes in under 3 min at 30 cps. How do I release the memory? I made sure I dispose of these objects context.Session, Api and (switch_event evt = e.FsArgs.Parameters) Any help will be very appreciated. Thank you, Andre From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale Sent: Thursday, November 14, 2013 8:03 PM To: Freeswitch-users Subject: Re: [Freeswitch-users] Cannot queue any more events..... You're using an event consumer somewhere in a lua script or dotnet binding or something and not popping from it so it fills it up. On Nov 14, 2013 4:46 PM, "Andre" <andretodd@verizon.net <mailto:andretodd@verizon.net> > wrote: HI, I'm testing my freeswitch on Windows (1.2.14) 64 bit and I used pjsip-perf.exe --method=INVITE sip:2@127.0.0.1:5063 --count=1000 --thread=4 After a few hundred calls I start to get Cannot queue any more events..... and about 30 cps. A fast Bing search shows this line of code. Anyone know what this means and how to fix it? <http://docs.freeswitch.org/switch__cpp_8cpp.html#bf63f3ec89e7e6ace32f689869 5930b1> 00040 static void <http://docs.freeswitch.org/switch__cpp_8cpp.html#bf63f3ec89e7e6ace32f689869 5930b1> event_handler( <http://docs.freeswitch.org/structswitch__event.html> switch_event_t * <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325 a45> event) 00041 { 00042 <http://docs.freeswitch.org/classEventConsumer.html> EventConsumer *E = ( <http://docs.freeswitch.org/classEventConsumer.html> EventConsumer *) <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325 a45> event->bind_user_data; 00043 <http://docs.freeswitch.org/structswitch__event.html> switch_event_t *dup; 00044 00045 <http://docs.freeswitch.org/group__events.html#g84d51747affe16447c198259393f 7f5f> switch_event_dup(&dup, <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325 a45> event); 00046 00047 if ( <http://docs.freeswitch.org/group__switch__FIFO.html#g741daa24824e7980820491 29dda769cc> switch_queue_trypush(E-> <http://docs.freeswitch.org/classEventConsumer.html#2f2dfe6b5ce6d0e0eac6cbdc 035dcbd4> events, dup) != <http://docs.freeswitch.org/switch__types_8h.html#fedb3923fc3ae51937cef145c5 499dc1c65533002f858f1db8ea9a4aa9fd9784> SWITCH_STATUS_SUCCESS) { 00048 <http://docs.freeswitch.org/group__log.html#g5a8b2daf3d882cd8c92e7995ef7628f f> switch_log_printf( <http://docs.freeswitch.org/switch__types_8h.html#e66733232089cf717202d43a4a 8d4db2> SWITCH_CHANNEL_LOG, <http://docs.freeswitch.org/switch__types_8h.html#b74279dba7ee171b8b9d3decfc f1358417a4142baa45448bf4f74eb773d24870> SWITCH_LOG_ERROR, "Cannot queue any more events.....\n"); 00049 <http://docs.freeswitch.org/group__events.html#gd16cb49fa95c53cad45731669de4 0038> switch_event_destroy(&dup); 00050 } 00051 00052 } _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto: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 <mailto: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 do have a Consumer Event. My Pop is 1,1000 should that be changed to another value? watch = new EventConsumer("CHANNEL_HANGUP_COMPLETE", string.Empty, 100); watch.bind("SHUTDOWN", string.Empty); var evt = watch.pop(1, 1000); Thanks Andre From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Andre Sent: Thursday, November 14, 2013 8:23 PM To: 'FreeSWITCH Users Help' Subject: Re: [Freeswitch-users] Cannot queue any more events..... It's .Net 4.5.1 and the memory exceeds 2GB then crashes in under 3 min at 30 cps. How do I release the memory? I made sure I dispose of these objects context.Session, Api and (switch_event evt = e.FsArgs.Parameters) Any help will be very appreciated. Thank you, Andre From: freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale Sent: Thursday, November 14, 2013 8:03 PM To: Freeswitch-users Subject: Re: [Freeswitch-users] Cannot queue any more events..... You're using an event consumer somewhere in a lua script or dotnet binding or something and not popping from it so it fills it up. On Nov 14, 2013 4:46 PM, "Andre" <andretodd@verizon.net <mailto:andretodd@verizon.net> > wrote: HI, I'm testing my freeswitch on Windows (1.2.14) 64 bit and I used pjsip-perf.exe --method=INVITE sip:2@127.0.0.1:5063 --count=1000 --thread=4 After a few hundred calls I start to get Cannot queue any more events..... and about 30 cps. A fast Bing search shows this line of code. Anyone know what this means and how to fix it? <http://docs.freeswitch.org/switch__cpp_8cpp.html#bf63f3ec89e7e6ace32f689869 5930b1> 00040 static void <http://docs.freeswitch.org/switch__cpp_8cpp.html#bf63f3ec89e7e6ace32f689869 5930b1> event_handler( <http://docs.freeswitch.org/structswitch__event.html> switch_event_t * <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325 a45> event) 00041 { 00042 <http://docs.freeswitch.org/classEventConsumer.html> EventConsumer *E = ( <http://docs.freeswitch.org/classEventConsumer.html> EventConsumer *) <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325 a45> event->bind_user_data; 00043 <http://docs.freeswitch.org/structswitch__event.html> switch_event_t *dup; 00044 00045 <http://docs.freeswitch.org/group__events.html#g84d51747affe16447c198259393f 7f5f> switch_event_dup(&dup, <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325 a45> event); 00046 00047 if ( <http://docs.freeswitch.org/group__switch__FIFO.html#g741daa24824e7980820491 29dda769cc> switch_queue_trypush(E-> <http://docs.freeswitch.org/classEventConsumer.html#2f2dfe6b5ce6d0e0eac6cbdc 035dcbd4> events, dup) != <http://docs.freeswitch.org/switch__types_8h.html#fedb3923fc3ae51937cef145c5 499dc1c65533002f858f1db8ea9a4aa9fd9784> SWITCH_STATUS_SUCCESS) { 00048 <http://docs.freeswitch.org/group__log.html#g5a8b2daf3d882cd8c92e7995ef7628f f> switch_log_printf( <http://docs.freeswitch.org/switch__types_8h.html#e66733232089cf717202d43a4a 8d4db2> SWITCH_CHANNEL_LOG, <http://docs.freeswitch.org/switch__types_8h.html#b74279dba7ee171b8b9d3decfc f1358417a4142baa45448bf4f74eb773d24870> SWITCH_LOG_ERROR, "Cannot queue any more events.....\n"); 00049 <http://docs.freeswitch.org/group__events.html#gd16cb49fa95c53cad45731669de4 0038> switch_event_destroy(&dup); 00050 } 00051 00052 } _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto: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 <mailto: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
Are you calling the pop in a loop somewhere? It should be calling it nonstop. You may want to make it bigger if you have a hard time keeping up. Use a bigger val than 100 in the constructor. On Fri, Nov 15, 2013 at 7:53 AM, Andre <andretodd@verizon.net> wrote:
I do have a Consumer Event. My Pop is 1,1000 should that be changed to another value?
watch = new EventConsumer("CHANNEL_HANGUP_COMPLETE", string.Empty, 100);
watch.bind("SHUTDOWN", string.Empty);
var evt = watch.pop(1, 1000);
Thanks
Andre
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Andre *Sent:* Thursday, November 14, 2013 8:23 PM *To:* 'FreeSWITCH Users Help'
*Subject:* Re: [Freeswitch-users] Cannot queue any more events.....
It’s .Net 4.5.1 and the memory exceeds 2GB then crashes in under 3 min at 30 cps.
How do I release the memory? I made sure I dispose of these objects
context.Session, Api and (switch_event evt = e.FsArgs.Parameters)
Any help will be very appreciated.
Thank you,
Andre
*From:* freeswitch-users-bounces@lists.freeswitch.org [ mailto:freeswitch-users-bounces@lists.freeswitch.org<freeswitch-users-bounces@lists.freeswitch.org>] *On Behalf Of *Anthony Minessale *Sent:* Thursday, November 14, 2013 8:03 PM *To:* Freeswitch-users *Subject:* Re: [Freeswitch-users] Cannot queue any more events.....
You're using an event consumer somewhere in a lua script or dotnet binding or something and not popping from it so it fills it up.
On Nov 14, 2013 4:46 PM, "Andre" <andretodd@verizon.net> wrote:
HI, I’m testing my freeswitch on Windows (1.2.14) 64 bit and I used pjsip-perf.exe --method=INVITE sip:2@127.0.0.1:5063 --count=1000 --thread=4
After a few hundred calls I start to get *Cannot queue any more events..... *and about 30 cps. A fast Bing search shows this line of code.
Anyone know what this means and how to fix it?
00040 <http://docs.freeswitch.org/switch__cpp_8cpp.html#bf63f3ec89e7e6ace32f6898695930b1> static void event_handler <http://docs.freeswitch.org/switch__cpp_8cpp.html#bf63f3ec89e7e6ace32f6898695930b1>(switch_event_t <http://docs.freeswitch.org/structswitch__event.html> *event <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325a45>)
00041 {
00042 EventConsumer <http://docs.freeswitch.org/classEventConsumer.html> *E = (EventConsumer <http://docs.freeswitch.org/classEventConsumer.html> *) event <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325a45>->bind_user_data;
00043 switch_event_t <http://docs.freeswitch.org/structswitch__event.html> *dup;
00044
00045 switch_event_dup <http://docs.freeswitch.org/group__events.html#g84d51747affe16447c198259393f7f5f>(&dup, event <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325a45>);
00046
00047 if (switch_queue_trypush <http://docs.freeswitch.org/group__switch__FIFO.html#g741daa24824e798082049129dda769cc>(E->events <http://docs.freeswitch.org/classEventConsumer.html#2f2dfe6b5ce6d0e0eac6cbdc035dcbd4>, dup) != SWITCH_STATUS_SUCCESS <http://docs.freeswitch.org/switch__types_8h.html#fedb3923fc3ae51937cef145c5499dc1c65533002f858f1db8ea9a4aa9fd9784>) {
00048 switch_log_printf <http://docs.freeswitch.org/group__log.html#g5a8b2daf3d882cd8c92e7995ef7628ff>(SWITCH_CHANNEL_LOG <http://docs.freeswitch.org/switch__types_8h.html#e66733232089cf717202d43a4a8d4db2>, SWITCH_LOG_ERROR <http://docs.freeswitch.org/switch__types_8h.html#b74279dba7ee171b8b9d3decfcf1358417a4142baa45448bf4f74eb773d24870>, "Cannot queue any more events.....\n");
00049 switch_event_destroy <http://docs.freeswitch.org/group__events.html#gd16cb49fa95c53cad45731669de40038>(&dup);
00050 }
00051
00052 }
_________________________________________________________________________ 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
_________________________________________________________________________ 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
Yes, I've changed it to 5000 and that seems to fixed that problem. After 4 minutes of testing the memory goes from 58 mb to 3gb and crashes. I am not sure if there is a memory leak in mod_managed. Per my memory profiler 8mb is used by .Net and the rest is unmanaged code. I am not sure on what steps to take. I've tested on 1.2.14 and 1.2.15 same results. Andre From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale Sent: Friday, November 15, 2013 11:38 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Cannot queue any more events..... Are you calling the pop in a loop somewhere? It should be calling it nonstop. You may want to make it bigger if you have a hard time keeping up. Use a bigger val than 100 in the constructor. On Fri, Nov 15, 2013 at 7:53 AM, Andre <andretodd@verizon.net <mailto:andretodd@verizon.net> > wrote: I do have a Consumer Event. My Pop is 1,1000 should that be changed to another value? watch = new EventConsumer("CHANNEL_HANGUP_COMPLETE", string.Empty, 100); watch.bind("SHUTDOWN", string.Empty); var evt = watch.pop(1, 1000); Thanks Andre From: freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> ] On Behalf Of Andre Sent: Thursday, November 14, 2013 8:23 PM To: 'FreeSWITCH Users Help' Subject: Re: [Freeswitch-users] Cannot queue any more events..... It's .Net 4.5.1 and the memory exceeds 2GB then crashes in under 3 min at 30 cps. How do I release the memory? I made sure I dispose of these objects context.Session, Api and (switch_event evt = e.FsArgs.Parameters) Any help will be very appreciated. Thank you, Andre From: freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale Sent: Thursday, November 14, 2013 8:03 PM To: Freeswitch-users Subject: Re: [Freeswitch-users] Cannot queue any more events..... You're using an event consumer somewhere in a lua script or dotnet binding or something and not popping from it so it fills it up. On Nov 14, 2013 4:46 PM, "Andre" <andretodd@verizon.net <mailto:andretodd@verizon.net> > wrote: HI, I'm testing my freeswitch on Windows (1.2.14) 64 bit and I used pjsip-perf.exe --method=INVITE sip:2@127.0.0.1:5063 --count=1000 --thread=4 After a few hundred calls I start to get Cannot queue any more events..... and about 30 cps. A fast Bing search shows this line of code. Anyone know what this means and how to fix it? <http://docs.freeswitch.org/switch__cpp_8cpp.html#bf63f3ec89e7e6ace32f689869 5930b1> 00040 static void <http://docs.freeswitch.org/switch__cpp_8cpp.html#bf63f3ec89e7e6ace32f689869 5930b1> event_handler( <http://docs.freeswitch.org/structswitch__event.html> switch_event_t * <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325 a45> event) 00041 { 00042 <http://docs.freeswitch.org/classEventConsumer.html> EventConsumer *E = ( <http://docs.freeswitch.org/classEventConsumer.html> EventConsumer *) <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325 a45> event->bind_user_data; 00043 <http://docs.freeswitch.org/structswitch__event.html> switch_event_t *dup; 00044 00045 <http://docs.freeswitch.org/group__events.html#g84d51747affe16447c198259393f 7f5f> switch_event_dup(&dup, <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325 a45> event); 00046 00047 if ( <http://docs.freeswitch.org/group__switch__FIFO.html#g741daa24824e7980820491 29dda769cc> switch_queue_trypush(E-> <http://docs.freeswitch.org/classEventConsumer.html#2f2dfe6b5ce6d0e0eac6cbdc 035dcbd4> events, dup) != <http://docs.freeswitch.org/switch__types_8h.html#fedb3923fc3ae51937cef145c5 499dc1c65533002f858f1db8ea9a4aa9fd9784> SWITCH_STATUS_SUCCESS) { 00048 <http://docs.freeswitch.org/group__log.html#g5a8b2daf3d882cd8c92e7995ef7628f f> switch_log_printf( <http://docs.freeswitch.org/switch__types_8h.html#e66733232089cf717202d43a4a 8d4db2> SWITCH_CHANNEL_LOG, <http://docs.freeswitch.org/switch__types_8h.html#b74279dba7ee171b8b9d3decfc f1358417a4142baa45448bf4f74eb773d24870> SWITCH_LOG_ERROR, "Cannot queue any more events.....\n"); 00049 <http://docs.freeswitch.org/group__events.html#gd16cb49fa95c53cad45731669de4 0038> switch_event_destroy(&dup); 00050 } 00051 00052 } _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
No idea what or how you are testing but you might want to talk to some of the other windows users about that. On Fri, Nov 15, 2013 at 11:16 AM, Andre <andretodd@verizon.net> wrote:
Yes, I’ve changed it to 5000 and that seems to fixed that problem.
After 4 minutes of testing the memory goes from 58 mb to 3gb and crashes. I am not sure if there is a memory leak in mod_managed. Per my memory profiler 8mb is used by .Net and the rest is unmanaged code.
I am not sure on what steps to take.
I’ve tested on 1.2.14 and 1.2.15 same results.
Andre
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Anthony Minessale *Sent:* Friday, November 15, 2013 11:38 AM
*To:* FreeSWITCH Users Help *Subject:* Re: [Freeswitch-users] Cannot queue any more events.....
Are you calling the pop in a loop somewhere? It should be calling it nonstop.
You may want to make it bigger if you have a hard time keeping up.
Use a bigger val than 100 in the constructor.
On Fri, Nov 15, 2013 at 7:53 AM, Andre <andretodd@verizon.net> wrote:
I do have a Consumer Event. My Pop is 1,1000 should that be changed to another value?
watch = new EventConsumer("CHANNEL_HANGUP_COMPLETE", string.Empty, 100);
watch.bind("SHUTDOWN", string.Empty);
var evt = watch.pop(1, 1000);
Thanks
Andre
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Andre *Sent:* Thursday, November 14, 2013 8:23 PM *To:* 'FreeSWITCH Users Help'
*Subject:* Re: [Freeswitch-users] Cannot queue any more events.....
It’s .Net 4.5.1 and the memory exceeds 2GB then crashes in under 3 min at 30 cps.
How do I release the memory? I made sure I dispose of these objects
context.Session, Api and (switch_event evt = e.FsArgs.Parameters)
Any help will be very appreciated.
Thank you,
Andre
*From:* freeswitch-users-bounces@lists.freeswitch.org [ mailto:freeswitch-users-bounces@lists.freeswitch.org<freeswitch-users-bounces@lists.freeswitch.org>] *On Behalf Of *Anthony Minessale *Sent:* Thursday, November 14, 2013 8:03 PM *To:* Freeswitch-users *Subject:* Re: [Freeswitch-users] Cannot queue any more events.....
You're using an event consumer somewhere in a lua script or dotnet binding or something and not popping from it so it fills it up.
On Nov 14, 2013 4:46 PM, "Andre" <andretodd@verizon.net> wrote:
HI, I’m testing my freeswitch on Windows (1.2.14) 64 bit and I used pjsip-perf.exe --method=INVITE sip:2@127.0.0.1:5063 --count=1000 --thread=4
After a few hundred calls I start to get *Cannot queue any more events..... *and about 30 cps. A fast Bing search shows this line of code.
Anyone know what this means and how to fix it?
00040 <http://docs.freeswitch.org/switch__cpp_8cpp.html#bf63f3ec89e7e6ace32f6898695930b1> static void event_handler <http://docs.freeswitch.org/switch__cpp_8cpp.html#bf63f3ec89e7e6ace32f6898695930b1>(switch_event_t <http://docs.freeswitch.org/structswitch__event.html> *event <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325a45>)
00041 {
00042 EventConsumer <http://docs.freeswitch.org/classEventConsumer.html> *E = (EventConsumer <http://docs.freeswitch.org/classEventConsumer.html> *) event <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325a45>->bind_user_data;
00043 switch_event_t <http://docs.freeswitch.org/structswitch__event.html> *dup;
00044
00045 switch_event_dup <http://docs.freeswitch.org/group__events.html#g84d51747affe16447c198259393f7f5f>(&dup, event <http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325a45>);
00046
00047 if (switch_queue_trypush <http://docs.freeswitch.org/group__switch__FIFO.html#g741daa24824e798082049129dda769cc>(E->events <http://docs.freeswitch.org/classEventConsumer.html#2f2dfe6b5ce6d0e0eac6cbdc035dcbd4>, dup) != SWITCH_STATUS_SUCCESS <http://docs.freeswitch.org/switch__types_8h.html#fedb3923fc3ae51937cef145c5499dc1c65533002f858f1db8ea9a4aa9fd9784>) {
00048 switch_log_printf <http://docs.freeswitch.org/group__log.html#g5a8b2daf3d882cd8c92e7995ef7628ff>(SWITCH_CHANNEL_LOG <http://docs.freeswitch.org/switch__types_8h.html#e66733232089cf717202d43a4a8d4db2>, SWITCH_LOG_ERROR <http://docs.freeswitch.org/switch__types_8h.html#b74279dba7ee171b8b9d3decfcf1358417a4142baa45448bf4f74eb773d24870>, "Cannot queue any more events.....\n");
00049 switch_event_destroy <http://docs.freeswitch.org/group__events.html#gd16cb49fa95c53cad45731669de40038>(&dup);
00050 }
00051
00052 }
_________________________________________________________________________ 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
_________________________________________________________________________ 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
-- 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
participants (2)
-
Andre
-
Anthony Minessale