# ElasticSearch slow/crashing

**URL:** <https://discuss.elastic.co/t/elasticsearch-slow-crashing/13117>\
**Category:** Elasticsearch\
**Created:** [August 8, 2013, 2:55am UTC](https://discuss.elastic.co/t/elasticsearch-slow-crashing/13117 "2013-08-08T02:55:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![benmccann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benmccann/32/420_2.png) [@benmccann](https://discuss.elastic.co/u/benmccann)\
**Post date:** [August 8, 2013, 2:55am UTC](https://discuss.elastic.co/t/elasticsearch-slow-crashing/13117/1 "2013-08-08T02:55:38Z")

</div>

Hi,

I've just setup an ElasticSearch index and it's performing very poorly.  
There's no information in the guide about running ElasticSearch from an  
operational perspective, which is a frustrating experience as a newcomer.  
Is there anything like MongoDB's production notes[http://docs.mongodb.org/manual/administration/production-notes/](http://docs.mongodb.org/manual/administration/production-notes/) available  
anywhere on the web? Are there rules of thumb about how to configure  
ElasticSearch or troubleshoot it? I installed the .deb package, inserted  
50M records, and the default out-of-the-box performance is very bad. The  
data I'm working with is professional resumes and I'm trying to do searches  
for job candidates with the Java client library.

Thanks,  
Ben

--  
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:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [August 8, 2013, 3:35am UTC](https://discuss.elastic.co/t/elasticsearch-slow-crashing/13117/2 "2013-08-08T03:35:29Z")

</div>

There is nothing official, but I have collected a few random blog posts  
over the years:

> **[ElasticSearch Cluster: Configuration & Best Practices](http://www.xmsxmx.com/elasticsearch-cluster-configuration-best-practices/)**
>
> I was recently working on setting up an elasticsearch cluster with apache whirr. Setting up a cluster is one thing and running it is entirely different. Running a cluster is far more complex than setting one up. Things are no different for an...

[http://asquera.de/opensource/2012/11/25/elasticsearch-pre-flight-checklist/](http://asquera.de/opensource/2012/11/25/elasticsearch-pre-flight-checklist/)  
[http://exploringelasticsearch.com/](http://exploringelasticsearch.com/)  
[http://euphonious-intuition.com/2013/02/five-things-i-learned-from-elasticsearch-training/](http://euphonious-intuition.com/2013/02/five-things-i-learned-from-elasticsearch-training/)

> **[Scaling massive elastic search clusters - Rafał Kuć - Sematext](https://www.slideshare.net/kucrafal/scaling-massive-elastic-search-clusters-rafa-ku-sematext)**
>
> Scaling massive elastic search clusters - Rafał Kuć - Sematext - Download as a PDF or view online for free

Out-of-the-box, elasticsearch performs pretty well as far as default server  
settings go. Set your JVM to use 50% of the available memory on the server.  
Can you share your index mapping and an example query? Are you using facets  
or nested/child objects? There are many ways to achieve poor performance  
via inefficiencies in the mapping.

--  
Ivan

On Wed, Aug 7, 2013 at 7:55 PM, Ben McCann [benjamin.j.mccann@gmail.com](mailto:benjamin.j.mccann@gmail.com)wrote:

> Hi,
> 
> I've just setup an Elasticsearch index and it's performing very poorly.  
> There's no information in the guide about running Elasticsearch from an  
> operational perspective, which is a frustrating experience as a newcomer.  
> Is there anything like MongoDB's production notes[http://docs.mongodb.org/manual/administration/production-notes/](http://docs.mongodb.org/manual/administration/production-notes/) available  
> anywhere on the web? Are there rules of thumb about how to configure  
> Elasticsearch or troubleshoot it? I installed the .deb package, inserted  
> 50M records, and the default out-of-the-box performance is very bad. The  
> data I'm working with is professional resumes and I'm trying to do searches  
> for job candidates with the Java client library.
> 
> Thanks,  
> Ben
> 
> --  
> 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:** ![Ben\_McCann\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ben_mccann_2/32/1097_2.png) [@Ben\_McCann\_2](https://discuss.elastic.co/u/Ben_McCann_2)\
**Post date:** [August 8, 2013, 4:41am UTC](https://discuss.elastic.co/t/elasticsearch-slow-crashing/13117/3 "2013-08-08T04:41:00Z")

</div>

Ivan, thanks so much for sharing! Setting the heap size correctly made the  
query 10x faster! I'll read the rest of the docs you sent and see if I can  
squeeze out any other improvements, but as long as performance is  
consistent at this level for the other queries I'll want to do, then I  
should be good to go. I submitted a pull request to better document this  
setting [https://github.com/elasticsearch/elasticsearch/pull/3460](https://github.com/elasticsearch/elasticsearch/pull/3460) in the  
start script, so that others have an easier time getting started.

Thanks again!  
-Ben

On Wed, Aug 7, 2013 at 8:35 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> There is nothing official, but I have collected a few random blog posts  
> over the years:  
> [ElasticSearch Cluster: Configuration & Best Practices | -Xms -Xmx](http://www.xmsxmx.com/elasticsearch-cluster-configuration-best-practices/)  
> [http://asquera.de/opensource/2012/11/25/elasticsearch-pre-flight-checklist/](http://asquera.de/opensource/2012/11/25/elasticsearch-pre-flight-checklist/)  
> [http://exploringelasticsearch.com/](http://exploringelasticsearch.com/)
> 
> [http://euphonious-intuition.com/2013/02/five-things-i-learned-from-elasticsearch-training/](http://euphonious-intuition.com/2013/02/five-things-i-learned-from-elasticsearch-training/)
> 
> [Scaling massive elastic search clusters - Rafał Kuć - Sematext | PPT](http://www.slideshare.net/kucrafal/scaling-massive-elastic-search-clusters-rafa-ku-sematext)
> 
> Out-of-the-box, elasticsearch performs pretty well as far as default  
> server settings go. Set your JVM to use 50% of the available memory on the  
> server. Can you share your index mapping and an example query? Are you  
> using facets or nested/child objects? There are many ways to achieve poor  
> performance via inefficiencies in the mapping.
> 
> --  
> Ivan
> 
> On Wed, Aug 7, 2013 at 7:55 PM, Ben McCann [benjamin.j.mccann@gmail.com](mailto:benjamin.j.mccann@gmail.com)wrote:
> 
> > Hi,
> > 
> > I've just setup an Elasticsearch index and it's performing very poorly.  
> > There's no information in the guide about running Elasticsearch from an  
> > operational perspective, which is a frustrating experience as a newcomer.  
> > Is there anything like MongoDB's production notes[http://docs.mongodb.org/manual/administration/production-notes/](http://docs.mongodb.org/manual/administration/production-notes/) available  
> > anywhere on the web? Are there rules of thumb about how to configure  
> > Elasticsearch or troubleshoot it? I installed the .deb package, inserted  
> > 50M records, and the default out-of-the-box performance is very bad. The  
> > data I'm working with is professional resumes and I'm trying to do searches  
> > for job candidates with the Java client library.
> > 
> > Thanks,  
> > Ben
> > 
> > --  
> > 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 a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/0Ynvtnrt0vg/unsubscribe](https://groups.google.com/d/topic/elasticsearch/0Ynvtnrt0vg/unsubscribe).  
> To unsubscribe from this group and all its topics, 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).

--

> **[Ben McCann on about.me](https://about.me/benmccann)**
>
> I am a Founder, Entrepreneur, and Investor in Mountain View, California. Visit my website.

--  
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:22am UTC](https://discuss.elastic.co/t/elasticsearch-slow-crashing/13117/4 "2017-07-06T02:22:14Z")

</div>


