SQL server timeout和process memory has been paged out问题

xiaoku 2009-08-04 02:14:32
好久没上来了。。。各位兄弟姐妹可好呀。。。

最近server 老出time out的问题:
于是看log起trace,发现sql server log的有一些这样的记录:
Date 03/08/2009 23:38:37
Log SQL Server (Current - 04/08/2009 00:30:00)

Source spid1s

Message
A significant part of sql server process memory has been paged out. This may result in a performance degradation. Duration: 0 seconds. Working set (KB): 156776, committed (KB): 7668680, memory utilization: 2%.

关于这个的解释或者方案有两篇:
一个微软的msdn: http://support.microsoft.com/kb/918483,但是这里并没有太多原因说明(或者我不懂)!
-- 我按照这里的东西做了调整服务器的设置。。。但是现在还是会发生这样的问题...
另外是:http://msmvps.com/blogs/omar/archive/2007/09/19/a-significant-part-of-sql-server-process-memory-has-been-paged-out-this-may-result-in-performance-degradation.aspx 外国的牛人做的。。。我没看明白。

现在请问一下这样这个memory paged out 的事情怎么解决,另外就是如何排查时什么样的原因造成数据库的timeout。。。

谢谢。。。

环境是:
OS:Win 2003 标准版(64)SP2
Sql server:2005 标准版(64) SP3
CPU:XEON(R) X5450 3.00GHz (8核心)
Memory:8GB
Disk: RAID 5的 15000转的()
...全文
1510 57 打赏 收藏 举报
写回复
用AI写文章
57 条回复
切换为时间正序
请发表友善的回复…
发表回复
chen870201 2011-03-17
  • 打赏
  • 举报
回复
这个似乎是很难
xiaoku 2009-12-07
  • 打赏
  • 举报
回复
最终这个问题也没有解决,忙于其他的事情去了,之后也没有继续跟进,不过经常设置之后那个page out的问题少了。下次如果谁解决了这个问题倒是可以说一下啊,解决的方法。
xiaoku 2009-08-07
  • 打赏
  • 举报
回复
[Quote=引用 45 楼 herowang 的回复:]
个人认为:如果操作系统运行其他的程序,但是发现内存不够用了,会让sql server释放一点内存。
[/Quote]

可那台服务器就跑了 sql, 都没跑其他的东西呢。。。
ai_li7758521 2009-08-07
  • 打赏
  • 举报
回复
[Quote=引用 42 楼 xiaoku 的回复:]
恩。现在装上了,也设置了最大最小cache。
汇报一下最新进展:似乎server 现在不在出现那个错误了。内存照样吃得老多了。
谢谢 关注!
[/Quote]看来问题基本搞定
alisafan123 2009-08-07
  • 打赏
  • 举报
回复
我遇到过sql server timeout
lvveve 2009-08-07
  • 打赏
  • 举报
回复
路过留名!
claro 2009-08-07
  • 打赏
  • 举报
回复
牛,64位的。
csdyyr 2009-08-07
  • 打赏
  • 举报
回复
[Quote=引用 54 楼 xiaoku 的回复:]
嘿嘿。。。那是桃金娘。 很好吃的。中秋前后结果的。

似乎解决了。 过两天结贴。
[/Quote]
恩,有很多名称的。
怎么解决呢?
xiaoku 2009-08-07
  • 打赏
  • 举报
回复
嘿嘿。。。那是桃金娘。 很好吃的。中秋前后结果的。

似乎解决了。 过两天结贴。
csdyyr 2009-08-07
  • 打赏
  • 举报
回复
[Quote=引用 52 楼 xiaoku 的回复:]
引用 51 楼 hdhai9451 的回复:
sf


sf 早没了。 你的头像的植物是啥?蛮好吃的。。。
[/Quote]
那是捻子树。
问题解决了吧?
xiaoku 2009-08-07
  • 打赏
  • 举报
回复
[Quote=引用 51 楼 hdhai9451 的回复:]
sf
[/Quote]

sf 早没了。 你的头像的植物是啥?蛮好吃的。。。
Andy__Huang 2009-08-07
  • 打赏
  • 举报
回复
sf
  • 打赏
  • 举报
回复
个人认为:如果操作系统运行其他的程序,但是发现内存不够用了,会让sql server释放一点内存。
xiaoku 2009-08-06
  • 打赏
  • 举报
