我的服务器上有一个网站,我的 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/