English 中文(简体)
意外的 CPU 钉点
原标题:Unexpected CPU spikes

与 SQL 服务器合作 2008 R2. 在开发环境时间到时间我可以看到 CPU 被加载了几分钟( 大约55%- 80%, 而正常值为1- 2% )。 是的, 我开发环境中的正常负荷几乎是零! 。 在这种 CPU 压力时间自动测试中, 有时会发生超时错误 。

Just experienced timeout in activity monitor. looks like this: enter image description here

Tipicaly during these pressure moments its looks like this: enter image description here

问题在于我无法理解为什么会发生! 有持续执行的自动测试, 但它们并没有造成繁重的工作量。 在性能测试系统运行期间, 工作效果良好, 如果速度放慢, 总是有很好的解释的 。

我试图通过

  • Running trace, but during those CPU spikes there is "nothing special" going on. No expensive queries.
  • Using SQL Activity Monitor- everything seems normal, except CPU (just like 1-2 waiting tasks, low I/O, ~5 requests/sec). Recent expensive queries are not that expensive.
  • Querying data. Using famous sp_WhoIsActive and sys.dm_exec_requests. As far i understand- nothing unusual again..

关于我的服务器

  • There is small number of databases and i do know them good.
  • Using Service Broker.
  • Trace is running most of the time.

我确实怀疑是某种背景过程在制造问题。 但我真的不明白。 你能给一些提示/想法 如何解决这个问题吗?

问题回答

可能是SQL服务器内部的工作 就像一个大指数重建一样

等待钉钉和 run sp_who2 活动 。 请检查列 CPU 时间 。

你如何百分百确定 SQL 是责任人?

我面对同样的问题, 并向微软提出诉讼。

微软说SQL DB方面没有问题, 如果 cpu 被加注的话。 最后的问题由 Microsoft 解决, 实际上问题是在 IIS 上, 不是 SQL 服务器 。

每29天IIS需要重新启动一次, 这样您就可以在应用程序上得到更好的表现 。





相关问题
Performance impact of indexed view in MS SQL Server 2008

Does anyone have experience with using indexed view in MS SQL Server 2008? I am trying to find out how does indexed view affect performance of insert / update statements, that are adding / updating ...

Lock Escalation - What s happening here?

While altering a table (removing a column) in SQL Server 2008, I clicked the Generate Change Script button and I noticed that the change script it generated drops the column, says "go" and then runs ...

Round to nearest 5 in SQL Server

I have a Money column in my SQL Server 2008 table. In my below query how can I round it to nearest 5$ select FineAmount from tickets Thanks

热门标签