<p dir="ltr"><br>
It&#39;s not set to 5000 it&#39;s hitting the session limit of 1000 which is weird as our sip provider has set a limit of 100 on our trunk. It appears that some sessions aren&#39;t being closed off properly. <br>
/etc/freeswitch/autoload_configs/switch.conf.xml<br>
Max-sesssions parameter</p>
<p dir="ltr">The system is a fully up to date Ubuntu server LTS install too.</p>
<p dir="ltr">I was watching it last night during an active survey and it sat between 50-100 sessions. Our campaigns are set to no more than 150calls per minute. Which should keep the sessions low. </p>
<p dir="ltr">Alex Ynema | IT Consultant<br>
<a href="mailto:alex@opensystems.net.au">alex@opensystems.net.au</a></p>
<p dir="ltr">Mobile: +61 404 796 894</p>
<p dir="ltr">IT Consultant for Open Systems Support<br>
<a href="http://www.opensystems.net.au">www.opensystems.net.au</a></p>
<div class="gmail_quote">On 15/05/2013 8:15 AM, &quot;Alex Ynema&quot; &lt;<a href="mailto:alex@ynema.net">alex@ynema.net</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">It&#39;s not set to 5000 it&#39;s hitting the session limit of 1000 which is weird as our sip provider has set a limit of 100 on our trunk. It appears that some sessions aren&#39;t being closed off properly. <br>


 /etc/freeswitch/autoload_configs/switch.conf.xml<br>
Max-sesssions parameter</p>
<p dir="ltr">The system is a fully up to date Ubuntu server LTS install too. </p>
<p dir="ltr">I was watching it last night during an active survey and it sat between 50-100 sessions. Our campaigns are set to no more than 150calls per minute. Which should keep the sessions low. <br></p>
<p dir="ltr">Alex Ynema | IT Consultant<br>
<a href="mailto:alex@opensystems.net.au" target="_blank">alex@opensystems.net.au</a></p>
<p dir="ltr">Mobile: <a href="tel:%2B61%20404%20796%20894" value="+61404796894" target="_blank">+61 404 796 894</a></p>
<p dir="ltr">IT Consultant for Open Systems Support<br>
<a href="http://www.opensystems.net.au" target="_blank">www.opensystems.net.au</a></p>
<div class="gmail_quote">On 15/05/2013 6:25 AM, &quot;Steven Ayre&quot; &lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Don&#39;t set it so high that you run out of memory. If your queue is growing now, with a higher limit it&#39;s going to grow more so.<div><br></div><div>I suggest you look at how to speed up your consuming. Some ideas:</div>



<div><br></div><div>- Use a new MySQL version - 5.5/5.6 (there will be numerous performance improvements over older versions)</div><div>- Use the innodb engine (row locking this will better performance as multiple connections can use the table at the same time)</div>



<div>- Use multiple DB connections at the same time (which will allow multiple DB threads therefore using all the cores of your CPU)</div><div>- Use a large innodb buffer size (ideally this should be as large as your data set or at least what you actively use - this&#39;ll mean you don&#39;t need to read from disk as often and so reads *and* writes will be faster)</div>



<div>- Use EXPLAIN to tune your queries and indexes. Don&#39;t underindex (so you can find/update data quickly) but also don&#39;t overindex (which will waste cpu and disk updating indexes that are rarely/never used).</div>



<div><br></div><div>There&#39;re numerous other ways to tune it too.</div><div><br></div><div>-Steve</div><div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On 14 May 2013 16:43, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Its the 3rd arg to the EventConsumer constructor and it defaults to 5000<div><br></div></div><div class="gmail_extra">



<div><div><br><br><div class="gmail_quote">On Mon, May 13, 2013 at 10:31 PM, alex_ynema <span dir="ltr">&lt;<a href="mailto:alex@opensystems.net.au" target="_blank">alex@opensystems.net.au</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Where can I set this limit in Freeswitch.<br>
I&#39;ve been hitting the limit quite regularly while using it to run call<br>
campaigns.<br>
<br>
Cheers<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/Error-message-ERR-switch-cpp-cpp-48-Cannot-queue-any-more-events-tp7579817p7590651.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/Error-message-ERR-switch-cpp-cpp-48-Cannot-queue-any-more-events-tp7579817p7590651.html</a><br>





Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><div><br></div></div></div><div>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>




Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>



GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>



<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:<a href="tel:%2B19193869900" value="+19193869900" target="_blank">+19193869900</a>
</div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div>
</blockquote></div>