Skip to content
Snippets Groups Projects
  • Mark Michelson's avatar
    6fbffe42
    res_pjsip: Set threadpool max size default to 50. · 6fbffe42
    Mark Michelson authored
    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
    6fbffe42
    History
    res_pjsip: Set threadpool max size default to 50.
    Mark Michelson authored
    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
config_system.c 8.65 KiB