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

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

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.