Problem: w3wp is memory bound
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
Machine: 32 bit Intel Xeon 2.93 GHz, 16 CPUs, 32 GB RAM
OS: Windows Server 2003 R2 Ent Edition, SP2
Web Server: IIS 6
ASP.NET ver: 2.0
I made a simple ASP.NET application, with only this code in the
Page_Load, to
simulate a condition where huge memory is utilized by the app:
int i = 0;
int j = 0;
StringBuilder[] sb = new StringBuilder[3000];
while (i < 3000)
{
sb[i] = new StringBuilder(9999999);
j = 0;
while (j < (9999999))
{
sb[i].Append('a');
j++;
}
Console.WriteLine(i.ToString());
i++;
}
When I invoke Default.aspx from IE, the w3wp process memory use
increases, goes
till around 1.3 GB, and then the app crashes out with
OutOfMemoryException, w3wp
recycles.
In IIS, the 'Max Used memory' value is set at 4 GB, so is the 'Max
Virtual memory',
both for the App Pool. In Machine.Config, memoryLimit is set at 100%.
I am unable to find out why the app is not going beyond 1.3 GB of
memory usage.
Any pointers will be helpful.
Thanks,
Anand
--
.
Relevant Pages
- Re: How to set up a Linux machine that occupies the minimum memory footprint ?
... Of course, if you use 8GB of RAM, or more precisely if you ... Are you saying that if I have a 4GB RAM memory, ... Linux will somehow "know" that it doesn't have ... You've said in another message that your app is ... (comp.os.linux.setup) - Re: How to set up a Linux machine that occupies the minimum memory footprint ?
... Of course, if you use 8GB of RAM, or more precisely if you ... Are you saying that if I have a 4GB RAM memory, ... Linux will somehow "know" that it doesn't have ... You've said in another message that your app is ... (comp.os.linux.misc) - Re: ASP.NET application hits 2GB virtual bytes
... We found the problem last night, we essentially had a resource/memory leak. ... the Reflection call failed but the watcher thread ... The 3GB switch limits the *virtual address space*, not the working memory set. ... your basic problem is that you're running in IIS 5.0 compatibility mode. ... (microsoft.public.dotnet.framework.aspnet) - Re: need a thumbnail browser without memory limitations
... When you are working with media files, you need to decide how you are going to limit the memory requirements of your app. ... For display pictures, you can take approaches that limit the memory requirements such as minimal caching. ... lets say you need to load the next 10 thumbnails as the user scrolls. ... (microsoft.public.vb.general.discussion) - Re: Large text file - in memory ( > 60mb)
... The file is over 64mb in size, reading it line by line to do a search ... while running the app, it would mean reading/searching the>64mb file many ... Then I have to show this record found (wich ... maybe creating a datatable to ease the search but I'm pretty sure memory ... (microsoft.public.dotnet.framework) |
|