# Response time breakdown by phase

**URL:** <https://discuss.elastic.co/t/response-time-breakdown-by-phase/20489>\
**Category:** Elasticsearch\
**Created:** [October 29, 2014, 11:50pm UTC](https://discuss.elastic.co/t/response-time-breakdown-by-phase/20489 "2014-10-29T23:50:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srinivasan\_Ramaswamy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/srinivasan_ramaswamy/32/74106_2.png) [@Srinivasan\_Ramaswamy](https://discuss.elastic.co/u/Srinivasan_Ramaswamy)\
**Post date:** [October 29, 2014, 11:50pm UTC](https://discuss.elastic.co/t/response-time-breakdown-by-phase/20489/1 "2014-10-29T23:50:16Z")

</div>

Hi

I am currently investigating why our 95th percentile response time is very  
high (around 1.5s).

To help me with the investigation, I would like to get response time  
breakdown by each phase. I am using the java API and using the  
response.getTookInMillis() function to collect the response time. Is there  
any way to get the response time for query phase and fetch phase  
separately ? Also, I am using the native java scoring script (implemented  
as a plugin) and i would like to know the time taken by my plugin. Is there  
any suggestion on how to get these numbers ?

Thanks  
Srini

--  
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/96e402f5-86cb-4197-af55-ba64fb06f04d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/96e402f5-86cb-4197-af55-ba64fb06f04d%40googlegroups.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, 12:53am UTC](https://discuss.elastic.co/t/response-time-breakdown-by-phase/20489/2 "2017-07-06T00:53:05Z")

</div>

Closed on July 6, 2017, 12:53am UTC


