1 Reply Latest reply on Mar 9, 2005 2:19 AM by Bela Ban

    Puts in TreeCache

    Amit Bansal Newbie

      I have installed JBossCache on my local PC and run some simple tests to see what kind of throughput I can get. I'm looking at utilizing JBossCache for an application where cache distribution is a requirement and the caching application doesn't become the bottleneck. Running some tests on my machine I'm not getting very promising results in terms of puts/s. Does anyone out there have a feel for what kind of performance they are getting and if what I get seems to be along the same lines they are getting?

      I'm getting the following results for a 10KB cache object in TreeCache:

      1. Local Cache Mode: ~5500 puts/s
      2. REPL_SYNC: ~50 puts/s (occasional errors - nested runtime exception)
      3. REPL_ASYNC: ~50 puts/s (occasional errors - nested runtime exception)

      What configuration parameters do I have available to enhance performance? I have looked at the available documentation but I'm not exactly sure what tuning parameters I have available.

      I appreciate any help or pointers.

      Thanks.

        • 1. Re: Puts in TreeCache
          Bela Ban Master



          // 2. REPL_SYNC: ~50 puts/s (occasional errors - nested
          // runtime exception)

          This is the slowest, since we're running a 2-phase commit protocol across the cluster


          // 3. REPL_ASYNC: ~50 puts/s (occasional errors -
          // nested runtime exception)

          You should get close to the number with LOCAL mode, e.g. ~ 5000

          In both #2 and #3, it all depends whether you bundle updates by using transactions.
          Without transactions #2 is going to kill you b/c we run a 2PC after each put().
          With #3, if you don't use transactions, use at least message bundling by enabling the queue.