PC Review


Reply
Thread Tools Rate Thread

ASP.Net, Out of Memory

 
 
Nick K.
Guest
Posts: n/a
 
      10th Nov 2005
We have ASP.Net web applications running on a Windows 200 Server using the
..Net Framework 1.0. We have been experiencing out of memory errors being
displayed on the web page after the application runs for sometimes days.

I have attempted to adjust the settings in the machine.config file setting
the <processModel> memoryLimit attribute up from the default 60 (%) to
80(%). Around this same time we upped the memory on this server to 4 Gig.

The application seemed to run for longer before getting the out-of-memory
errors, but they still happen before we have to re-boot the server.

Should this memoryLimit be bumped up even more? Are there other attributes
in the <processModel> that should be adjusted that would help? How do we go
about tracking down what is taking up all the memory?


 
Reply With Quote
 
 
 
 
Marina
Guest
Posts: n/a
 
      10th Nov 2005
Is it possible there are resources that are not being cleaned up properly,
and are thus not being garbage collected?

"Nick K." <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> We have ASP.Net web applications running on a Windows 200 Server using the
> .Net Framework 1.0. We have been experiencing out of memory errors being
> displayed on the web page after the application runs for sometimes days.
>
> I have attempted to adjust the settings in the machine.config file setting
> the <processModel> memoryLimit attribute up from the default 60 (%) to
> 80(%). Around this same time we upped the memory on this server to 4 Gig.
>
> The application seemed to run for longer before getting the out-of-memory
> errors, but they still happen before we have to re-boot the server.
>
> Should this memoryLimit be bumped up even more? Are there other attributes
> in the <processModel> that should be adjusted that would help? How do we
> go about tracking down what is taking up all the memory?
>



 
Reply With Quote
 
Nick K.
Guest
Posts: n/a
 
      10th Nov 2005
I am considering all possibilities. I asked if there were any unmanaged code
being called and I was told no. Garbage collecting is something .Net is
suppose to handle automatically.

"Marina" <(E-Mail Removed)> wrote in message
news:e%(E-Mail Removed)...
> Is it possible there are resources that are not being cleaned up properly,
> and are thus not being garbage collected?
>
> "Nick K." <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> We have ASP.Net web applications running on a Windows 200 Server using
>> the .Net Framework 1.0. We have been experiencing out of memory errors
>> being displayed on the web page after the application runs for sometimes
>> days.
>>
>> I have attempted to adjust the settings in the machine.config file
>> setting the <processModel> memoryLimit attribute up from the default 60
>> (%) to 80(%). Around this same time we upped the memory on this server to
>> 4 Gig.
>>
>> The application seemed to run for longer before getting the out-of-memory
>> errors, but they still happen before we have to re-boot the server.
>>
>> Should this memoryLimit be bumped up even more? Are there other
>> attributes in the <processModel> that should be adjusted that would help?
>> How do we go about tracking down what is taking up all the memory?
>>

>
>



 
Reply With Quote
 
Marina
Guest
Posts: n/a
 
      10th Nov 2005
That is if the objects are eligible for GC to begin with. It is possible
that you have objects that are not going out of scope for a long time.

One example of this is if you are storing large amounts of data in Session
state, and you have long session timeouts. So that data hangs around for a
long time before it is eligible for GC, and after you get a lot of users on
the system, you just run out of space.

That is one example.

Another thing to try is to use a different server. If the same problem is
there, then it is more likely that the problem is with the application. If
the other server works fine under the same load, then it would be something
specific to the first machine's configuration.

"Nick K." <(E-Mail Removed)> wrote in message
news:%23r4%(E-Mail Removed)...
>I am considering all possibilities. I asked if there were any unmanaged
>code being called and I was told no. Garbage collecting is something .Net
>is suppose to handle automatically.
>
> "Marina" <(E-Mail Removed)> wrote in message
> news:e%(E-Mail Removed)...
>> Is it possible there are resources that are not being cleaned up
>> properly, and are thus not being garbage collected?
>>
>> "Nick K." <(E-Mail Removed)> wrote in message
>> news:%(E-Mail Removed)...
>>> We have ASP.Net web applications running on a Windows 200 Server using
>>> the .Net Framework 1.0. We have been experiencing out of memory errors
>>> being displayed on the web page after the application runs for sometimes
>>> days.
>>>
>>> I have attempted to adjust the settings in the machine.config file
>>> setting the <processModel> memoryLimit attribute up from the default 60
>>> (%) to 80(%). Around this same time we upped the memory on this server
>>> to 4 Gig.
>>>
>>> The application seemed to run for longer before getting the
>>> out-of-memory errors, but they still happen before we have to re-boot
>>> the server.
>>>
>>> Should this memoryLimit be bumped up even more? Are there other
>>> attributes in the <processModel> that should be adjusted that would
>>> help? How do we go about tracking down what is taking up all the memory?
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make MODI.Document not leak memory? I have millions of images to OCR but each time i OCR one it leaks memory. How to do the OCR and then clean up so that my app doesnt leak memory? DR Microsoft Dot NET Framework 1 4th Feb 2008 11:41 PM
My available memory is down to very little, yet my PF Usage is 8 gigabytes (about how much memory is on the box), sql server keeps having memory issues yet the sqlservr.exe is using hardly any memory.. how to fix this? is there some way to limit how Daniel Microsoft Windows 2000 Security 1 30th Aug 2007 07:38 AM
My available memory is down to very little, yet my PF Usage is 8 gigabytes (about how much memory is on the box), sql server keeps having memory issues yet the sqlservr.exe is using hardly any memory.. how to fix this? is there some way to limit how Daniel Microsoft Windows 2000 1 30th Aug 2007 01:22 AM
My available memory is down to very little, yet my PF Usage is 8 gigabytes (about how much memory is on the box), sql server keeps having memory issues yet the sqlservr.exe is using hardly any memory.. how to fix this? is there some way to limit how Daniel Microsoft Windows 2000 Networking 0 28th Aug 2007 12:38 AM
My available memory is down to very little, yet my PF Usage is 8 gigabytes (about how much memory is on the box), sql server keeps having memory issues yet the sqlservr.exe is using hardly any memory.. how to fix this? is there some way to limit how Daniel Microsoft Windows 2000 Advanced Server 0 28th Aug 2007 12:38 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:36 AM.