# Response time of Java percolate API is unstable

**URL:** <https://discuss.elastic.co/t/response-time-of-java-percolate-api-is-unstable/18348>\
**Category:** Elasticsearch\
**Created:** [June 26, 2014, 7:52am UTC](https://discuss.elastic.co/t/response-time-of-java-percolate-api-is-unstable/18348 "2014-06-26T07:52:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seungjin\_Lee](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@Seungjin\_Lee](https://discuss.elastic.co/u/Seungjin_Lee)\
**Post date:** [June 26, 2014, 7:52am UTC](https://discuss.elastic.co/t/response-time-of-java-percolate-api-is-unstable/18348/1 "2014-06-26T07:52:51Z")

</div>

Hi,

We're now in performance test and seeing some unexpected result.

We use Java percolate API

client.preparePercolate().setIndices(index).setDocumentType(projectName).setSource(log).execute().actionGet();

LOGGER.info(duration+"ms for percolation, es time  
"+response.getTookInMillis()+" ms for log "+ log);

and registered one simple rule, input log varies.

sometimes response.getTookInMillis() is more than 2000ms meaning it took  
more than 2 seconds to percolate single log.  
sometimes response.getTookInMillis() is less than 10ms which we expect it  
to be.

Ping responses within 1 ms, network has nothing to do with that  
fluctuation, and we want percolation response time to be stable and fast.

Is there any possible reason?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAL3\_U42\_om18Z3XMjw1qE0g-%2BuPDSsC4-de5f0RHEFKcEMb3Qg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL3_U42_om18Z3XMjw1qE0g-%2BuPDSsC4-de5f0RHEFKcEMb3Qg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:19am UTC](https://discuss.elastic.co/t/response-time-of-java-percolate-api-is-unstable/18348/2 "2017-07-06T01:19:35Z")

</div>


