The 'stasis/pool-control' task processor queue reached 500 scheduled tasks again

[2023-08-24 10:11:42] WARNING[837007][C-00000e3f]: taskprocessor.c:1225 taskprocessor_push: The 'stasis/pool-control' task processor queue reached 500 scheduled tasks again.
After an hour of work, it’s already starting to throw a similar error.
FreePBX 15.0.37.1
Asterisk 16.30.0
SIP Driver: chan_sip
637 sip peers [Monitored: 319 online, 316 offline Unmonitored: 2 online, 0 offline]

# free -h
               total        used        free      shared  buff/cache   available
Mem:            11Gi       3,1Gi       1,3Gi        43Mi       7,4Gi       8,3Gi
Swap:          4,0Gi       126Mi       3,9Gi

I have made changes to stasis.conf:

[threadpool]
;initial_size = 5
idle_timeout_sec = 20
max_size = 1500    
[declined_message_types]
decline=stasis_test_message_type
decline=confbridge_start_type
decline=confbridge_end_type
decline=confbridge_join_type
decline=confbridge_leave_type
decline=confbridge_start_record_type
decline=confbridge_stop_record_type
decline=confbridge_mute_type
decline=confbridge_unmute_type
decline=confbridge_talking_type
decline=dahdichannel_type
decline=meetme_join_type
decline=meetme_leave_type
decline=meetme_end_type
decline=meetme_mute_type
decline=meetme_talking_type
decline=meetme_talk_request_type
*CLI> core show taskprocessors

Processor                                                               Processed   In Queue  Max Depth  Low water High water
app_voicemail                                                               19840          0         94        450        500
ast_msg_queue                                                                   0          0          0        450        500
CCSS_core                                                                       0          0          0        450        500
dns_system_resolver_tp                                                          0          0          0        450        500
hep_queue_tp                                                                    0          0          0        450        500
iax2_transmit                                                                2702          0          1        450        500
sorcery/bucket-00000000                                                         0          0          0        450        500
sorcery/certificate-0000000c                                                    0          0          0        450        500
sorcery/file-00000001                                                           0          0          0        450        500
sorcery/general-0000000a                                                        0          0          0        450        500
sorcery/log_mappings-00000009                                                   0          0          0        450        500
sorcery/pool                                                                    0          0          0        450        500
sorcery/pool-control                                                            0          0          0        450        500
sorcery/profile-0000000d                                                        0          0          0        450        500
sorcery/store-0000000b                                                          0          0          0        450        500
stasis/m:cache_pattern:0/endpoint:all-00000008                              26980          0          2        450        500
stasis/m:cdr:aggregator-00000005                                          1565686          0        158       4500       5000
stasis/m:cel:aggregator-00000006                                          1528591          0       1615       2700       3000
stasis/m:channel:all-00000500                                                2245          0          2        450        500
stasis/m:devicestate:all-00000002                                          121239          0         24        450        500
stasis/m:devicestate:all-00000003                                          143788          0         66        450        500
stasis/m:devicestate:all-000004ff                                          121112          0         96        450        500
stasis/m:manager:core-00000007                                            4623399          0       2177       2700       3000
stasis/m:mwi:all-000004fc                                                     114          0          7        450        500
stasis/m:mwi:all-000004fd                                                   20034          0         45        450        500
stasis/m:parking:all-000004fb                                                   0          0          0        450        500
stasis/m:presence_state:all-00000004                                            0          0          0        450        500
stasis/m:security:all-000004fe                                              75091          0          3        450        500
stasis/m:system:all-0000000e                                                    0          0          0        450        500
stasis/m:system:all-00000010                                                    0          0          0        450        500
stasis/p:bridge:all-000016d1                                                 5704          0         15        450        500
stasis/p:bridge:all-00002fa3                                                  233          0          7        450        500
stasis/p:bridge:all-00002fa7                                                  175          0          7        450        500
stasis/p:bridge:all-00003215                                                  160          0          7        450        500
stasis/p:bridge:all-00003219                                                  133          0          7        450        500
stasis/p:bridge:all-0000321b                                                  115          0          7        450        500
stasis/p:bridge:all-00003489                                                   44          0          7        450        500
stasis/p:bridge:all-0000348b                                                   36          0          7        450        500
stasis/p:bridge:all-0000348d                                                    8          0          3        450        500
stasis/p:channel:all-000016d2                                              431038          0        241        450        500
stasis/p:channel:all-00002fa4                                               15101          0        120        450        500
stasis/p:channel:all-00002fa8                                               11334          0        100        450        500
stasis/p:channel:all-00003216                                                9494          0         83        450        500
stasis/p:channel:all-0000321a                                                9228          0         83        450        500
stasis/p:channel:all-0000321c                                                8633          0         83        450        500
stasis/p:channel:all-0000348a                                                3405          0         55        450        500
stasis/p:channel:all-0000348c                                                2454          0         55        450        500
stasis/p:channel:all-0000348e                                                1027          0          6        450        500
...
stasis/pool                                                              30944475          0         50        450        500
stasis/pool-control                                                      48142597          0      13972        450        500

1306 taskprocessors

What can I customize/do to remove this error with stasis?
Could it depend on mariadb settings?

There is no magic answer for that, and you’re using a security fix only version of Asterisk with a channel driver that is no longer supported. The message occurs due to the underlying usage of Asterisk and how much is going on and how fast it is being processed. You’d need to explain how you’re using FreePBX. 18 had some performance improvements in this area.

After switching to version 18 the error did not go away, but the asterisk stopped rebooting from overloading. And work with ami became more stable.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.