Re: Problem: w3wp is memory bound
- From: Anand Saha <anandsaha@xxxxxxxxx>
- Date: Mon, 22 Sep 2008 05:42:46 -0700 (PDT)
Patrice,
This small experiment is to solve a bigger problem - that with Report
Server 2005.
We have a report which sucks huge amount of data from the database.
And in the process of
producing the report, the Report Server crashes with
OutOfMemoryException. .
Its actually the w3wp which terminates when it reaches 1.3GB, and till
now the mystery is
still unsolved, as to why the number 1.3 ? An immediate reaction would
be that its 60% of the
2 GB that you mentioned, but I made sure that machine.config has 100
in the memoryLimit parameter.
And on further investigation, I found that this has nothing to do with
Report Server, as a small web app
like the one i posted shows the same behavior.
The OS boots with the /PAE flag, and we have 32 GB RAM in the machine.
So its frustrating that
the process uses just 1.3 GB
Anand
--
On Sep 22, 4:43 pm, "Patrice" <http://www.chez.com/scribe/> wrote:
AFAIK unless an application is explicitly written to take advantage of it, a
single process can use 2 Gb at best plus you likely need some more memory
during the GC (when it moves something it needs at least the source object
and the copy).
Note that it doesn't mean *all* requests won't use more, it means that
*each* request won't be able to use more memory.
Someone more knowledgable will likely popup but this is my understanding for
now. Also knowing if you are trying to solve something or if this is just to
see how it behaves could perhaps help...
My first thought would be to see if you can go beyond this when issuing
multiple queries at the same time (not sure thought what you are trying to
find out)...
--
Patrice
"Anand Saha" <anands...@xxxxxxxxx> a écrit dans le message de groupe de
discussion :
c048d8f7-12a3-415d-9928-04f89ac5c...@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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
--
.
- Follow-Ups:
- Re: Problem: w3wp is memory bound
- From: bruce barker
- Re: Problem: w3wp is memory bound
- From: Patrice
- Re: Problem: w3wp is memory bound
- References:
- Problem: w3wp is memory bound
- From: Anand Saha
- Re: Problem: w3wp is memory bound
- From: Patrice
- Problem: w3wp is memory bound
- Prev by Date: Re: Retrieving OL Calendar items from ASP.NET ...
- Next by Date: Page returns data from another page
- Previous by thread: Re: Problem: w3wp is memory bound
- Next by thread: Re: Problem: w3wp is memory bound
- Index(es):
Relevant Pages
|