Discussions

Performance and scalability: Which Caching system is better, JCS / OSCACHE / SWARMCACHE ?

  1. Hi All,

    We are planning to use an opensource caching system in our web application, which one is better among above three. Did anybody used any of the above caching systems in production environments.


    Thanks in advance.


    -Ramesh
  2. We are using OpenSymphony's OSCache library in our production
    environment. We are happy with OSCache.

    I have not used JCS or SwarmCache
  3. http://www.manageability.org/blog/stuff/distributed-cache-java/view
  4. I would recommend JbossCache
    http://www.jboss.org/products/jbosscache

    JCS is very buggy.
    SwarmCache is not a replicated cache and feature-set is way weaker than that of JBossCache.

    JBossCache works very nicely, for us, in the production environment. I am very happy with it.

    I have not used OSCache. It was the next logical choice in the line, but as JBossCache worked fine - we never reached it :)
  5. jcs improvements[ Go to top ]

    There have been many JCS fixes and enhancements over the past few months. Currently we are working on a Berkeley DB JE disk cache plugin. It's currently in the experimental directory.

    Aaron
  6. http://java-source.net contains a list of Open Source Cache Solutions written in Java: http://java-source.net/open-source/cache-solutions
  7. Article...[ Go to top ]

    http://www.onjava.com/pub/a/onjava/2003/12/23/caching.html
  8. Try ehcache[ Go to top ]

    ehcache is one of the most widely use Java caches. See http://ehcache.sf.net. It is fast, simple and has minimal dependencies. It comes with memory and disk stores. The disk stores are optionally persistent.

    We use it for Hibernate, web page caching and search engine caching in one of Australia's busiest web sites. It is distributed with Hibernate, so if you are using Hibernate you need nothing more. Based on

    Recently ehcache-constructs has been released. See http://ehcache.sf.net/ehcache-constructs. This is a package of ready to use web caching filters, blocking and self-populating caches. With the use of web page caching filters, you can cache web pages, or fragments with no code or tags. Just a mapping in web.xml. The cached web pages are stored gzipped and automatically serve up gzipped content to browsers which advertise gzip encoding in their request,

    So, If you want speed, features, scalability and thread safety, try ehcache.
  9. What is the Diff betwen JCS and EHCACHE?[ Go to top ]

    Hi if you mention EHCACHE is capable. Can you please let me know the feature as compare to JCS:-
    a) Support for clustering (most important feature required is cluster based cache invalidation)
    b) Cache configurability (cache size and etc)
    c) Efficiency of memory management algorithm (LRU, round robin and etc)

    Thanks.

    regards,
    MV
    ehcache is one of the most widely use Java caches. See http://ehcache.sf.net. It is fast, simple and has minimal dependencies. It comes with memory and disk stores. The disk stores are optionally persistent.We use it for Hibernate, web page caching and search engine caching in one of Australia's busiest web sites. It is distributed with Hibernate, so if you are using Hibernate you need nothing more. Based on Recently ehcache-constructs has been released. See http://ehcache.sf.net/ehcache-constructs. This is a package of ready to use web caching filters, blocking and self-populating caches. With the use of web page caching filters, you can cache web pages, or fragments with no code or tags. Just a mapping in web.xml. The cached web pages are stored gzipped and automatically serve up gzipped content to browsers which advertise gzip encoding in their request, So, If you want speed, features, scalability and thread safety, try ehcache.
  10. JCS vs EHCache[ Go to top ]

    The LRU Memory cache in JCS version 1.2.7.0 appears to be twice as fast as EHCache. The page below describes the tests and documents why the EHCache disk store is vastly inferior to JCS' Indexed Disk Cache.

    http://jakarta.apache.org/jcs/JCSvsEHCache.html
  11. I am in the same situation now. We have several different apps using the same database and hence need to introduce an efficient caching system. I would want to know which caching system did Ramesh decide on. Which is the most recommended in terms of cahce revalidation and performance.?
  12. JCS Caching regions[ Go to top ]

    Seems like newer JCS fares better than EhCache. Dont know about memCached, used heavily amongst PHP croonies. Anyone had any luck with setting up regions/auxiliaries in pairs? Specifically, were u able to use same auxiliary service for different regions? This is a for clustered web app under BEA 8.1 if that helps. Not working so far unless i pair them up. thxx in advance