This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

cache inmemory and diskstore both together not working linux.

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Every one,

I am using ehcache-1.5 and jdk-1.4 and websphere application server for my project.

I have tested these in my local with windows environment. every thing works fine.
In windows environment it's storing data into heap as well as diskstore.
But it's not happening in linux environment.

I used Ehcache.flush() after object insertion, this is causing that flushing data into the diskstore from heap in linux , but it is available in both the places in windows.

Here is my ehcache.xml configuration file.




Here is my singleton class for Cache Operations.




TestCacheUtils.java to test cache.



Logs in windows environment.
disk size: 2 In memory size: 200

Logs in linux environment.
disk size: 2 In memory size: (if i use cache.flush())
disk size: In memoru size: 200(if i didn't use cache.flush())


Thanks in advance for your help.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!