回复
这里面还是有一点没有弄清楚:为什么操作系统会向sql server请求内存?
那时候会有一些其他的操作么? 还难解释引起这个漏洞的原因!
xiaoku 2009-08-06
  • 打赏
  • 举报
回复
[Quote=引用 40 楼 csdyyr 的回复:]
装了CU4, 试再设置Lock pages in memory用户权限:
/*
To assign the Lock pages in memory user right, follow these steps:

  1. Click Start, click Run, type gpedit.msc, and then click OK. The Group Policy dialog box appears.
  2. Expand Computer Configuration, and then expand Windows Settings.
  3. Expand Security Settings, and then expand Local Policies.
  4. Click User Rights Assignment, and then double-click Lock pages in memory.
  5. In the Local Security Policy Setting dialog box, click Add User or Group.
  6. In the Select Users or Groups dialog box, add the account that has permission to run the Sqlservr.exe file, and then click OK.
  7. Close the Group Policy dialog box.
  8. Restart the SQL Server service.
*/
设置完并重新启动SQL服务后,请确认SQL服务已经使用Lock pages in memory用户权限:
You can validate that the user right is used by the SQL Server instanceby ensuring the following message is written in the SQL Server Error Log at startup: Using locked pages for buffer pool.This message only applies to 64bit editions of SQL Server. For more information about this message in the ERRORLOG, visit the following Microsoft website:http://blogs.msdn.com/psssql/archive/2007/10/18/do-i-have-to-assign-the-lock-privilege-for-local-system.aspx  (http://blogs.msdn.com/psssql/archive/2007/10/18/do-i-have-to-assign-the-lock-privilege-for-local-system.aspx)
[/Quote]

这个当然了。因为早在没装CU4之前就已经设置好了。
明天去看看还有没有其他的异常。。。
xiaoku 2009-08-06
  • 打赏
  • 举报
回复
[Quote=引用 39 楼 csdyyr 的回复:]
这个工具SetSystemFileCacheSize也不行?
[/Quote]

恩。现在装上了,也设置了最大最小cache。

汇报一下最新进展:似乎server 现在不在出现那个错误了。内存照样吃得老多了。
谢谢 关注!
xiaoku 2009-08-06
  • 打赏
  • 举报
回复
[Quote=引用 36 楼 csdyyr 的回复:]
引用 29 楼 xiaoku 的回复:
引用 24 楼 csdyyr 的回复:
......
en ... 没装!但是也装不上,因为microsoft没有publish这个CU4,所以拿不到:
......

已经可以下载了,有165Mhttp://support.microsoft.com/kb/970070/, 不过MS说没有经过完全测试。。。建议先试下SetSystemFileCacheSize, 不行再装CU4
[/Quote]

很遗憾,我装上CU4,可是依然报那个错误。。。
  • 打赏
  • 举报
回复
关注吧
csdyyr 2009-08-06
  • 打赏
  • 举报
回复
装了CU4, 试再设置Lock pages in memory用户权限:
/*
To assign the Lock pages in memory user right, follow these steps:

1. Click Start, click Run, type gpedit.msc, and then click OK. The Group Policy dialog box appears.
2. Expand Computer Configuration, and then expand Windows Settings.
3. Expand Security Settings, and then expand Local Policies.
4. Click User Rights Assignment, and then double-click Lock pages in memory.
5. In the Local Security Policy Setting dialog box, click Add User or Group.
6. In the Select Users or Groups dialog box, add the account that has permission to run the Sqlservr.exe file, and then click OK.
7. Close the Group Policy dialog box.
8. Restart the SQL Server service.
*/
设置完并重新启动SQL服务后,请确认SQL服务已经使用Lock pages in memory用户权限:
You can validate that the user right is used by the SQL Server instance by ensuring the following message is written in the SQL Server Error Log at startup: Using locked pages for buffer pool. This message only applies to 64bit editions of SQL Server. For more information about this message in the ERRORLOG, visit the following Microsoft website: http://blogs.msdn.com/psssql/archive/2007/10/18/do-i-have-to-assign-the-lock-privilege-for-local-system.aspx (http://blogs.msdn.com/psssql/archive/2007/10/18/do-i-have-to-assign-the-lock-privilege-for-local-system.aspx)
csdyyr 2009-08-06
  • 打赏
  • 举报
回复
这个工具SetSystemFileCacheSize也不行?
加载更多回复(36)

22,298

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