asp.net - IIS 工作进程使用大量内存?

标签 asp.net iis memory worker-process

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

c:\windows\system32\inetsrv\w3wp.exe

最佳答案

我会检查 document 中的 CLR 调整部分Gulzar 提到了。

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

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

  • Process\Private Bytes
  • .NET CLR Memory# Bytes in all Heaps
  • Process\Working Set
  • .NET CLR Memory\Large Object Heap size

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

关于asp.net - IIS 工作进程使用大量内存?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/245727/

相关文章:

c# - ASP.NET Web 应用程序部署方法最佳实践

c# - ASP.NET Core EF Code First appsettings.json

asp.net - 页面回调中无法调用响应重定向?

c# - 失败 - 下载由 Ionic.Zip.dll 制作的 zip 文件时出现网络错误

c# - 如何在同一URL下托管多个.NET Core应用

python - 为什么空字典的大小与 Python 中非空字典的大小相同?

c# - ConfigurationManager.AppSettings 返回 null

iis - 默认文档不存在

csv - 使用 Cassava 在内存中加载 CSV

对结构在内存中的位置感到困惑