IIS - w3wp.exe (ASP .Net) eating memory

Asked By venom00
17-Nov-09 05:59 PM
Hello, i'm on a VPS with Windows 2003 x64 (IIS 6.0 so) and i have a
serious problem with w3wp.exe. It starts from 60 Mb and then grows
until the whole avaiable RAM is used.

http://img32.imageshack.us/img32/4120/w3wpgraph.png

Here is an example image showing w3wp.exe private bytes and Gen 0 Heap
size. They seems related, but if I use ".NET CLR Memory/# Bytes in all
Heaps " it is much lower than private bytes. Can we still say that is
an ASP .Net problem?

Moreover analyzing a crash dump the heap size i obtain is smaller, 200
Mb while the crash dump was 700 mb and private bytes about 600 mb.

http://pastebin.com/m6c448c9d

Here is also a !dumpheap -stat:

http://pastebin.com/m7fd72aa

I have done a "!dumpheap -mt 000006427881aaf8" (the System.String entry)
and I have found that the bigger strings are aspx pages. I have a lot of
them on my website (thousands). Maybe w3wp.exe is caching them? How
can i disable this feature?
!gcroot on one of this strings gives the following output:

http://pastebin.com/m15545adc

Does this mean it is orphaned but not collected by the GC?

Here is a "!dumpheap -stat -type Cach":

http://pastebin.com/m2955d688

And a !do and a !gcroot of a CacheEntry:

http://pastebin.com/f38df0a24


If you need it, I can also give you the link to the whole dump. I have
been working on it for a week without results!

Thanks in advance,
Carl
ASP.NET
(1)
IIS 6.0
(1)
X64
(1)
CacheEntry
(1)
Windows
(1)
Carl
(1)
Cach
(1)
Resemblance
(1)
  Bob Barrows replied to venom00
17-Nov-09 02:57 PM
***canned wrong-newsgroup reply************************
There was no way for you to know it (except maybe by browsing through some
of the previous questions in this newsgroup before posting yours - always a
recommended practice) , but this is a classic (COM-based) asp newsgroup.
ASP.Net bears very little resemblance to classic ASP so, while you may be
lucky enough to find a dotnet-knowledgeable person here who can answer your
question, you can eliminate the luck factor by posting your question to a
group where those dotnet-knowledgeable people hang out. I suggest
microsoft.public.dotnet.framework.aspnet or the forums at www.asp.net.
******************************************************************
--
Microsoft MVP - ASP/ASP.NET - 2004-2007
Please reply to the newsgroup. This email account is my spam trap so I
do not check it very often. If you must reply off-line, then remove the
Create New Account
help
404 error when dowloading DLL files from IIS 6.0? IIS Windows 2003 Server Standard SP1 IIS 6.0 ASP.NET 1.1 My ASP.NET page uses a client-side .NET control. The control
IIS 6.0, ASP.NET and Web Config Error IIS Hi I am an ASP.NET developer and we have recently installed Windows 2003 Server Web Edition to run our companys
IIS 6.0 - settings for best ASP.NET performance? IIS Running IIS 6.0 on Windows 2003 Server SP1. Under Control Panel \ System \ Performance Options, what should the
Can't get ASP.Net tab to appear in web site properties (IIS 6.0) IIS The server is a 64 bit version of 2003 running IIS 6.0. For some reason the ASP.Net tab does not appear within the website properties
How to install IIS 6.0 and ASP .net 2.0 on an Act / Pass Cluster IIS I have been tasked with installing IIS 6.0, ASP .net 2.0, and finally SQL server on a clustered environment. This is