By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,244 Members | 1,972 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,244 IT Pros & Developers. It's quick & easy.

ASP.NET Cache and memory

P: n/a
SCG
Hi,

I have had a site running for 6 months now. This morning I started observing
the following behaviour pretty much out of the blue:

I load a blob of XML into the ASP.NET cache with a timeout of 15 mins, and a
callback set up to log the unload of the data.

Immediately (the same second), my callback gets driven with a reason code of
"Underused", which implies that ASP.NET is feeling memory-challenged.

But, Task Manager suggests that only 800Mb is being used out of 1Gb, and
nothing else (SQl Server etc.) seems to have reserved the extra 200Mb
memory.

Why is ASP.NET immediately throwing out my newly cached 200 bytes of data?

Is there any other setting I could be tweaking / monitoring to help tell me
why?

Thanks for any help.
Sep 11 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
You can set the Cache Priority to NotRemove. Then it will only be
removed when the time expires and not just because of a memory issue.

It is strange that you would start having this problem. Can you tell
if there is somehow more data being loaded that was not before? Have
your tables grown a lot in the few few months?

Brennan Stehling
http://brennan.offwhite.net/blog/

SCG wrote:
Hi,

I have had a site running for 6 months now. This morning I started observing
the following behaviour pretty much out of the blue:

I load a blob of XML into the ASP.NET cache with a timeout of 15 mins, and a
callback set up to log the unload of the data.

Immediately (the same second), my callback gets driven with a reason code of
"Underused", which implies that ASP.NET is feeling memory-challenged.

But, Task Manager suggests that only 800Mb is being used out of 1Gb, and
nothing else (SQl Server etc.) seems to have reserved the extra 200Mb
memory.

Why is ASP.NET immediately throwing out my newly cached 200 bytes of data?

Is there any other setting I could be tweaking / monitoring to help tell me
why?

Thanks for any help.
Sep 11 '06 #2

P: n/a
SCG
Hi, no we are talking about 200 bytes of data. That's been static all the
time.

I had not realised that NotRemove will still allow the cached data to be
blown away at expiry - that sounds useful, especially since we are talking
about pinning 200 bytes - not 100Kb.

Many thanks.
"Brennan Stehling" <of******@gmail.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
You can set the Cache Priority to NotRemove. Then it will only be
removed when the time expires and not just because of a memory issue.

It is strange that you would start having this problem. Can you tell
if there is somehow more data being loaded that was not before? Have
your tables grown a lot in the few few months?

Brennan Stehling
http://brennan.offwhite.net/blog/

SCG wrote:
>Hi,

I have had a site running for 6 months now. This morning I started
observing
the following behaviour pretty much out of the blue:

I load a blob of XML into the ASP.NET cache with a timeout of 15 mins,
and a
callback set up to log the unload of the data.

Immediately (the same second), my callback gets driven with a reason code
of
"Underused", which implies that ASP.NET is feeling memory-challenged.

But, Task Manager suggests that only 800Mb is being used out of 1Gb, and
nothing else (SQl Server etc.) seems to have reserved the extra 200Mb
memory.

Why is ASP.NET immediately throwing out my newly cached 200 bytes of
data?

Is there any other setting I could be tweaking / monitoring to help tell
me
why?

Thanks for any help.

Sep 11 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.