简体   繁体   English

sql server 2008,挂起进程

[英]sql server 2008 , suspend process

net application that has about 50 - 70 users concurrent. 大约50-70个用户并发的网络应用程序。 it works for some months, but from 3 days ago we have many time out on sql server. 它可以工作几个月,但是从3天前开始,我们在sql server上有很多超时。 heaviest query's times is about 5 Sec ( when single user works) I didnt change any query / app and can't understand why I face this problem. 最繁重的查询时间约为5秒(当单个用户工作时),我没有更改任何查询/应用程序,也无法理解为什么会遇到此问题。 I have 2 servers ( one for IIS and another for DB) the only change is public IP address of IIS server ( and network admin told me they didnt change any things on local area network) 我有2台服务器(一台用于IIS,另一台用于DB),唯一的变化是IIS服务器的公共IP地址(网络管理员告诉我他们没有更改局域网上的任何内容)

1- how can I manage suspend process? 1-我如何管理暂停过程? is there any setting that can restart service or kill suspend process? 有没有可以重启服务或终止挂起进程的设置?

2- how can I find which Items make these problems? 2-我如何找到导致这些问题的物品?

we use : windows server 2003 , IIS 6 , SQL server 2008 , asp.net 3.5 Thanks 我们使用:Windows Server 2003,IIS 6,SQL Server 2008,asp.net 3.5谢谢

update : all queries which uses paging will be suspended on server 更新:所有使用分页的查询将在服务器上挂起

1) There only one way to manage suspended process - to Kill it. 1)只有一种方法可以管理挂起的进程-杀死它。 Run sp_who2 to get SPID with Suspended status you want to kill Than run command Kill <SPID> 运行sp_who2获得SPID与暂停状态要杀人比运行命令Kill <SPID>

2) You need to properly test your app to find where is problem. 2)您需要正确测试您的应用程序以查找问题所在。 Try to automate this process to make multiple connections at the same time. 尝试自动执行此过程以同时建立多个连接。 Also use SQL profiler to see the queries which coming to your SQL Server, this way you may trace the query which becoming suspended, than you may take this query and run it in the query window as a result you may see more details whats really happened. 此外,还可以使用SQL事件探查器查看即将进入SQL Server的查询,通过这种方式,您可以跟踪被挂起的查询,而不是可以在查询窗口中运行并运行该查询,结果可能会看到更多详细信息。 。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM