Re: maximum .net process can use
thanks for the information. By the way, I'm not clear on how the author of
the article came up with the 800MB as a good threshold for "Process\Privat e
Bytes"? I restructured my code to reduce memory consumption peak (it's long
to explain it but it including removing a website from the server) and it's
running fine even when the "Private Bytes" goes up to 1.3G. I suspect that
the MEM_RESERVE regions go up for each additional website as well but I
still don't get the 800MB threshold, could someone explain? Thanks!
Also, I was setting the memory max to 80% instead of 60% hoping to solve the
problem. I'm changing it back down to 65% now.
"Neyah" <Neyah@discussi ons.microsoft.c om> wrote in message
news:2A019F44-5E44-4435-8374-552A157D7B7D@mi crosoft.com...[color=blue]
> See this info (it's long)
> http://msdn.microsoft.com/library/de...nitor_perf.asp
>
> A quote:
> First, the likelihood of experiencing an OutOfMemoryExce ption begins to
> increase dramatically when "Process\Virtua l Bytes" is within 600 MB of the
> virtual address space limit (generally 2 GB), and secondly, tests have
> shown
> that "Process\Virtua l Bytes" is often larger than "Process\Privat e Bytes"
> by
> no more than 600 MB. This difference is due in part to the MEM_RESERVE
> regions maintained by the GC, allowing it to quickly commit more memory
> when
> needed. Taken together this implies that when "Process\Privat e Bytes"
> exceeds
> 800 MB, the likelihood of experiencing an OutOfMemoryExce ption increases.
>
> Long story short, asp.net 1.1 with has a high likelyhood of experiencing
> OutOfMemoryExce ptions once the aspnet_wp.exe process exceeds 800 MB due to
> address space limitations and additional reserve by the GC.
>
> The below applies to IIS 5.0. For IIS 6.0, you would set this up from IIS
> Manager Properties -> Recycling -> Maximum used memory. But one of your
> other posts indicated you were using Win 2k server, so you don't have IIS
> 6.0.
>
> The memorylimit defaults to 60% of available RAM, which is why you didn't
> have any issues while you only had 1 GB. Now that you have 2 GB,
> aspnet_wp.exe won't recycle until it reaches 1.2 GB, which is over the 800
> MB
> problem point. You'll want to set the memoryLimit in the your
> machine.config
> setting for processModel to a value that doesn't exceed 800 MB. For a 2
> GB
> machine, 39% will do the trick.
>
> If you have enough RAM to where you have included the /3GB switch to
> boot.ini, you can use a value that calculates out to 1,800 MB instead.
>
> I'd also recommend lowering the timout and idelTimout values from
> Infinite,
> to a lower value. This will allow the aspnet_wp.exe process to actually
> recycle.
>
> "Zen" wrote:
>[color=green]
>> Hi,
>>
>> My production machine has 2G of memory, when aspnet_wp.exe goes up to
>> about
>> ~1.2G of memory usage, I start get out-of-memory exception. Other
>> processes
>> don't use as much memory and I added all the peak memory usage of all the
>> processes (including aspnet_wp.exe), it goes up to no more than 1.5.
>>
>> How is that possible? Would anyone know please help? thanks!
>>
>>
>>[/color][/color]
thanks for the information. By the way, I'm not clear on how the author of
the article came up with the 800MB as a good threshold for "Process\Privat e
Bytes"? I restructured my code to reduce memory consumption peak (it's long
to explain it but it including removing a website from the server) and it's
running fine even when the "Private Bytes" goes up to 1.3G. I suspect that
the MEM_RESERVE regions go up for each additional website as well but I
still don't get the 800MB threshold, could someone explain? Thanks!
Also, I was setting the memory max to 80% instead of 60% hoping to solve the
problem. I'm changing it back down to 65% now.
"Neyah" <Neyah@discussi ons.microsoft.c om> wrote in message
news:2A019F44-5E44-4435-8374-552A157D7B7D@mi crosoft.com...[color=blue]
> See this info (it's long)
> http://msdn.microsoft.com/library/de...nitor_perf.asp
>
> A quote:
> First, the likelihood of experiencing an OutOfMemoryExce ption begins to
> increase dramatically when "Process\Virtua l Bytes" is within 600 MB of the
> virtual address space limit (generally 2 GB), and secondly, tests have
> shown
> that "Process\Virtua l Bytes" is often larger than "Process\Privat e Bytes"
> by
> no more than 600 MB. This difference is due in part to the MEM_RESERVE
> regions maintained by the GC, allowing it to quickly commit more memory
> when
> needed. Taken together this implies that when "Process\Privat e Bytes"
> exceeds
> 800 MB, the likelihood of experiencing an OutOfMemoryExce ption increases.
>
> Long story short, asp.net 1.1 with has a high likelyhood of experiencing
> OutOfMemoryExce ptions once the aspnet_wp.exe process exceeds 800 MB due to
> address space limitations and additional reserve by the GC.
>
> The below applies to IIS 5.0. For IIS 6.0, you would set this up from IIS
> Manager Properties -> Recycling -> Maximum used memory. But one of your
> other posts indicated you were using Win 2k server, so you don't have IIS
> 6.0.
>
> The memorylimit defaults to 60% of available RAM, which is why you didn't
> have any issues while you only had 1 GB. Now that you have 2 GB,
> aspnet_wp.exe won't recycle until it reaches 1.2 GB, which is over the 800
> MB
> problem point. You'll want to set the memoryLimit in the your
> machine.config
> setting for processModel to a value that doesn't exceed 800 MB. For a 2
> GB
> machine, 39% will do the trick.
>
> If you have enough RAM to where you have included the /3GB switch to
> boot.ini, you can use a value that calculates out to 1,800 MB instead.
>
> I'd also recommend lowering the timout and idelTimout values from
> Infinite,
> to a lower value. This will allow the aspnet_wp.exe process to actually
> recycle.
>
> "Zen" wrote:
>[color=green]
>> Hi,
>>
>> My production machine has 2G of memory, when aspnet_wp.exe goes up to
>> about
>> ~1.2G of memory usage, I start get out-of-memory exception. Other
>> processes
>> don't use as much memory and I added all the peak memory usage of all the
>> processes (including aspnet_wp.exe), it goes up to no more than 1.5.
>>
>> How is that possible? Would anyone know please help? thanks!
>>
>>
>>[/color][/color]
Comment