Session blocked itself
2013-12-13 16:47
239 查看
从上图可以看出,spid51 block了自己。这种情况有两个可能的原因:
1,When an SPID is waiting for an I/O page latch, you may notice that the blocked column briefly reports that the
SPID is blocking itself. This behavior is a side effect of the way that latches are used for I/O operations on data pages
对于这种原因,block的时间会非常短。上图不属于这种情况。下面的链接详细解释了这种情况的成因:
http://support.microsoft.com/kb/906344
2, 还有一个可能的原因是SQL
Server运行query时的并发度设的太高。上图就是这种情况。这是sql server为了提高一个性能差的query时做的自动优化,即多线程并行的运行一个sql。出现这种情况说明sql的性能很差,需要优化。但一般也可以不用管它。
但有时会由于过高的并行导致死锁出现:intra-query parallel thread deadlocks。即由于并发度太高导致并行的线程间发生了死锁。
http://blogs.msdn.com/b/bartd/archive/2008/09/24/today-s-annoyingly-unwieldy-term-intra-query-parallel-thread-deadlocks.aspx
相关文章推荐
- C语言头文件的作用
- 用于验证码图片识别的类(C#源码)
- 作为一个新人,怎样学习嵌入式Linux?被问过太多次,特写这
- C++ 基类私有纯虚函数 在派生类中的实现
- OpenGLes2.0 什么是Pbuffer
- Ferris教程学习笔记:js示例3.8 简易网页时钟
- 我的战场 -- 书
- 机器学习算法与Python实践之(三)支持向量机(SVM)进阶
- 【Android】Android之Action Bar
- 冒泡排序
- SSH登录报错Permission denied (publickey)
- iOS 7 教程:定制iOS 7中的导航栏和状态栏
- 每周日与周四《红酒屋》探戈舞会"Wine Bar" Milonga_原生态拉丁_新浪博客
- 消息提示demo
- Ferris教程学习笔记:js示例3.6 判断数字是否为两位数
- LIKE 某个变量
- VM 下安装fedora19问题的解决办法
- vi编辑器
- FM for Creating change Log
- 使用PHP CURL的POST数据