Setting the HttpRuntime.cache maximum size --- please help

  • Thread starter Thread starter almurph
  • Start date Start date
A

almurph

Hi,


I'm calling the following from inside a DLL framework:

HttpRuntime.Cache.EffectivePrivateBytesLimit;

I get a massive number returned. I want to be able to set it to a
lower value.


This DLL is fed into a Web Application. I am using the following tag
in the Web.config of the web application:


<caching>
<cache disableMemoryCollection="false"
disableExpiration="false"
privateBytesLimit="1000"
percentagePhysicalMemoryUsedLimit="50"
privateBytesPollTime="00:00:00" />
</caching>

But to be honest I cant make it talk to the HttpRuntime.Cache. I
think I have to do something to the IIS 5.1 memory pool or something
to the vlaue that I want.

Can anyone help me here. I would greatly appreciate any comments/
suggestions/user expereinces that you may liek to share.

Thanking you,
Al.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top