[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

SteveF

5/4/2006 3:32:00 PM

When running an Asp.Net 2.0 web application
any items that I add to the cache are being removed almost instantly
with a reason of underused. I know this as I have hooked up a delegate
that is invoked when the cached item is removed.

If I set the priority to be NonRemoveable this does not happen however
this leaves the application in danger of taking up large amounts of
memory and is not really an 'workaround'.

Anyone else seen or heard this problem????


3 Answers

Göran Andersson

5/6/2006 12:23:00 PM

0

This is probably due to having too little free memory. The server will
throw away cached items when it needs to free up more memory.

Steve F wrote:
> When running an Asp.Net 2.0 web application
> any items that I add to the cache are being removed almost instantly
> with a reason of underused. I know this as I have hooked up a delegate
> that is invoked when the cached item is removed.
>
> If I set the priority to be NonRemoveable this does not happen however
> this leaves the application in danger of taking up large amounts of
> memory and is not really an 'workaround'.
>
> Anyone else seen or heard this problem????
>
>

Matt Morgan

6/15/2006 6:33:00 PM

0

I have experienced this problem since upgrading to 2.0. Others have
commented on it elsewhere. I don't think this is simply a problem with "too
little free memory".

http://www.hightechtalks.com/asp-net-caching/asp-net-2-0-caching-...

In my case, there are times where objects inserted into the cache instantly
disappear. This does not seem to have any correlation to the amount of free
memory on the system.

"Göran Andersson" wrote:

> This is probably due to having too little free memory. The server will
> throw away cached items when it needs to free up more memory.
>
> Steve F wrote:
> > When running an Asp.Net 2.0 web application
> > any items that I add to the cache are being removed almost instantly
> > with a reason of underused. I know this as I have hooked up a delegate
> > that is invoked when the cached item is removed.
> >
> > If I set the priority to be NonRemoveable this does not happen however
> > this leaves the application in danger of taking up large amounts of
> > memory and is not really an 'workaround'.
> >
> > Anyone else seen or heard this problem????
> >
> >
>

wyx2000

9/10/2006 9:56:00 AM

0

Try reset your service broker in SQL 2005

Alter database thedb set new_broker

"Matt Morgan" wrote:

> I have experienced this problem since upgrading to 2.0. Others have
> commented on it elsewhere. I don't think this is simply a problem with "too
> little free memory".
>
> http://www.hightechtalks.com/asp-net-caching/asp-net-2-0-caching-...
>
> In my case, there are times where objects inserted into the cache instantly
> disappear. This does not seem to have any correlation to the amount of free
> memory on the system.
>
> "Göran Andersson" wrote:
>
> > This is probably due to having too little free memory. The server will
> > throw away cached items when it needs to free up more memory.
> >
> > Steve F wrote:
> > > When running an Asp.Net 2.0 web application
> > > any items that I add to the cache are being removed almost instantly
> > > with a reason of underused. I know this as I have hooked up a delegate
> > > that is invoked when the cached item is removed.
> > >
> > > If I set the priority to be NonRemoveable this does not happen however
> > > this leaves the application in danger of taking up large amounts of
> > > memory and is not really an 'workaround'.
> > >
> > > Anyone else seen or heard this problem????
> > >
> > >
> >