| Author |
Message |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 10/14/2009 05:27:41
|
xprk230
neo
Joined: 10/14/2009 05:25:34
Messages: 3
Offline
|
Can any Help me in solving problem
Problem : I need to have cache objects from .dat even after VM shutdown
How can I achieve this .
Reply should be appreciated
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 10/14/2009 07:32:23
|
ari
seraphim
Joined: 05/24/2006 14:23:21
Messages: 1665
Location: San Francisco, CA
Offline
|
Do not understand.
What is ".dat"? And, why is Terracotta's built in ability to backup / restore your cached objects not good enough?
--Ari
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 10/14/2009 15:23:52
|
gluck
qaestor
Joined: 09/15/2009 18:01:23
Messages: 179
Location: Brisbane, Australia
Offline
|
Are you setting disk persistent? Also are you specifying a fixed disk store location in ehcache.xml?
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 10/15/2009 03:45:00
|
xprk230
neo
Joined: 10/14/2009 05:25:34
Messages: 3
Offline
|
ari wrote:
Do not understand.
What is ".dat"? And, why is Terracotta's built in ability to backup / restore your cached objects not good enough?
--Ari
Hi Ari ,
Sorry to confused you and Thanks for your valuable Reply .
I am complete new to Terracota Cache Mechanism.
One of my application uses ehcache. In my application I need to preload cached objects from diskstore files even after VirtualMachine Shutdown or Process restarts .
If Terracotta cacheing provides solution to my problem .Provide some guide lines to work with it.
Is Terracotta is a open source ?
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 10/15/2009 04:32:27
|
xprk230
neo
Joined: 10/14/2009 05:25:34
Messages: 3
Offline
|
gluck wrote:
Are you setting disk persistent? Also are you specifying a fixed disk store location in ehcache.xml?
Hi Gluck ,
Thanks for your reply.
Here is my ehcache configuration file
<ehcache>
<diskStore path="/upapps/ehcache/data/cache" />
<defaultCache maxElementsInMemory="10"
timeToIdleSeconds="86400"
overflowToDisk="true"
memoryStoreEvictionPolicy="LFU"
diskPersistent="true" />
<cache name="rqstCache"
maxElementsInMemory="10"
timeToIdleSeconds="86400"
overflowToDisk="true"
memoryStoreEvictionPolicy="LFU"
diskPersistent="true">
</cache>
</ehcache>
Can you please help me how we can preload cached objects from diskstore files even after VM shutdown or process restart .
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 10/15/2009 22:53:16
|
ari
seraphim
Joined: 05/24/2006 14:23:21
Messages: 1665
Location: San Francisco, CA
Offline
|
Upgrading to Ehcache 1.7.0 and using Terracotta underneath would indeed solve your problem. But first, maybe Greg has a solution using the diskStore--I don't know of one.
To start with Ehcache + Terracotta go here:
[url]http://www.terracotta.org/web/display/orgsite/Get%20Started%20With%20Ehcache%20Distributed%20Cache?src=Distributed%20Cache%20Page,%20Ehcache%20Card
[/url]
Also, Yes, Terracotta is open source. And, last, you will need our fault-count custom setting in Terracotta to set the number of objects fetched on JVM restart to thousands or even millions of objects.
Why do you need to preload everything back into memory on restart? And, if you do, why do you bother using the diskStore today?
--Ari
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 07/15/2011 03:44:07
|
rajoshi
seraphim
Joined: 07/04/2011 04:36:10
Messages: 1465
Offline
|
It seems the issue is resolved , Please let know if need more information.
|
Rakesh Joshi
Terracotta. |
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 07/17/2012 11:47:56
|
mdevgan
neo
Joined: 04/25/2012 14:24:30
Messages: 3
Offline
|
You should check out the new Gladstone Tech Preview available at: http://terracotta.org/gladstonetechpreview Among other new features, this preview introduces a new crash resilient store for Standalone Ehcache. This supports full fault tolerance using new fast Restart capability and continuous accessibility of previously cached data after a planned or unplanned shutdown.
It will be great if you can try it out and send feedback to pm@terracottatech.com
thanks
Terracotta Product Mgr
|
|
|
 |
|
|