Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
851 views
in Technique[技术] by (71.8m points)

.net - What happens to Cache when Application Pool recycles?

I have web application on IIS6 Win2003. This application connected to w3wp.exe process which reaches 50-70% of CPU after 3-4 minutes it was recycled ( forced one ). I have few places with Cache in this project so my questions concern the case if i set AppPool recycle limits and the process will recycle every few minutes to avoid high CPU overload unless i find what causing it which can take years ( heh )...

There are two types of Cache i'm using though the Web Application project, Output Cache and Cache.

What happens to two of those once i recycle application?

In case two of those deleted what should i do in order to keep those alive even if i recycle Application Pool ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The Cache is part of the application domain so recycling the Application Pool will invalidate all cache items.

This will also happen if you modify the web.config file or the bin folder.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...