您好,我是小DAI,专注于数据库管理员相关的技术问答,请问有什么可以帮您?

sp_helpthread

语法


sp_helpthread [<pool_name>]

参数

<pool_name>

要显示的池名称。如果 <pool_name> 为空,则 sp_helpthread 会显示所有池的相关配置信息。

示例

示例 1

显示所有池的相关信息:


sp_helpthread

name              type    size    idle_timeout
         description
-----------------  ------  ----    ------------
         --------------------------------------------
pubs_pool          Engine     2             100
                                                 NULL
syb_blocking_pool     RTC     4               0
         A pool dedicated to executing blocking calls
syb_default_pool   Engine     1             100
         The default pool to run query sessions
syb_system_pool       RTC     4               0
          The I/O and system task pool

示例 2

显示有关 pubs_pool 的信息:


sp_helpthread pubs_pool

 name       type  size  idle_timeout  description
---------  ------  ----  ------------  -----------
pubs_pool  Engine     2           100         NULL

thread_id  osthread_id  state  affinity  instance_id
---------  -----------  -----  --------  -----------
       12   1248065856   IDLE      NULL            0
       13   1237576000   IDLE      NULL            0

用法

sp_helpthread 通过 monThread 监控表为其报告收集信息。

sp_helpthread 仅在线程化模式下生成输出。