File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which Caching system is better, JCS / OSCACHE / SWARMCACHE ?

 
Ramesh Mandapati
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did anybody used any of the above caching systems in production environment?
 
Rangarajan Suresh
Ranch Hand
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ramesh Mandapati:
Did anybody used any of the above caching systems in production environment?

I have evaluated the above products as well as EHCache.
AFAIK,JCS looks outdated and doesnt scale much.
OScache is suitable for web app caching of small java objects. But dont use this for disk caching.
SwarmCache performance is good and removes the objects from memory based on the algo. chosen. If memory is a constraint for u , go for this.
EHCache also is memory sensitive, but a bit slower than Swarmcache.
I also have a question to the list:
My application requires loading around 4M records into memory from database. We tried Caching products as well as in-memory databases. But,
the used memory keeps increasing and after a few days heap max. size is reached and the system hangs. Is there a product/approach that you would suggest for such a scenario.
 
Java Buzz
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Have anyone in this group tried remote caching feature of JCS. Does any other caching product support this feature

Regards,
Hari
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rangarajan Suresh:

My application requires loading around 4M records into memory from database. We tried Caching products as well as in-memory databases. But,
the used memory keeps increasing and after a few days heap max. size is reached and the system hangs. Is there a product/approach that you would suggest for such a scenario.


Well, a profiler that can tell you where the memory leak is, perhaps?
 
Bhanu
Ranch Hand
Posts: 48
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pardon my ignorance...I've not used any such Caching products ever. And would like to know If they are really useful despite having Databse properly configured and having best-in-class J2EE server and EJB support?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic