]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Set threadpool max size default to 50. 49/1549/1
authorMark Michelson <mmichelson@digium.com>
Mon, 2 Nov 2015 23:19:21 +0000 (17:19 -0600)
committerMark Michelson <mmichelson@digium.com>
Mon, 2 Nov 2015 23:19:21 +0000 (17:19 -0600)
commit6fbffe42e13d82eebd5545de9a74b6a36bd9a558
treecdf40d096b9a89a2a47506dc3c49b47c0d60b16e
parent0071a993f0561664d074d461759fc3259bd9c926
res_pjsip: Set threadpool max size default to 50.

During a stress test of subscriptions, a huge blast of
subscription-related traffic resulted in the threadpool expanding to a
ridiculous number of threads. The balooning of threads resulted in an
increase of memory, which led to a crash due to being out of memory.

An easy fix for the particular test was to limit the size of the
threadpool, thus reining in the amount of memory that would be used. It
was decided that there really is no downside to having a non-infinite
default value for the maximum size of the threadpool, so this change
introduces 50 threads as the maximum threadpool size for the SIP
threadpool.

ASTERISK-25513 #close
Reported by John Bigelow

Change-Id: If0b9514f1d9b172540ce1a6e2f2ffa1f2b6119be
res/res_pjsip/config_system.c