Last post Jan 11, 2011 08:26 AM by Miodrag Zivkovic
Jan 11, 2011 02:42 AM|atul.jain|LINK
<caching><cache percentagePhysicalMemoryusedlimit="1" privateBytesLimit="2097152"/></caching>
Available phycial memory is 700MB
percentagePhysicalMemoryusedlimit - It means 1 percent of 700MB i.e 7MB that my whole asp.net application will take including cache.
privateBytesLimit - It mean when the total 2MB used, my cache objects get remove
Now I am creating two cache object which have 5MB of data each, so total size is 10MB, taken by the cache, but still cache objects donot get removed from the memory.
I am setting the cachepriority also while inserting into cache.
Kindly tell me what I am missing ?
Jan 11, 2011 08:26 AM|Miodrag Zivkovic|LINK
I haven't found an appropriate solution.
I will try to motivate you to keep going :-)
Try to do the following:
By msdn (http://msdn.microsoft.com/en-us/library/ms228248.aspx):
"A setting of 0 results in entries being removed immediately, as quickly as they are inserted."
BTW, just to confirm: Your setting should be attempt to reclaim memory at 2 MB.