SQL Server 2008 全文重建 - 大量内存使用问题
每次执行 SQL Server 2008 FTS 目录重建时,我的服务器都会处于 SQL Server 进程内存为 2.8+ GB 的状态,并导致计算机性能下降。当回收 SQL Server 服务时,其大小又回落到 350 MB 左右,性能也恢复正常。
全文重建后必须重新启动服务是否正常?不确定幕后到底发生了什么,但如果我可以这样称呼的话,这似乎是一个重大的内存泄漏。
我愿意接受任何建议。提前致谢!
Each time I perform a SQL Server 2008 FTS Catalog Rebuild, my server is left in a state where the SQL Server process is at 2.8+ GB of memory and is causing performance degradation of the machine. When recycling the SQL Server service, its goes back down to around 350 MB and performance is back to normal.
Is it normal to have to restart the service after a Full Text Rebuild? Not sure what is going on truly behind the scenes but seems like it is a significant memory leak if I could call it that.
I'm open for any advice. Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Sql server在处理全文时确实会消耗大量内存。这是正常行为。填充全文目录是一项艰巨的任务,需要大量的处理和内存使用。但您可以采取一些措施来尽量减少这些影响。
1 - 限制 sql server 内存使用 - Sql Server
2 - 确保您的服务器排序规则和数据库排序规则相同,以避免 tempdb 的高使用率(sql 尝试将数据库排序规则转换为匹配实例排序规则)。
3 - 使用增量填充而不是完全重建。请查看下面的链接以了解如何执行此操作。
4- 确保您已安装 SQL Server 2008 SP2。
5 - 使用停止列表。
另请查看此链接 优化 SQL Server 的 10 种方法全文索引。它提供了很好的信息,您可以使用它来最大限度地提高服务器性能。
Sql server does consume a lot of memory when dealing with full text. It is a normal behavior. Populate a full text catalog is hard task and it requires a lot of processing and memory usage. But there are some things you can do to minimize those effects.
1 - Limit sql server memory usage - Sql Server
2 - Make sure your server collation and database collation are the same to avoid the high usage of tempdb (sql tries to convert database collation to match instance collation).
3 - Use incremental population instead of Full rebuild. Check out the link bellow to see how to do that.
4- Make sure you have sql server 2008 SP2 installed.
5 - Use stop lists.
Also check out this link 10 Ways to Optimize SQL Server Full-text Indexing. It gives nice information you can use to maximize your server performance.