473,322 Members | 1,493 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,322 software developers and data experts.

Asp 2.0: Cache Items Expiring in under a minute when set to 12 hou

On an xp machine, the caching works as expected. I have deployed to a win2k
server, and an item I add to the cache expires almost immediately some times
and in under a minute in other times. The aspnet_wp process is not restarting
during this time, and there are no other requests, so nothing should be
clearing this out. I have added a CacheItemRemovedCallback which writes debug
info out to a DefaultTraceListener, but no output shows up on the win2k
machine, but works as expected on the xp machine.

Caching code:

Cache.Insert(key, documents, null, Cache.NoAbsoluteExpiration,
TimeSpan.FromHours(12), System.Web.Caching.CacheItemPriority.Default,
DocumentsRemovedCallback);

--
Adam Tuliper
http://www.secure-coding.com

Nov 19 '05 #1
6 1740
Hi Adam,

We have reviewed this issue and are currently researching on it. We will
update you ASAP. Thanks for your patience!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Nov 19 '05 #2
Hi Adam,

See you again. Seems you've encountered another problem on your .net 2.0
deployment server ,yes? As for the caching expiration problem you
mentioned, I'm thinking it may related to the object's size you store in
the cache collection. What's the "documents" objects you stored and are
they of large size ? I'd suggest you also tries storing some small objects
with long period expiration to see whether it will also suffer this problem.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| Thread-Topic: Asp 2.0: Cache Items Expiring in under a minute when set to
12 hou
| thread-index: AcXm2YlgKw7h046lSNqgxEut1fz57A==
| X-WBNR-Posting-Host: 63.66.47.208
| From: "=?Utf-8?B?QWRhbQ==?=" <ad*********@online.nospam>
| Subject: Asp 2.0: Cache Items Expiring in under a minute when set to 12
hou
| Date: Fri, 11 Nov 2005 08:04:03 -0800
| Lines: 20
| Message-ID: <1A**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:357398
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| On an xp machine, the caching works as expected. I have deployed to a
win2k
| server, and an item I add to the cache expires almost immediately some
times
| and in under a minute in other times. The aspnet_wp process is not
restarting
| during this time, and there are no other requests, so nothing should be
| clearing this out. I have added a CacheItemRemovedCallback which writes
debug
| info out to a DefaultTraceListener, but no output shows up on the win2k
| machine, but works as expected on the xp machine.
|
| Caching code:
|
| Cache.Insert(key, documents, null, Cache.NoAbsoluteExpiration,
| TimeSpan.FromHours(12), System.Web.Caching.CacheItemPriority.Default,
| DocumentsRemovedCallback);
|
|
|
| --
| Adam Tuliper
| http://www.secure-coding.com
|
|

Nov 19 '05 #3
Kevin, has there been any update on this issue. I'm encoutering a very
similar situation on a windows 2000 development box.

thanks,
Paul

"Kevin Yu [MSFT]" wrote:
Hi Adam,

We have reviewed this issue and are currently researching on it. We will
update you ASAP. Thanks for your patience!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 21 '05 #4
keep track of the issue I opened at:
http://lab.msdn.microsoft.com/Produc...1-0279752cd1a0

My opinion when an exception occurs, the cache is cleared. Make sure no
exceptions are occuring in your code that you aren't seeing.

--
Adam Tuliper
http://www.secure-coding.com
<cheesy>Saving the world one line of code at a time</cheesy>
"PaulM" wrote:
Kevin, has there been any update on this issue. I'm encoutering a very
similar situation on a windows 2000 development box.

thanks,
Paul

"Kevin Yu [MSFT]" wrote:
Hi Adam,

We have reviewed this issue and are currently researching on it. We will
update you ASAP. Thanks for your patience!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Dec 2 '05 #5
Hi Steven,
The size of the document is very small, I doubt in this case its related to
that as sometimes the exact same document stayts around (in all cases Im
seeing success and failure with the same info in the cache). It's a class
that serializes to probably under 1k.
Seems an exception occuring can possibly clear the cache, its being
investigated now at:
http://lab.msdn.microsoft.com/Produc...1-0279752cd1a0

Thanks for the response though

--
Adam Tuliper
http://www.secure-coding.com
"Steven Cheng[MSFT]" wrote:
Hi Adam,

See you again. Seems you've encountered another problem on your .net 2.0
deployment server ,yes? As for the caching expiration problem you
mentioned, I'm thinking it may related to the object's size you store in
the cache collection. What's the "documents" objects you stored and are
they of large size ? I'd suggest you also tries storing some small objects
with long period expiration to see whether it will also suffer this problem.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| Thread-Topic: Asp 2.0: Cache Items Expiring in under a minute when set to
12 hou
| thread-index: AcXm2YlgKw7h046lSNqgxEut1fz57A==
| X-WBNR-Posting-Host: 63.66.47.208
| From: "=?Utf-8?B?QWRhbQ==?=" <ad*********@online.nospam>
| Subject: Asp 2.0: Cache Items Expiring in under a minute when set to 12
hou
| Date: Fri, 11 Nov 2005 08:04:03 -0800
| Lines: 20
| Message-ID: <1A**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:357398
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| On an xp machine, the caching works as expected. I have deployed to a
win2k
| server, and an item I add to the cache expires almost immediately some
times
| and in under a minute in other times. The aspnet_wp process is not
restarting
| during this time, and there are no other requests, so nothing should be
| clearing this out. I have added a CacheItemRemovedCallback which writes
debug
| info out to a DefaultTraceListener, but no output shows up on the win2k
| machine, but works as expected on the xp machine.
|
| Caching code:
|
| Cache.Insert(key, documents, null, Cache.NoAbsoluteExpiration,
| TimeSpan.FromHours(12), System.Web.Caching.CacheItemPriority.Default,
| DocumentsRemovedCallback);
|
|
|
| --
| Adam Tuliper
| http://www.secure-coding.com
|
|

