ITPub博客

首页 > Linux操作系统 > Linux操作系统 > SQL Server 2005 中过多CXPACKET 状态process及处理方式

SQL Server 2005 中过多CXPACKET 状态process及处理方式

原创 Linux操作系统 作者:tolywang 时间:2010-04-22 00:25:26 0 删除 编辑

 

CXPACKET 

It means SQL Query is involved in parallel query execution. This waittype indicates that the SPID is waiting on a parallel process to complete or start.

CXPACKET: Occurs when trying to synchronize the query processor exchange iterator. You may consider lowering the degree of parallelism if contention on this wait type becomes a problem.

现象: 

运行某个procedure的时候一直不能正常运行(存在很多的CXPACKET狀態的進程)。  查找原因,发现需要降低线程 。

 

查看相关并行配置:  max degree of parallelism 参数 ,可以适当调整 。

不过为了不影响到其他运行正常的SQL ,    可以在某些运行出现类似问题的语句中加入 OPTION (MAXDOP 2 ) ;  

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/35489/viewspace-660516/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
Oracle , MySQL, SAP IQ, SAP HANA, PostgreSQL, Tableau 技术讨论,希望在这里一起分享知识,讨论技术,畅谈人生 。

注册时间:2007-12-10

  • 博文量
    5595
  • 访问量
    14695624