473,394 Members | 1,800 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

w3wp.exe Allocating Over a Gig of RAM

Hi All,

The organization I am working for has created a new corporate website
that used Microsoft's Pet Shop website as their coding model, and
dynamically served up content, but cached each page by content ID. The
site appears to be working well. It is hosted on a Windows 2003 server
with 2 Gigs of RAM. It was built using Visual Studio .NET 2005 and us
running under the .NET Framework 2.0 Beta

The Issue :
When we surf the website we see a wswp.exe startup and the memory
allocated to this worker process continues to climb as more and more
people access the site. This would appear to be a normal thing, but
this memory is not noticably released.

To give you an example, we ran a test using WAPT. We had 100 users
access the site 5 seconds appart, with a delay of 7 seconds on each
page they accessed. We ran this for about 20 mins, and the w3wp.exe
allocated about 1.1 gig of RAM. This seems like a bad thing, but not
out of the norm.

To give you an example of what I mean, we ran a similar test using a
very vanilla asp.net site, and the memory allocation for the w3wp.exe
went up more slowly, but did not get released.

I ran CLR Profiler against the new corporate website, and found what
would appear to be a small memory leak that we eliminated.
System.String is allocating around 25% - 30% according to the Objects
By Address portion of the CLR Profiler report, but this seems to be the
norm, comparing it to the same CLR Profiler report for the vanilla
website mentioned above. Looking at the Objects By Address report, very
little is surviving to gen 2, so I think we can eliminate memory leads.
We are not appear to be doing any string concatination without using
StringBuilder.

My Question :
Is this the norm? Have you experienced similar results? What has been
your solution. Are Application Pools the answer? If so, what should the
settings be? Is their a document that would help us in adjusting the
settings?

Thank you in advance for taking the time to read through this post.
Tod Birdsall
http://tod1d.blogspot.com

Nov 19 '05 #1
3 5029
are you using inproc sessions? if so, look at your session usage. as be sure
you are not leaking an unmanaged resource (say a com object - you must
manualy release the references, don't count on the GC).

-- bruce (sqlwork.com)
"Tod Birdsall" <no*****@netsalad.com> wrote in message
news:11*********************@c13g2000cwb.googlegro ups.com...
| Hi All,
|
| The organization I am working for has created a new corporate website
| that used Microsoft's Pet Shop website as their coding model, and
| dynamically served up content, but cached each page by content ID. The
| site appears to be working well. It is hosted on a Windows 2003 server
| with 2 Gigs of RAM. It was built using Visual Studio .NET 2005 and us
| running under the .NET Framework 2.0 Beta
|
| The Issue :
| When we surf the website we see a wswp.exe startup and the memory
| allocated to this worker process continues to climb as more and more
| people access the site. This would appear to be a normal thing, but
| this memory is not noticably released.
|
| To give you an example, we ran a test using WAPT. We had 100 users
| access the site 5 seconds appart, with a delay of 7 seconds on each
| page they accessed. We ran this for about 20 mins, and the w3wp.exe
| allocated about 1.1 gig of RAM. This seems like a bad thing, but not
| out of the norm.
|
| To give you an example of what I mean, we ran a similar test using a
| very vanilla asp.net site, and the memory allocation for the w3wp.exe
| went up more slowly, but did not get released.
|
| I ran CLR Profiler against the new corporate website, and found what
| would appear to be a small memory leak that we eliminated.
| System.String is allocating around 25% - 30% according to the Objects
| By Address portion of the CLR Profiler report, but this seems to be the
| norm, comparing it to the same CLR Profiler report for the vanilla
| website mentioned above. Looking at the Objects By Address report, very
| little is surviving to gen 2, so I think we can eliminate memory leads.
| We are not appear to be doing any string concatination without using
| StringBuilder.
|
| My Question :
| Is this the norm? Have you experienced similar results? What has been
| your solution. Are Application Pools the answer? If so, what should the
| settings be? Is their a document that would help us in adjusting the
| settings?
|
| Thank you in advance for taking the time to read through this post.
| Tod Birdsall
| http://tod1d.blogspot.com
|
Nov 19 '05 #2
SA
Tod:

A) Please realize that at this time, there is not "Go Live!" license
available from Microsoft. Therefore, running this site is a violation of the
license agreement.

B) You (or the programmers) are allocating over a Gig of RAM, not the
process itself. In other words, it's your code. You may want to check
exactly how much memory you are using, e.g. because of large DataSets, etc.

