MaxCoder88
MaxCoder88

Reputation: 2428

w3wp.exe RAM usage problem

We have publishing .Net based web site that is running IIS 7.0 on the Windows Server 2008 R2 Standard Edition.Otherwise,I have SQL Server on a different server. Both IBM x3650 server has 32 Gb RAM.Sometimes, the w3wp.exe service using 20 Gb of the memory on the IIS.What should I do?

Thanks,

Upvotes: 4

Views: 8119

Answers (2)

David Kearfott
David Kearfott

Reputation: 177

Any chance you're using URLRewritingNet to rewrite your URLs? I experienced a serious performance issue with it on Windows Server 2008 R2 using IIS7 that caused the w3wpe.exe to max out, even when there was a single user! The fix was to scrap that library and use IIS7 Rewrite rules instead.

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

Best of luck, David

Upvotes: 2

ub1k
ub1k

Reputation: 1674

Well then again. It's a hard problem finding memory leaks. first do some logging presumably on every request you get -> and log the amount of memory that is being used. Then find all your jobs -> and possible parts of code that may generate leaks (as long as their not executed during every request) and also log their beginning and end.

When you do that you can afterwards check your logs and search for parts in which the memory usage significantly increases, then possibly you can pinpoint what part of your code is generating leaks.

The other thing is you can search for "memory leaks WHAT YOU USE" where WHAT YOU USE is some mechanisms that you're using whatever they might be.

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

Oh. Don't think you'll find the problem in the next 20mins. It will rather take days (when trying to debug it with logging)

Upvotes: 0

Related Questions