Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning
titleWarning!

Compiling with DEBUG_THREADS can reduce the performance of Asterisk. Primarily in terms of memory CPU consumption.

This command is not available until you compile with DEBUG_THREADS and it is generally preferred that you also compile with BETTER_BACKTRACES to get the most useful output.

...

Expand
titleExample command output
Code Block
ubuntu*CLI> core show taskprocessors

	+----- Processor -----+--- Processed ---+- In Queue -+- Max Depth -+
               app_queue                   8            0            0
   core_event_dispatcher                  29            0            1
           app_voicemail                   0            0            0
                pbx-core                  11            0            0
           ast_msg_queue                   0            0            0
               CCSS core                   0            0            0
           iax2_transmit                   0            0            0
	+---------------------+-----------------+------------+-------------+
	7 taskprocessors
Expand
titleExample command output (Asterisk 13)
Code Block
*CLI> core show taskprocessors
Processor                                      Processed   In Queue  Max Depth  Low water High water
app_voicemail                                          0          0          0        450        500
ast_msg_queue                                          0          0          0        450        500
CCSS_core                                              0          0          0        450        500
iax2_transmit                                          0          0          0        450        500
pjsip/default-0000000a                                 4          0          1        450        500
pjsip/default-0000000b                                 3          0          1        450        500
pjsip/default-0000000c                                 3          0          1        450        500
pjsip/default-0000000d                                 3          0          1        450        500
pjsip/default-0000000e                                 3          0          1        450        500
pjsip/default-0000000f                                 3          0          1        450        500
pjsip/default-00000010                                 3          0          1        450        500
pjsip/default-00000011                                 3          0          1        450        500
pjsip/distributor-00000025                             0          0          0        450        500
pjsip/distributor-00000026                             0          0          0        450        500
pjsip/distributor-00000027                             0          0          0        450        500
pjsip/distributor-00000028                             0          0          0        450        500
pjsip/distributor-00000029                             0          0          0        450        500
...
subp:PJSIP/203-0000001f                                3          0          1        450        500
subp:PJSIP/ast_trunk-00000023                          3          0          1        450        500
subp:PJSIP/ekiga-00000021                              3          0          1        450        500
subp:PJSIP/linphone-00000022                           3          0          1        450        500
subp:PJSIP/sipp-00000020                               3          0          1        450        500
subp:PJSIP/weblooper-00000024                          6          0          1        450        500
118 taskprocessors

core show threads

Shows running threads!  Doesn't require any compilation flags to be set.

...

Expand
Code Block
newtonr-laptop*CLI> core show fd
Current maxfiles: unlimited
    3         utils.c:2310    (ast_utils_init           ): open("/dev/urandom",0)
    5      asterisk.c:1626    (ast_makesocket           ): socket(PF_UNIX,SOCK_STREAM,"tcp")
    6        logger.c:316     (make_logchannel          ): fopen("/var/log/asterisk/messages","a")
    7        logger.c:316     (make_logchannel          ): fopen("/var/log/asterisk/full","a")
    9        tcptls.c:585     (ast_tcptls_server_start  ): socket(PF_INET,SOCK_STREAM,"tcp")
   15       netsock.c:120     (ast_netsock_bindaddr     ): socket(PF_INET,SOCK_DGRAM,"udp")
   16      chan_sip.c:32197   (reload_config            ): socket(PF_INET,SOCK_DGRAM,"udp")
   17   chan_skinny.c:8502    (config_load              ): socket(PF_INET,SOCK_STREAM,"tcp")
   21     pbx_dundi.c:5022    (load_module              ): socket(PF_INET,SOCK_DGRAM,"udp")
   22  chan_unistim.c:6795    (reload_config            ): socket(PF_INET,SOCK_DGRAM,"udp")
   23      asterisk.c:4489    (main                     ): pipe({23,24})
   24      asterisk.c:4489    (main                     ): pipe({23,24})