]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Set threadpool max size default to 50. 51/1551/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:24:24 +0000 (18:24 -0500)
commit62799fe778aa21e19eaef97997732c437ff6f7ed
tree3ef9708b6369118de33e685e6e0a7035965f85e2
parent7b6fa02173088f32686047c434bc4a9bda4a0b55
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