HighTechTalks DotNet Forums  

Cache.Insert set absolute time but Cache become null immediately

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss Cache.Insert set absolute time but Cache become null immediately in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old   
Walter Wang [MSFT]
 
Posts: n/a

Default RE: Cache.Insert set absolute time but Cache become null immediate - 02-15-2007 , 04:06 AM






Hi Robin,

Thank you for your detailed log information. This helps me to see more
clearly now.

It seems you're using Web Garden mode in IIS -- multiple worker process for
an AppPool.

Because Web gardens enable the use of multiple processes, all processes
have their
own copy of application state, in-process session state, caches, and static
data.

By default, the Web garden feature is disabled in IIS 6.0, and the default
number
of worker processes assigned to an application pool is set to 1. You can
enable Web garden functionality by setting the number of worker processes
assigned to an
application pool to a number greater than 1. For information about how to
configure a Web garden by using IIS Manager, see

#Configure Application Pool Performance
http://www.microsoft.com/technet/pro.../Library/IIS/6
d3f37b8-c7ef-4a9c-9b78-eba9412181d8.mspx

To verify this, you could print out the process id of the request by:

Response.Write(System.Diagnostics.Process.GetCurre ntProcess().Id);

Regards,
Walter Wang (wawang (AT) online (DOT) microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

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


Reply With Quote
  #12  
Old   
Robin
 
Posts: n/a

Default RE: Cache.Insert set absolute time but Cache become null immediate - 02-15-2007 , 10:51 AM






That was it. Thank you so much. I was not the one to set up the application
pool-my co-worker had this worker process set to 5. Without knowing about
this setting, I was at a loss. Thanks so much!



"Walter Wang [MSFT]" wrote:

Quote:
Hi Robin,

Thank you for your detailed log information. This helps me to see more
clearly now.

It seems you're using Web Garden mode in IIS -- multiple worker process for
an AppPool.

Because Web gardens enable the use of multiple processes, all processes
have their
own copy of application state, in-process session state, caches, and static
data.

By default, the Web garden feature is disabled in IIS 6.0, and the default
number
of worker processes assigned to an application pool is set to 1. You can
enable Web garden functionality by setting the number of worker processes
assigned to an
application pool to a number greater than 1. For information about how to
configure a Web garden by using IIS Manager, see

#Configure Application Pool Performance
http://www.microsoft.com/technet/pro.../Library/IIS/6
d3f37b8-c7ef-4a9c-9b78-eba9412181d8.mspx

To verify this, you could print out the process id of the request by:

Response.Write(System.Diagnostics.Process.GetCurre ntProcess().Id);

Regards,
Walter Wang (wawang (AT) online (DOT) microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.