sp_helpthread [<pool_name>]
<pool_name>
要显示的池名称。如果 <pool_name> 为空,则 sp_helpthread 会显示所有池的相关配置信息。
显示所有池的相关信息:
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
显示有关 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 仅在线程化模式下生成输出。