out of memory

I am using asp.net and vb code behind to build a website with multiple update panels.  The purpose of this is the continually update charts in the panels at a frequency of 1 second intervals.  The code works fine until it runds for about 17 to 20 minutes.  At that point I get an out of memory message from the web page - 'out of memory at line 1301'.

I have tried clearing memory out of cache by using the following in page load:

Cache.Remove("WebForm5.aspx")
Cache.Remover("Repeater1")

I have tried the above cache removal code for each control and for the page in which I have the update panels.  They have no effect at all.

I have also tried setting the 'EnableEventValidation="False"'

Several questions:

1.  Is this asp.net code line 1301 or vb code behind?
2.  Is cache automatically loaded into memory even though I am not programmatically loading any into cache?
3.  Why does the Cache.Removal code have no effect?

What else can I try?

Can anyone help?

Thanks in advance.
rckrchAsked:
Who is Participating?
 
CodeCruiserConnect With a Mentor Commented:
You would have more problem with 1 sec interval on production site because it will take more time to get response for each request and there may be more concurrent users. So i hope 30 sec interval should be fine. If you want, you can keep playing with the interval by reducing to 25, 20 and so on.
0
 
yatin_81Commented:
Run the web site from IIS. Set the recycling propertes in Application pool to use reserved memory size.
0
 
CodeCruiserCommented:
I suspect the problem is 1 second interval. I dont think request goes to the server and comes back within a second. So you essentially create a long queue of AJAX calls and it brings the system down at some point. Try testing with a 5 second interval.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
GlobaLevelProgrammerCommented:
in addition to the above...do a garbage collection and destroy object, varaibles...
0
 
rckrchAuthor Commented:
yatin 81 - I don't have a 'reserved memory size' option in my Application pool.

CodeCruiser - setting the time interval to 30 seconds did the trick.  I have a lot of data feeding 3 charts and 3 gridviews on the same page and the I guess this was the interval that was needed to correct the situation.  I do suspect that when I start running the web site from IIS and the production application is installed on the server I won't have the problem to the same extent.

Correct?
0
 
rckrchAuthor Commented:
Thanks for the help.  Very informative.
0
 
CodeCruiserCommented:
Glad to help :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.