473,395 Members | 1,386 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

ASP.NET and cache - just want to be sure

SCG
Hi,

[sorry if this sounds familiar but just want ot be sure]

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
4 1842
80% of your total memory is a lot. By default, asp.net tries to limits
itself to 60% of the total available memory. I doubt that you'd want it to
go anymore than 80%...the O/S still needs to run, and the last thing you
want is any high amount of paging to the hdd.

You can specify a priority for your cache, but .NET generally knows better
how to manage memory than you do.

You can load up perfmon and look at some performance monitors, cache hits,
memory size.

You can get a memory profile and try to use up less than 800megs
(http://www.red-gate.com/products/ant...iler/index.htm)

You can play with your machine.config's processModel section and increase
the maximum memory limit

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/
"SCG" <si***@myphones.comnosendwrote in message
news:ei**************@TK2MSFTNGP06.phx.gbl...
Hi,

[sorry if this sounds familiar but just want ot be sure]

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
Also check the settings for your Application Pool. Maybe it is not
giving you access to all of that memory.

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

SCG wrote:
Hi,

[sorry if this sounds familiar but just want ot be sure]

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
SCG
Sorry - I meant that Task Manager was showing me the *total* used memory -
not just for those processes using .NET.

So, I figured 800Mb was OK. What I could not / still cant understand is why
it's simply not using that 200Mb spare, and instead dumping my 200 bytes out
of cache with "Underused"...

....as though it can;t get to that last 200Mb (even though it's not been
reserved for SQLServer 2000 or such).

Thanks,
Simon.
"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
netwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...
80% of your total memory is a lot. By default, asp.net tries to limits
itself to 60% of the total available memory. I doubt that you'd want it to
go anymore than 80%...the O/S still needs to run, and the last thing you
want is any high amount of paging to the hdd.

You can specify a priority for your cache, but .NET generally knows better
how to manage memory than you do.

You can load up perfmon and look at some performance monitors, cache hits,
memory size.

You can get a memory profile and try to use up less than 800megs
(http://www.red-gate.com/products/ant...iler/index.htm)

You can play with your machine.config's processModel section and increase
the maximum memory limit

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/
"SCG" <si***@myphones.comnosendwrote in message
news:ei**************@TK2MSFTNGP06.phx.gbl...
>Hi,

[sorry if this sounds familiar but just want ot be sure]

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 #4
I do not believe the way the Cache works is documented. I have not
seen it anywhere. What would be useful is a metric on the total memory
held in the Cache. I am not aware of how that can be done without a
profiler.

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

SCG wrote:
Sorry - I meant that Task Manager was showing me the *total* used memory -
not just for those processes using .NET.

So, I figured 800Mb was OK. What I could not / still cant understand is why
it's simply not using that 200Mb spare, and instead dumping my 200 bytes out
of cache with "Underused"...

...as though it can;t get to that last 200Mb (even though it's not been
reserved for SQLServer 2000 or such).

Thanks,
Simon.
"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
netwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...
80% of your total memory is a lot. By default, asp.net tries to limits
itself to 60% of the total available memory. I doubt that you'd want it to
go anymore than 80%...the O/S still needs to run, and the last thing you
want is any high amount of paging to the hdd.

You can specify a priority for your cache, but .NET generally knows better
how to manage memory than you do.

You can load up perfmon and look at some performance monitors, cache hits,
memory size.

You can get a memory profile and try to use up less than 800megs
(http://www.red-gate.com/products/ant...iler/index.htm)

You can play with your machine.config's processModel section and increase
the maximum memory limit

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/
"SCG" <si***@myphones.comnosendwrote in message
news:ei**************@TK2MSFTNGP06.phx.gbl...
Hi,

[sorry if this sounds familiar but just want ot be sure]

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 12 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Bill H | last post by:
I have a routine that displays 60 items (with thumbnails) per page. You can click any item and displays a new page with item details. When the user back pages it runs the query again to display all...
2
by: Harry Simpson | last post by:
If anyone can chime in on these questions, I'd sure appreciate it. 1. How does the cache block fit in with the UIP Block - Is the "state" managed there handled any differently with the CAB...
4
by: Erick | last post by:
i have an asp.net application and I want to save the results of an sql query in cache. Because the queries take 28 seconds to run (there are twelve similar queries) I want to run it all at 4am, ...
1
by: William Sullivan | last post by:
I'm trying to nail down some issues with the cache in my application. Currently, I have an object that stands between my business logic and database logic called CacheLogic (cute, no?). ...
18
by: siddharthkhare | last post by:
Hi All, what is the diference between these two cache control header. no-cache and no-store. I have read the w3.org explanation. So lets say I am using only no-cache ....my understanding is...
11
by: EagleRed | last post by:
I am writing an ASP.NET 2.0 application that uses master pages. I have some pages that must not be cached on the client. In ASP.NET 1.1 I achieved this using metatags: <meta...
4
by: RedHair | last post by:
Development: Windows 2003 Production :Windows 2003 ASP.NET 2.0 + C# I want to disable the cache feature of all pages in dev but enable it in production environments. What's the solution? If...
8
by: brett | last post by:
How do I add a string to the cache so that it updates if the string source changes? CacheDependency() seems to want an absolute path. My string is a full http link. Thanks, Brett
2
by: moondaddy | last post by:
I had to repost this because I had to update and change my msdn alias. I will re-ask the question and clarify a few things that were not clear before. This code is all executed on my dev...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.