A
Anand Saha
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 = new StringBuilder(9999999);
j = 0;
while (j < (9999999))
{
sb.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
--
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 = new StringBuilder(9999999);
j = 0;
while (j < (9999999))
{
sb.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
--