简体   繁体   English

在任务管理器中监视时SQL Server内存增加

[英]Sql server memory increase while monitoring in task manager

I have an issue in sql server , my project is developed with entity framework and wcf services . 我在sql server中遇到问题,我的项目是使用实体框架和wcf服务开发的。 while monitoring in task manager the memory increases, when the limit exceeds my application hangs. 在任务管理器中监视时,当限制超出我的应用程序挂起时,内存增加。 this is big issue . 这是大问题。 when i restart services of sql server instance in services , its memory decreases to low and works fine. 当我在services中重新启动sql server实例的服务时,其内存减少到不足并且可以正常工作。

i'm daily restarting services.this is not a good solution for it. 我每天都在重新启动services。这不是一个好的解决方案。 As it is going to increase in feature more than large volume as expected . 随着功能的增加,其数量将超过预期的数量。

If any wrong pls correct me .pls give me a better solution for this asap. 如果有任何错误,请纠正我。请尽快为我提供更好的解决方案。 Thanks in advance 提前致谢

The issue sometimes happens because of opening multiple connection without properly closing it.So all connection is remain open in sql server. 有时由于未正确关闭多个连接而打开了该问题,因此所有连接在sql server中都保持打开状态。

Just check the .Open() and Close() for your connection in your project code. 只需在项目代码中检查.Open()和Close()的连接即可。

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

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