The problem with memory consumption w3wp.exe

We have a .NET-based website that runs IIS 7.0 on Windows Server 2008 R2 Standard Edition. Otherwise, I have SQL Server on another server. Both IBM x3650 servers have 32 GB of RAM. The w3wp.exe service is sometimes used, which uses 20 GB of memory in IIS. What to do?

Thanks,

+4
source share
2 answers

Should you use URLRewritingNet to rewrite your URLs? I had a serious performance issue on Windows Server 2008 R2 using IIS7, which caused w3wpe.exe to get the maximum output, even when there was one user! The fix is ​​to cancel this library and use the IIS7 rewrite rules instead.

The problem is very well documented here: http://blog.kurtschindler.net/post/urlrewritingnet-performance-issues

Good luck, David

+2
source

OK, then again. This is a difficult problem detecting memory leaks. First, make some entries, presumably for each request you requested β†’ and write down the amount of memory used. Then find all your tasks β†’ and the possible parts of the code that may generate leaks (if they are not executed during each request), as well as register their beginning and end.

When you do this, you can subsequently check your logs and search for parts in which memory usage is greatly increased, and then maybe you can determine how much of your code is leaking.

Another thing is that you can look for β€œmemory leaks that you use” that you use - these are some of the mechanisms that you use, whatever they are.

On the other hand, there are a number of things that you must do to avoid memory leaks, the first of which comes to my mind, exploring the using() statement.

A. Do not think that you will find a problem in the next 20 minutes. This will take several days (when trying to debug with logging)

0
source

All Articles