English 中文(简体)
页: 1
原标题:Asp.net cached objects staying in memory

我有一套使用系统的蚊帐。 Web.Caching. 2小时从一些网络服务处收集海滩Xml数据。

  webCacheObj.Remove(dataCacheKey)
  webCacheObj.Insert(dataCacheKey, dataToCache, Nothing, DateTime.Now.AddHours(2), Nothing)

每90分钟,Microsoft搜索服务器就打了一个特别(间谍)页面,该网页将物体带入海滩。

问题一是,在一段时间内,申请的记忆使用成倍增长。 可以说,在一周内,申请库的记忆使用量增加到超过1gb。

目前无法使用IIS7,也没有能够进行应用集合回收。

最佳回答

页: 1 人类网页相对较短。 学习它,爱它,活着;

这就是说:

Cache.Insert(dataCacheKey, dataToCache, Nothing, DateTime.Now.AddHours(2), Cache.NoSlidingExpiration)

页: 1 是否有理由不说静态的Cache?

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签