[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Unable to fetch rows from cache  XML
Forum Index -> Ehcache
Author Message
bushan

neo

Joined: 05/29/2013 21:38:29
Messages: 1
Offline

Hi

From last few days we are struck with one issue , sometime we are not getting required row from cache , not able to exactly figure out reason for this.

We have some doubts on the ehcache configuration, the current max setting is 40k objects but in our database , we have total of 63k rows. Does this mean only 40k object will be in the cache and not the entire 63k?


<cache name="com.scb.server.bmc.eo.SCBParamDataEO"
maxElementsInMemory="40000"
eternal="false"
timeToIdleSeconds="0"
timeToLiveSeconds="0"
overflowToDisk="false"
diskPersistent="false" />
Thanks
gyan10

ophanim

Joined: 06/28/2011 23:15:25
Messages: 701
Offline

yes, you have set overflow to disk=false. so as soon as your memory fills up with 40000 records. Cache start eviction fro memory. So only 40K records can store in heap memory.
Please set overflow to disk =true.

Hope this will help.
Cheers!!

Gyan Awasthi
Terracotta -A Software AG company
 
Forum Index -> Ehcache
Go to:   
Powered by JForum 2.1.7 © JForum Team