Strange problem with sessions-per-second - requires hard coding - wtf?
Hello all, Attempting to increase 'sessions-per-second' to 100 does not appear to make any difference. Inside switch.conf, I have the following; <param name="max-sessions" value="1000"/> <param name="sessions-per-second" value="100"/> And yet for some reason, I still get this; 2012-10-30 04:20:22.205003 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.224956 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.244981 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.265109 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.309297 [CRIT] switch_time.c:997 Over Session Rate of 30! Which then eventually leads to this; 2012-10-30 04:29:42.284991 [CRIT] switch_time.c:997 Over Session Rate of 30! VAL: tried to access cart in -4784 type val After looking through the source code, I found only a few places where this is referenced; ./src/switch_core.c: runtime.sps_total = 30; ./src/switch_core.c: runtime.sps_total = oldintval; ./src/switch_core.c: newintval = runtime.sps_total; ./src/include/private/switch_core_pvt.h: uint32_t sps_total; ./src/switch_time.c: runtime.sps = runtime.sps_total; ./src/switch_time.c: switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Over Session Rate of %d!\n", runtime.sps_total); ./src/switch_time.c: runtime.sps_last = runtime.sps_total - runtime.sps; ./src/switch_time.c: runtime.sps = runtime.sps_total; ./src/switch_core_session.c: runtime.sps_total = new_limit; ./src/switch_core_session.c: return runtime.sps_total; So for shits and giggles, I changed runtime.sps_total from 30 to 101 in the code, and low and behold it worked fine - wtf? lol. 2012-10-30 04:42:02.084961 [CRIT] switch_core_session.c:2038 Throttle Error! 972 2012-10-30 04:42:02.084961 [CRIT] switch_core_session.c:2038 Throttle Error! 972 2012-10-30 04:42:02.104969 [CRIT] switch_time.c:997 Over Session Rate of 101! Does anyone know why FS seems to be ignoring the "sessions-per-second" value? Thanks Cal
Did you restart FreeSWITCH after changing this param in switch.conf? Thanks, -- Muhammad Naseer Bhatti On Oct 30, 2012, at 7:43 AM, "Cal Leeming [Simplicity Media Ltd]" <cal.leeming@simplicitymedialtd.co.uk> wrote:
Hello all,
Attempting to increase 'sessions-per-second' to 100 does not appear to make any difference.
Inside switch.conf, I have the following;
<param name="max-sessions" value="1000"/> <param name="sessions-per-second" value="100"/>
And yet for some reason, I still get this; 2012-10-30 04:20:22.205003 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.224956 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.244981 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.265109 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.309297 [CRIT] switch_time.c:997 Over Session Rate of 30!
Which then eventually leads to this;
2012-10-30 04:29:42.284991 [CRIT] switch_time.c:997 Over Session Rate of 30! VAL: tried to access cart in -4784 type val
After looking through the source code, I found only a few places where this is referenced;
./src/switch_core.c: runtime.sps_total = 30; ./src/switch_core.c: runtime.sps_total = oldintval; ./src/switch_core.c: newintval = runtime.sps_total; ./src/include/private/switch_core_pvt.h: uint32_t sps_total; ./src/switch_time.c: runtime.sps = runtime.sps_total; ./src/switch_time.c: switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Over Session Rate of %d!\n", runtime.sps_total); ./src/switch_time.c: runtime.sps_last = runtime.sps_total - runtime.sps; ./src/switch_time.c: runtime.sps = runtime.sps_total; ./src/switch_core_session.c: runtime.sps_total = new_limit; ./src/switch_core_session.c: return runtime.sps_total;
So for shits and giggles, I changed runtime.sps_total from 30 to 101 in the code, and low and behold it worked fine - wtf? lol.
2012-10-30 04:42:02.084961 [CRIT] switch_core_session.c:2038 Throttle Error! 972 2012-10-30 04:42:02.084961 [CRIT] switch_core_session.c:2038 Throttle Error! 972 2012-10-30 04:42:02.104969 [CRIT] switch_time.c:997 Over Session Rate of 101!
Does anyone know why FS seems to be ignoring the "sessions-per-second" value?
Thanks
Cal _________________________________________________________________________ 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
The switch.conf is loaded in via mod_xml_curl. However I have not confirmed whether the bug still exists if it uses a static file - so I shall do this first and post back the results. Cal On Tue, Oct 30, 2012 at 1:16 PM, Muhammad Naseer Bhatti <nbhatti@gmail.com>wrote:
Did you restart FreeSWITCH after changing this param in switch.conf?
Thanks, -- Muhammad Naseer Bhatti
On Oct 30, 2012, at 7:43 AM, "Cal Leeming [Simplicity Media Ltd]" < cal.leeming@simplicitymedialtd.co.uk> wrote:
Hello all,
Attempting to increase 'sessions-per-second' to 100 does not appear to make any difference.
Inside switch.conf, I have the following;
<param name="max-sessions" value="1000"/> <param name="sessions-per-second" value="100"/>
And yet for some reason, I still get this; 2012-10-30 04:20:22.205003 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.224956 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.244981 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.265109 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.309297 [CRIT] switch_time.c:997 Over Session Rate of 30!
Which then eventually leads to this;
2012-10-30 04:29:42.284991 [CRIT] switch_time.c:997 Over Session Rate of 30! VAL: tried to access cart in -4784 type val
After looking through the source code, I found only a few places where this is referenced;
./src/switch_core.c: runtime.sps_total = 30; ./src/switch_core.c: runtime.sps_total = oldintval; ./src/switch_core.c: newintval = runtime.sps_total; ./src/include/private/switch_core_pvt.h: uint32_t sps_total; ./src/switch_time.c: runtime.sps = runtime.sps_total; ./src/switch_time.c: switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Over Session Rate of %d!\n", runtime.sps_total); ./src/switch_time.c: runtime.sps_last = runtime.sps_total - runtime.sps; ./src/switch_time.c: runtime.sps = runtime.sps_total; ./src/switch_core_session.c: runtime.sps_total = new_limit; ./src/switch_core_session.c: return runtime.sps_total;
So for shits and giggles, I changed runtime.sps_total from 30 to 101 in the code, and low and behold it worked fine - wtf? lol.
2012-10-30 04:42:02.084961 [CRIT] switch_core_session.c:2038 Throttle Error! 972 2012-10-30 04:42:02.084961 [CRIT] switch_core_session.c:2038 Throttle Error! 972 2012-10-30 04:42:02.104969 [CRIT] switch_time.c:997 Over Session Rate of 101!
Does anyone know why FS seems to be ignoring the "sessions-per-second" value?
Thanks
Cal _________________________________________________________________________ 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
I don¹t know if that setting can be set that way... Or that might be a bug... I know that if you are using static files setting it in switch.conf.xml works... (if it didn¹t work I would be constantly setting that on my switches lol) K On 10/30/12 8:32 AM, "Cal Leeming [Simplicity Media Ltd]" <cal.leeming@simplicitymedialtd.co.uk> wrote:
The switch.conf is loaded in via mod_xml_curl.
However I have not confirmed whether the bug still exists if it uses a static file - so I shall do this first and post back the results.
Cal
On Tue, Oct 30, 2012 at 1:16 PM, Muhammad Naseer Bhatti <nbhatti@gmail.com> wrote:
Did you restart FreeSWITCH after changing this param in switch.conf?
Thanks, -- Muhammad Naseer Bhatti
On Oct 30, 2012, at 7:43 AM, "Cal Leeming [Simplicity Media Ltd]" <cal.leeming@simplicitymedialtd.co.uk> wrote:
Hello all,
Attempting to increase 'sessions-per-second' to 100 does not appear to make any difference.
Inside switch.conf, I have the following;
<param name="max-sessions" value="1000"/> <param name="sessions-per-second" value="100"/>
And yet for some reason, I still get this; 2012-10-30 04:20:22.205003 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.224956 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.244981 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.265109 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.309297 [CRIT] switch_time.c:997 Over Session Rate of 30!
Which then eventually leads to this;
2012-10-30 04:29:42.284991 [CRIT] switch_time.c:997 Over Session Rate of 30! VAL: tried to access cart in -4784 type val
After looking through the source code, I found only a few places where this is referenced;
./src/switch_core.c: runtime.sps_total = 30; ./src/switch_core.c: runtime.sps_total = oldintval; ./src/switch_core.c: newintval = runtime.sps_total; ./src/include/private/switch_core_pvt.h: uint32_t sps_total; ./src/switch_time.c: runtime.sps = runtime.sps_total; ./src/switch_time.c: switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Over Session Rate of %d!\n", runtime.sps_total); ./src/switch_time.c: runtime.sps_last = runtime.sps_total - runtime.sps; ./src/switch_time.c: runtime.sps = runtime.sps_total; ./src/switch_core_session.c: runtime.sps_total = new_limit; ./src/switch_core_session.c: return runtime.sps_total;
So for shits and giggles, I changed runtime.sps_total from 30 to 101 in the code, and low and behold it worked fine - wtf? lol.
2012-10-30 04:42:02.084961 [CRIT] switch_core_session.c:2038 Throttle Error! 972 2012-10-30 04:42:02.084961 [CRIT] switch_core_session.c:2038 Throttle Error! 972 2012-10-30 04:42:02.104969 [CRIT] switch_time.c:997 Over Session Rate of 101!
Does anyone know why FS seems to be ignoring the "sessions-per-second" value?
Thanks
Cal _________________________________________________________________________ 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
_________________________________________________________________________ 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
-- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch
On Tue, Oct 30, 2012 at 7:32 AM, Cal Leeming [Simplicity Media Ltd] <cal.leeming@simplicitymedialtd.co.uk> wrote:
The switch.conf is loaded in via mod_xml_curl.
Are there other values in the switch.conf that you're serving up that appear to be working? Is switch.conf loaded after mod_xml_curl? Is there a copy of switch.conf on disk that it might be falling back to? What happens when you change the value in that file? Good luck and happy hacking! Gabe
when you serve switch.conf.xml over xml curl you have to wait for the call to get "post_load_switch.conf" The static switch.conf is already loaded but it calls this one after all the modules are loaded in case you are using an xml binding to set switch.conf values. On Tue, Oct 30, 2012 at 12:24 PM, Gabriel Gunderson <gabe@gundy.org> wrote:
On Tue, Oct 30, 2012 at 7:32 AM, Cal Leeming [Simplicity Media Ltd] <cal.leeming@simplicitymedialtd.co.uk> wrote:
The switch.conf is loaded in via mod_xml_curl.
Are there other values in the switch.conf that you're serving up that appear to be working?
Is switch.conf loaded after mod_xml_curl? Is there a copy of switch.conf on disk that it might be falling back to? What happens when you change the value in that file?
Good luck and happy hacking!
Gabe
_________________________________________________________________________ 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
Hi Anthony, Thank you very much for clarifying, this has probably saved me a few hours! Could you possibly take a few minutes to explain when/why post_load is used, I found a related thread [1] and read the wiki page [2], but couldn't find any clear answer. [1] http://www.mail-archive.com/freeswitch-users@lists.freeswitch.org/msg06006.h... [2] http://wiki.freeswitch.org/wiki/Mod_xml_curl This is both for my own knowledge, and also so I can submit a documentation patch :) Another thing I have noticed is that the mod_xml_curl wiki documentation is in much need of some TLC, and I'd be more than happy to donate a few hours towards re-factoring it (assuming the core team are happy for me to do this?) FS has saved me so much time and effort, so it'd be good to give something in return! Cheers Ca On Tue, Oct 30, 2012 at 5:44 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
when you serve switch.conf.xml over xml curl you have to wait for the call to get "post_load_switch.conf" The static switch.conf is already loaded but it calls this one after all the modules are loaded in case you are using an xml binding to set switch.conf values.
On Tue, Oct 30, 2012 at 12:24 PM, Gabriel Gunderson <gabe@gundy.org>wrote:
On Tue, Oct 30, 2012 at 7:32 AM, Cal Leeming [Simplicity Media Ltd] <cal.leeming@simplicitymedialtd.co.uk> wrote:
The switch.conf is loaded in via mod_xml_curl.
Are there other values in the switch.conf that you're serving up that appear to be working?
Is switch.conf loaded after mod_xml_curl? Is there a copy of switch.conf on disk that it might be falling back to? What happens when you change the value in that file?
Good luck and happy hacking!
Gabe
_________________________________________________________________________ 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
hey cal we welcomeadditions to the documentation. let me know how i can help you get started. if need be stop by irc, i'm swk there On Oct 30, 2012 5:14 PM, "Cal Leeming [Simplicity Media Ltd]" < cal.leeming@simplicitymedialtd.co.uk> wrote:
Hi Anthony,
Thank you very much for clarifying, this has probably saved me a few hours!
Could you possibly take a few minutes to explain when/why post_load is used, I found a related thread [1] and read the wiki page [2], but couldn't find any clear answer.
[1] http://www.mail-archive.com/freeswitch-users@lists.freeswitch.org/msg06006.h... [2] http://wiki.freeswitch.org/wiki/Mod_xml_curl
This is both for my own knowledge, and also so I can submit a documentation patch :)
Another thing I have noticed is that the mod_xml_curl wiki documentation is in much need of some TLC, and I'd be more than happy to donate a few hours towards re-factoring it (assuming the core team are happy for me to do this?)
FS has saved me so much time and effort, so it'd be good to give something in return!
Cheers
Ca
On Tue, Oct 30, 2012 at 5:44 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
when you serve switch.conf.xml over xml curl you have to wait for the call to get "post_load_switch.conf" The static switch.conf is already loaded but it calls this one after all the modules are loaded in case you are using an xml binding to set switch.conf values.
On Tue, Oct 30, 2012 at 12:24 PM, Gabriel Gunderson <gabe@gundy.org>wrote:
On Tue, Oct 30, 2012 at 7:32 AM, Cal Leeming [Simplicity Media Ltd] <cal.leeming@simplicitymedialtd.co.uk> wrote:
The switch.conf is loaded in via mod_xml_curl.
Are there other values in the switch.conf that you're serving up that appear to be working?
Is switch.conf loaded after mod_xml_curl? Is there a copy of switch.conf on disk that it might be falling back to? What happens when you change the value in that file?
Good luck and happy hacking!
Gabe
_________________________________________________________________________ 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
_________________________________________________________________________ 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
fsctl sps NEW_LIMIT
From fs_cli to change it while the switch is running...
On 10/30/12 8:16 AM, "Muhammad Bhatti" <nbhatti@gmail.com> wrote:
Did you restart FreeSWITCH after changing this param in switch.conf?
Thanks, -- Muhammad Naseer Bhatti
On Oct 30, 2012, at 7:43 AM, "Cal Leeming [Simplicity Media Ltd]" <cal.leeming@simplicitymedialtd.co.uk> wrote:
Hello all,
Attempting to increase 'sessions-per-second' to 100 does not appear to make any difference.
Inside switch.conf, I have the following;
<param name="max-sessions" value="1000"/> <param name="sessions-per-second" value="100"/>
And yet for some reason, I still get this; 2012-10-30 04:20:22.205003 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.224956 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.244981 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.265109 [CRIT] switch_core_session.c:2038 Throttle Error! 99 2012-10-30 04:20:22.309297 [CRIT] switch_time.c:997 Over Session Rate of 30!
Which then eventually leads to this;
2012-10-30 04:29:42.284991 [CRIT] switch_time.c:997 Over Session Rate of 30! VAL: tried to access cart in -4784 type val
After looking through the source code, I found only a few places where this is referenced;
./src/switch_core.c: runtime.sps_total = 30; ./src/switch_core.c: runtime.sps_total = oldintval; ./src/switch_core.c: newintval = runtime.sps_total; ./src/include/private/switch_core_pvt.h: uint32_t sps_total; ./src/switch_time.c: runtime.sps = runtime.sps_total; ./src/switch_time.c: switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Over Session Rate of %d!\n", runtime.sps_total); ./src/switch_time.c: runtime.sps_last = runtime.sps_total - runtime.sps; ./src/switch_time.c: runtime.sps = runtime.sps_total; ./src/switch_core_session.c: runtime.sps_total = new_limit; ./src/switch_core_session.c: return runtime.sps_total;
So for shits and giggles, I changed runtime.sps_total from 30 to 101 in the code, and low and behold it worked fine - wtf? lol.
2012-10-30 04:42:02.084961 [CRIT] switch_core_session.c:2038 Throttle Error! 972 2012-10-30 04:42:02.084961 [CRIT] switch_core_session.c:2038 Throttle Error! 972 2012-10-30 04:42:02.104969 [CRIT] switch_time.c:997 Over Session Rate of 101!
Does anyone know why FS seems to be ignoring the "sessions-per-second" value?
Thanks
Cal _________________________________________________________________________ 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
-- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch
participants (5)
-
Anthony Minessale
-
Cal Leeming [Simplicity Media Ltd]
-
Gabriel Gunderson
-
Ken Rice
-
Muhammad Naseer Bhatti