Dec 2 '05 #6
Thanks for your further followup and the update Adam,

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Thread-Topic: Asp 2.0: Cache Items Expiring in under a minute when set to
12
| thread-index: AcX3S+c3QQJCj8+CTtaMR9OshDYObw==
| X-WBNR-Posting-Host: 63.66.47.208
| From: "=?Utf-8?B?QWRhbQ==?=" <ad*********@online.nospam>
| References: <1A**********************************@microsoft.co m>
<Ob*************@TK2MSFTNGXA02.phx.gbl>
| Subject: RE: Asp 2.0: Cache Items Expiring in under a minute when set to
12
| Date: Fri, 2 Dec 2005 06:23:02 -0800
| Lines: 95
| Message-ID: <CD**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:362296
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi Steven,
| The size of the document is very small, I doubt in this case its related
to
| that as sometimes the exact same document stayts around (in all cases Im
| seeing success and failure with the same info in the cache). It's a class
| that serializes to probably under 1k.
| Seems an exception occuring can possibly clear the cache, its being
| investigated now at:
http://lab.msdn.microsoft.com/Produc...x?feedbackid=7
e050060-7c9e-410c-9c01-0279752cd1a0
|
| Thanks for the response though
|
| --
| Adam Tuliper
| http://www.secure-coding.com
|
|
| "Steven Cheng[MSFT]" wrote:
|
| > Hi Adam,
| >
| > See you again. Seems you've encountered another problem on your .net
2.0
| > deployment server ,yes? As for the caching expiration problem you
| > mentioned, I'm thinking it may related to the object's size you store
in
| > the cache collection. What's the "documents" objects you stored and are
| > they of large size ? I'd suggest you also tries storing some small
objects
| > with long period expiration to see whether it will also suffer this
problem.
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| >
| >
| > --------------------
| > | Thread-Topic: Asp 2.0: Cache Items Expiring in under a minute when
set to
| > 12 hou
| > | thread-index: AcXm2YlgKw7h046lSNqgxEut1fz57A==
| > | X-WBNR-Posting-Host: 63.66.47.208
| > | From: "=?Utf-8?B?QWRhbQ==?=" <ad*********@online.nospam>
| > | Subject: Asp 2.0: Cache Items Expiring in under a minute when set to
12
| > hou
| > | Date: Fri, 11 Nov 2005 08:04:03 -0800
| > | Lines: 20
| > | Message-ID: <1A**********************************@microsoft.co m>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain;
| > | charset="Utf-8"
| > | Content-Transfer-Encoding: 7bit
| > | X-Newsreader: Microsoft CDO for Windows 2000
| > | Content-Class: urn:content-classes:message
| > | Importance: normal
| > | Priority: normal
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:357398
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | On an xp machine, the caching works as expected. I have deployed to a
| > win2k
| > | server, and an item I add to the cache expires almost immediately
some
| > times
| > | and in under a minute in other times. The aspnet_wp process is not
| > restarting
| > | during this time, and there are no other requests, so nothing should
be
| > | clearing this out. I have added a CacheItemRemovedCallback which
writes
| > debug
| > | info out to a DefaultTraceListener, but no output shows up on the
win2k
| > | machine, but works as expected on the xp machine.
| > |
| > | Caching code:
| > |
| > | Cache.Insert(key, documents, null, Cache.NoAbsoluteExpiration,
| > | TimeSpan.FromHours(12), System.Web.Caching.CacheItemPriority.Default,
| > | DocumentsRemovedCallback);
| > |
| > |
| > |
| > | --
| > | Adam Tuliper
| > | http://www.secure-coding.com
| > |
| > |
| >
| >
|

Dec 5 '05 #7

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

Similar topics

3
by: Brian Vallelunga | last post by:
I'm having a problem using the Cache object with asp.net. Here is what I have: 1) I put something in cache and set its callback method. 2) The object times out after X minutes and calls the...
1
by: Tony Hsieh | last post by:
Hi, So I have a asp page that displays the results of a database query that takes 3 minutes to run. I want to cache this dataset for 10 hours so I don't have to perform the 3 minute query every...
1
by: Bogdan Fiedur | last post by:
Hi All, Recently our production server asp.net cache expires on average every 5 seconds. Any clues why is this happening and how to fix it. Bogdan Fiedur
3
by: Jon | last post by:
I have a couple of tables I want to load into a dataset and keep around pretty much forever, although they will need to be refreshed every so often. I can either put the dataset into an...
3
by: MattC | last post by:
Hi, I am persisting the viewstate for each page into the Cache object, below is shown my methods for saving and loading: I am able to save the viewstate to the cache and most times I can load...
22
by: roadrunner | last post by:
Hi, Our website has recently been experiencing some problems under load. We have pinpointed a particular function which slows dramatically when we have these problems. Normally it should execute...
2
by: Don | last post by:
I've come across a weird behaviour with regards to the cache object. I couldn't find any documentation which could explain this. Basically the problem has to do with the cache item NOT expiring....
5
by: Stan SR | last post by:
Hi, Some newbie questions.. :-) First, what is the namespace to use for the Cache class ? When I use this bit of code I get an error if (Cache==null) Cache.Insert("myUserList",userlist);...
10
by: =?Utf-8?B?TmFkYXYgUG9wcGxld2VsbA==?= | last post by:
Hi Everybody, I'm trying to save some items in the asp.net cache, but they are removed from the cache WAY before they are supposed to (at least as I understand the documentation). I add the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.