# Help with profiling our code's usage of the Node java client using YourKit

**URL:** <https://discuss.elastic.co/t/help-with-profiling-our-codes-usage-of-the-node-java-client-using-yourkit/20154>\
**Category:** Elasticsearch\
**Created:** [October 9, 2014, 4:49am UTC](https://discuss.elastic.co/t/help-with-profiling-our-codes-usage-of-the-node-java-client-using-yourkit/20154 "2014-10-09T04:49:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Todd\_Nine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/todd_nine/32/778_2.png) [@Todd\_Nine](https://discuss.elastic.co/u/Todd_Nine)\
**Post date:** [October 9, 2014, 4:49am UTC](https://discuss.elastic.co/t/help-with-profiling-our-codes-usage-of-the-node-java-client-using-yourkit/20154/1 "2014-10-09T04:49:24Z")

</div>

Hi All,  
I've been using ES for a while and I'm really enjoying it, but we have a  
few slow calls in our code. I have a few hunches around the code that's  
using the client inefficiently, but I would like some definitive proof.  
I've attempted to profile our application using YourKit when we're load  
testing, and I've found we're spending 30-35% of our "wall time" in the  
Netty classes of the ES Node client. However, I can't tell where the call  
is originating from in our source, since the calls are asynchronous and I  
can't capture the stack. Are there any debugging options I can turn on in  
the client that will help me with profiling so that I can track down the  
code in our system that's not using our client efficiently? Any help  
would be greatly appreciated!

Thanks,  
Todd

--  
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/332d8e12-f045-4ff7-99aa-889490002b86%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/332d8e12-f045-4ff7-99aa-889490002b86%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:57am UTC](https://discuss.elastic.co/t/help-with-profiling-our-codes-usage-of-the-node-java-client-using-yourkit/20154/2 "2017-07-06T00:57:24Z")

</div>

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


