Print Page | Close Window

Cache Memory Use

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1185
Printed Date: 25-Apr-2024 at 3:06am


Topic: Cache Memory Use
Posted By: *Calsy
Subject: Cache Memory Use
Date Posted: 01-Apr-2009 at 7:54pm
Hi All, I am currently doing memory tuning on our application. Some of our clients have complained about the app choking up to much memory in some situations. I am seeing big spikes of Virtual Memory when I pull back large amounts of data, i'm thinking that this is caused by the data being stored into the application local cache. Is there any way we can manage this memory use better? Even when i perform a QueryCache.clear it does not seem to release the memory. Have you come across any clients that are looking to fine tune their memory use and what they might have done to do so?

Thanks in advance



Replies:
Posted By: *Calsy
Date Posted: 05-Apr-2009 at 2:57pm
Any ideas???


Posted By: davidklitzke
Date Posted: 17-Apr-2009 at 11:38am
Clearing the QueryCache is different than clearing the “entity cache” which is accomplished by calling RemoveEntities on the entities that one wants to remove.  The QueryCache is just a list of queries that have been recently called, not the entities returned from the cache. 
 
Of course when using RemoveEntities, you want to be careful not to remove entities that you are still using.



Print Page | Close Window