[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]
Doubt regarding overflowtodisk=true  XML
Forum Index -> Ehcache
Author Message
dinesh86

neo

Joined: 10/13/2014 06:09:23
Messages: 1
Offline

Please find my ehcache.xml file

<?xml version="1.0" encoding="UTF-8"?>
<ehcache
updateCheck="false"
monitoring="autodetect"
dynamicConfig="false"
maxBytesLocalHeap="100M"
>
<diskStore path="d:\\mycache" />
<defaultCache
maxBytesLocalHeap="75M"
eternal="true"
timeToIdleSeconds="0"
timeToLiveSeconds="0"
maxElementsOnDisk="20000000"
diskExpiryThreadIntervalSeconds="120" >
</defaultCache>
<cache name="employees"
maxBytesLocalHeap="75M"
maxElementsOnDisk="1111100000"
eternal="true"
timeToIdleSeconds="0"
timeToLiveSeconds="0"
overflowToDisk="true"
>
</cache>
</ehcache>


when i try to run my program with this configuration, since i have made overflowToDisk="true" it should start writing to disk once the heap size is overflown. but when i stop the program after few minutes of running wven the heap memory is not full i found out that at my disk storage location employees.data file is generated and it is having data of more than 1 mb. But accor to documentation it should write to disk if heap memory becomes overflow.

Help me in this
 
Forum Index -> Ehcache
Go to:   
Powered by JForum 2.1.7 © JForum Team