Running the beta version may also influence the memory usage, as there is a
lot of debug code present.

You must also understand the way Windows manages memory. Even though the
memory may be released correctly by the .NET runtime, Windows may still
assign a higher amount of memory to the process, especially if there is no
other process requesting memory. This has to do with the OS's memory
management, and it's more intricate than .NET Garbage Collection.

If this is posing a problem, put the site in an application pool and recycle
the pool after a certain number of requests. (Realize that this causes
session state to be flushed as well...)

HTH,

--

---

Sven.

"Tod Birdsall" <no*****@netsalad.com> wrote in message
news:11*********************@c13g2000cwb.googlegro ups.com...
Hi All,

The organization I am working for has created a new corporate website
that used Microsoft's Pet Shop website as their coding model, and
dynamically served up content, but cached each page by content ID. The
site appears to be working well. It is hosted on a Windows 2003 server
with 2 Gigs of RAM. It was built using Visual Studio .NET 2005 and us
running under the .NET Framework 2.0 Beta

The Issue :
When we surf the website we see a wswp.exe startup and the memory
allocated to this worker process continues to climb as more and more
people access the site. This would appear to be a normal thing, but
this memory is not noticably released.

To give you an example, we ran a test using WAPT. We had 100 users
access the site 5 seconds appart, with a delay of 7 seconds on each
page they accessed. We ran this for about 20 mins, and the w3wp.exe
allocated about 1.1 gig of RAM. This seems like a bad thing, but not
out of the norm.

To give you an example of what I mean, we ran a similar test using a
very vanilla asp.net site, and the memory allocation for the w3wp.exe
went up more slowly, but did not get released.

I ran CLR Profiler against the new corporate website, and found what
would appear to be a small memory leak that we eliminated.
System.String is allocating around 25% - 30% according to the Objects
By Address portion of the CLR Profiler report, but this seems to be the
norm, comparing it to the same CLR Profiler report for the vanilla
website mentioned above. Looking at the Objects By Address report, very
little is surviving to gen 2, so I think we can eliminate memory leads.
We are not appear to be doing any string concatination without using
StringBuilder.

My Question :
Is this the norm? Have you experienced similar results? What has been
your solution. Are Application Pools the answer? If so, what should the
settings be? Is their a document that would help us in adjusting the
settings?

Thank you in advance for taking the time to read through this post.
Tod Birdsall
http://tod1d.blogspot.com

Nov 19 '05 #3
Hi Bruce,

I we are not sessions for the portion of the site we are testing, and
we eliminated the unmanaged code portion when we eliminated the memory
leak.

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Louis | last post by:
Hi All, I'm using w2k3 and IIS6, is it true that when I start the .net web application, there will be a process w3wp.exe? As my application is using asp.net, but when I start the web site,...
1
by: Gaël | last post by:
Hi everybody! I have a really big problem with ASP.NET application. I noticed that the w3wp.exe memory size, increase with the time and the use of my website. When it raise a certain value, w3wp...
5
by: ALI-R | last post by:
I'd like to debug my asp.net application ,,but I can't find W3wp.exe in the list of system process to attach it to the debugger??? Is there someboddy who can help me. Thanks Ali
4
by: AN | last post by:
Greetings, We make an ASP.NET web application and we host it for our customers. We have provisioned hardware and hope to be able to service around 200 customers on this hardware. The web...
3
by: James Hunter Ross | last post by:
Friends, We are preparing for Beta release of a new ASP.NET project, but our initial in-house tests are not going well. We have had W3WP.exe (and aspnet_wp.exe) die, and we feel we can monitor...
1
by: msnews.microsoft.com | last post by:
Hi all, I have a problem which I've seen mentioned quite a few time around the net, but nothing seems to work. I've created a web service with one method (see code below). It's running under...
1
by: rh | last post by:
hi, we just migrated to x64 and .net 2.0 and getting a debugger popup with the system.cannotunloadappdomainexception caused by w3wp.exe. it happens intermittently, and doesn't seem like it's...
1
by: Propertyshowrooms | last post by:
Hi all, I know this is probably an easy problem to fix, or at least I hope so, but for the life of me I can't figure out why the Private Bytes in my w3wp.exe process just keeps climbing until the...
0
by: ToadLurker | last post by:
Usually, to debug my .NET dll, I typically just run my web application until the DLL in question is invoked - at which point I can just attach to it via Visual Studio .Net, and debug it. Two weeks...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.