1 Reply Latest reply: Mar 18, 2013 9:50 AM by user738616 RSS

    Coherence performance issue

    996973
      Hello every one,
      In my project I am using “get” query for primary key and “entrySet” when I query by not primary key ( unique key in DB table ).
      I have a performance issue when I use “entrySet” query, although there is just one match record in cache. From time to time I got a latency growing.
      I have created an indexing, but it is not help so much. I am using “jvisualvm” utility to monitor coherence’s server process and I see a lot of DistributedCacheWorker threads are blocked time to time.
      And a reason of this, threads that call “entrySet” also entries in block state.

      ClientsExecutor_12_126: BLOCKED
      java.util.Hashtable.get(Hashtable.java:333)
      com.tangosol.coherence.Component._newChild(Component.CDB:28)
      com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheKeyRequest.instantiatePoll(DistributedCacheKeyRequest.CDB:1)
      com.tangosol.coherence.component.net.message.RequestMessage.ensureRequestPoll(RequestMessage.CDB:7)
      com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:11)
      com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:11)
      com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.get(PartitionedCache.CDB:26)
      com.tangosol.util.ConverterCollections$ConverterMap.get(ConverterCollections.java:1655)
      com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.get(PartitionedCache.CDB:1)
      com.tangosol.coherence.component.util.SafeNamedCache.get(SafeNamedCache.CDB:1)

      How can I improve performance for “entrySet”?
      Or how can I change cache’s definition to use “get” API instead for “entrySet” without changing DB tables?

      Thank you in advance
      Yustas

      Edited by: AlexPD on Mar 17, 2013 1:23 AM
        • 1. Re: Coherence performance issue
          user738616
          Hi,

          Paste your cache configuration .. Also, the code for querying the objects in the cache.

          Cheers,
          _NJ