HighTechTalks DotNet Forums  

OutOfMemoryException.

Dotnet Framework (Performance) microsoft.public.dotnet.framework.performance


Discuss OutOfMemoryException. in the Dotnet Framework (Performance) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
RK
 
Posts: n/a

Default OutOfMemoryException. - 11-12-2007 , 01:36 PM






We are experiencing OutOfMemoryException on our Production web
server(s) when requests been made for certain PDF document
download(s).

Production web server(s) (we have 2 such servers load balanced in
round robin fashion) each have 4 Processors running on windows 2003. I
tried to memory optimize the PDF document download, but still I see
error(s) when the server(s) are stressed.

Anyone pls suggest me if We implement WEBGARDEN (we are using ASP.NET
v 1.14) in this kind of scenario can we improve the memory issues??

I think memory is accumulating even before GC releases it.

thanks in adavance.
RK


Reply With Quote
  #2  
Old   
Chris Mullins [MVP - C#]
 
Posts: n/a

Default Re: OutOfMemoryException. - 11-12-2007 , 07:16 PM






You're likley getting bitten by several things:
- Running in ASP.Net 1.1 on win2k3 with a Quad Proc box, means you're
running the Server Garbage collector. This means you've got multiple heaps,
each one probably about 400 megs in size (2GB for your process to play with,
about 1.6 GB usefull. 1.6GB / 4 = about 400 megs).

- You're running more threads that you mean to (25 threads x 4 processors +
4 GC threads = 104 threads at a minimum), and each thread takes at least 1
meg of memory.

- You're doing downloads and file writes, so you're likley getting some
signifigant heap fragmentation.

Things you should try right off the bat:
- Upgrade to ASP.Net 2.0. Don't change any code, just compile with .Net 2.x,
and deploy. The GC in .Net 2.0 is much better about preventing heap
fragmentation.
- You could look at switching over to the Workstation GC, which may buy you
a little bit of time between OOM exceptions.

Things you should be thinking about in the not-to-distant future:
- Once you run under ASP.Net 2.0, switch over to x64 and add more memory.

--
Chris Mullins

"RK" <r_adhakrishna (AT) yahoo (DOT) com> wrote

Quote:
We are experiencing OutOfMemoryException on our Production web
server(s) when requests been made for certain PDF document
download(s).

Production web server(s) (we have 2 such servers load balanced in
round robin fashion) each have 4 Processors running on windows 2003. I
tried to memory optimize the PDF document download, but still I see
error(s) when the server(s) are stressed.

Anyone pls suggest me if We implement WEBGARDEN (we are using ASP.NET
v 1.14) in this kind of scenario can we improve the memory issues??

I think memory is accumulating even before GC releases it.

thanks in adavance.
RK




Reply With Quote
  #3  
Old   
Trevor Benedict
 
Posts: n/a

Default Re: OutOfMemoryException. - 11-19-2007 , 01:32 PM



If you are reading and streaming the PDF documents via code, then try to
turn off buffering for that particular download.

Regards,

Trevor Benedict
MCSD

"RK" <r_adhakrishna (AT) yahoo (DOT) com> wrote

Quote:
We are experiencing OutOfMemoryException on our Production web
server(s) when requests been made for certain PDF document
download(s).

Production web server(s) (we have 2 such servers load balanced in
round robin fashion) each have 4 Processors running on windows 2003. I
tried to memory optimize the PDF document download, but still I see
error(s) when the server(s) are stressed.

Anyone pls suggest me if We implement WEBGARDEN (we are using ASP.NET
v 1.14) in this kind of scenario can we improve the memory issues??

I think memory is accumulating even before GC releases it.

thanks in adavance.
RK




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.