IIS 工作进程使用大量内存? [英] IIS Worker Process using a LOT of memory?

查看:31
本文介绍了IIS 工作进程使用大量内存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的服务器上有一个网站,我的 IIS 工作进程一直使用 4GB RAM.我应该检查什么?

I have one website on my server, and my IIS Worker Process is using 4GB RAM consistently. What should I be checking?

c:windowssystem32inetsrvw3wp.exe

推荐答案

我会查看 文档 Gulzar 提到.

I would check the CLR Tuning Section in the document Gulzar mentioned.

正如其他海报指出的那样,任何实现 IDispose 的对象都应该在完成后调用 Dispose(),最好使用 using 构造.

As the other posters pointed out, any object that implements IDispose should have Dispose() called on it when it's finished with, preferably using the using construct.

启动 perfmon.exe 并添加这些计数器:

Fire up perfmon.exe and add these counters:

  • 处理私有字节
  • .NET CLR 内存# 所有堆中的字节
  • 流程工作集
  • .NET CLR 内存大对象堆大小

私有字节增加,而所有堆计数器中的字节数保持不变表示未托管内存消耗.

An increase in Private Bytes while the number of Bytes in all Heaps counter remains the same indicates unmanaged memory consumption.

增加两个计数器都表示托管内存消费

An increase in both counters indicates managed memory consumption

这篇关于IIS 工作进程使用大量内存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