简体   繁体   English

SQL Server内存使用量随时间增加

[英]SQL Server Memory Usage Increases Over Time

I have written a C# windows service that collects syslog and inserts them to a SQL server database. 我编写了一个C#Windows服务,该服务收集syslog并将其插入到SQL Server数据库中。

Average insert range is 5-10 inserts Per Second and each time I have a read operation and an insert operation. 平均插入范围是每秒5-10次插入,每当我执行一次读取操作和一次插入操作时。

I should note that I use the "Using" command for managing SQL server connections. 我应该注意,我使用“使用”命令来管理SQL Server连接。

The only problem I face is that memory usage of windows increases steadily and even reaches to 6GB! 我面临的唯一问题是Windows的内存使用量稳定增加,甚至达到6GB! Is this a normal case? 这是正常情况吗? and if it is what's the solution to decrease memory usage? 以及减少内存使用量的解决方案是什么?

The only problem I face is that memory usage of windows increases steadily and even reaches to 6GB! 我面临的唯一问题是Windows的内存使用量稳定增加,甚至达到6GB! Is this a normal case? 这是正常情况吗?

This is normal ,until you face issues with memory pressure.. 这是正常现象,直到您遇到内存压力问题。

How to identify and troubleshoot, if you have memory pressure..? 如果您有存储压力,如何识别和排除故障?

How SQLserver manages memory is a complex topic,but there are many links in SO which will help you SQLserver如何管理内存是一个复杂的主题,但是SO中有很多链接可以帮助您

and if it is what's the solution to decrease memory usage? 以及减少内存使用量的解决方案是什么?

Its Good to follow best practices and leave 10% to OS and leave the rest to SQLServer by setting max memory limit 遵循最佳做法很好,可以通过设置最大内存限制将10%留给操作系统,其余的留给SQLServer

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

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