本文发表在 rolia.net 枫下论坛多谢DX的建议。以下是对你问题的回答:
1。看看你的那些application是不是大量的使用了transaction block
Answer: 在所有 application 中,即使用到 transaction也有明显的 begin transaction, commit transaction, 或 rollback. 而且 transaction 用得不是很多。
2。检查一下你的sql errorlog,看看出现timeout error 时候, sql server 的log里相应的error entry是什么。
Answer. sql server log 中没有如何异常现象。
3. 打开performance monitor, 选择cache hit ratio, system usage %,transactionlog usage , locking activitity等几个counter, 当问题出现的时候看看相应的performance chart
Answer: Cache hit ratio = 100% (which is normal)
Total memory usage (1G, which is the largest size SQL Server has been assigned, I set the server to fixed memory(1G) in stead of dynamic after we encounter the problem. It works for a month, then the same thing happened again. The total server memory is 2G)
4。你的application有没有大量使用cursor,这常常会消耗大量的memory,如果cursor又没有及时release,就可能使得系统没有足够的资源去处理application query.
Answer: All these applications are ASP app. Theoriotically, all the database object (connections, recordsets) should be automatically destroyed by IIS. So this should not be a reason. P.S. 95% connections have been closed after use.
5.你的system memory是多大?
Answer: 2G
6。你设置的page file 多大?
Answer: C drive max 1G, e drive max 4G, f drive max 4G.更多精彩文章及讨论,请光临枫下论坛 rolia.net
1。看看你的那些application是不是大量的使用了transaction block
Answer: 在所有 application 中,即使用到 transaction也有明显的 begin transaction, commit transaction, 或 rollback. 而且 transaction 用得不是很多。
2。检查一下你的sql errorlog,看看出现timeout error 时候, sql server 的log里相应的error entry是什么。
Answer. sql server log 中没有如何异常现象。
3. 打开performance monitor, 选择cache hit ratio, system usage %,transactionlog usage , locking activitity等几个counter, 当问题出现的时候看看相应的performance chart
Answer: Cache hit ratio = 100% (which is normal)
Total memory usage (1G, which is the largest size SQL Server has been assigned, I set the server to fixed memory(1G) in stead of dynamic after we encounter the problem. It works for a month, then the same thing happened again. The total server memory is 2G)
4。你的application有没有大量使用cursor,这常常会消耗大量的memory,如果cursor又没有及时release,就可能使得系统没有足够的资源去处理application query.
Answer: All these applications are ASP app. Theoriotically, all the database object (connections, recordsets) should be automatically destroyed by IIS. So this should not be a reason. P.S. 95% connections have been closed after use.
5.你的system memory是多大?
Answer: 2G
6。你设置的page file 多大?
Answer: C drive max 1G, e drive max 4G, f drive max 4G.更多精彩文章及讨论,请光临枫下论坛 rolia.net