# Profiling Elasticsearch

**URL:** <https://discuss.elastic.co/t/profiling-elasticsearch/13822>\
**Category:** Elasticsearch\
**Created:** [October 2, 2013, 9:26am UTC](https://discuss.elastic.co/t/profiling-elasticsearch/13822 "2013-10-02T09:26:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maciej\_Kula](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@Maciej\_Kula](https://discuss.elastic.co/u/Maciej_Kula)\
**Post date:** [October 2, 2013, 9:26am UTC](https://discuss.elastic.co/t/profiling-elasticsearch/13822/1 "2013-10-02T09:26:12Z")

</div>

Hello,

I'm working on native Custom Score scripts and trying to profile my code  
--- but I do not know how to attach a profiler to my Elasticsearch  
instance. I tried using the YourKit profiler, and followed its instructions  
for enabling profiling both in a running JVM and in a new JVM with profiler  
support --- both to no avail.

Is there a simple way of getting profiling information from Elasticsearch?  
Should I try a different profiler? Bear in mind that this comes from a Java  
beginner, so please be explicit!

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 6, 2013, 4:08pm UTC](https://discuss.elastic.co/t/profiling-elasticsearch/13822/2 "2013-10-06T16:08:44Z")

</div>

Hey,

maybe it helps, if you describe, what you tried already, so perhaps you are  
just missing a tiny step and others can jump in to help. You could also try  
jvisualvm (included in your JDK). Should work as easy as starting up  
elasticsearch via commandline, then starting jvisualvm and selecting the  
appropriate process - I also think, yourkit works the same, havent  
installed it at the moment to verify though.

--Alex

On Wed, Oct 2, 2013 at 11:26 AM, Maciej Kula [aggregaccount@gmail.com](mailto:aggregaccount@gmail.com)wrote:

> Hello,
> 
> I'm working on native Custom Score scripts and trying to profile my code  
> --- but I do not know how to attach a profiler to my Elasticsearch  
> instance. I tried using the YourKit profiler, and followed its instructions  
> for enabling profiling both in a running JVM and in a new JVM with profiler  
> support --- both to no avail.
> 
> Is there a simple way of getting profiling information from Elasticsearch?  
> Should I try a different profiler? Bear in mind that this comes from a Java  
> beginner, so please be explicit!
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:13am UTC](https://discuss.elastic.co/t/profiling-elasticsearch/13822/3 "2017-07-06T02:13:31Z")

</div>


