[英]How to determine how much memory a windows service should consume
I have created a simple windows service that periodically checks a remote database via web-service and depending upon what it finds updates contents in a local database. 我创建了一个简单的Windows服务,该服务通过Web服务定期检查远程数据库,具体取决于它在本地数据库中找到更新内容的方式。 Looking at the process in Task Manager it consumes anywhere between 8-MB, which seems a lot compared to what it actually does.
在任务管理器中查看该进程会消耗8 MB的内存,与实际工作相比,这似乎很多。
Is there anything that I should be checking code wise or is there anything I can run to see why it's consuming so much? 有什么我应该明智地检查代码的,还是有什么我可以运行的,以查看为什么它消耗了这么多?
Windows上的一个很小的C#应用程序都将占用大量内存,因为运行时和所有使用的程序集也必须加载。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.