# JRE Crashing while indexing

**URL:** <https://discuss.elastic.co/t/jre-crashing-while-indexing/5653>\
**Category:** Elasticsearch\
**Created:** [October 21, 2011, 1:59am UTC](https://discuss.elastic.co/t/jre-crashing-while-indexing/5653 "2011-10-21T01:59:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Williams](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_williams/32/3099_2.png) [@Chris\_Williams](https://discuss.elastic.co/u/Chris_Williams)\
**Post date:** [October 21, 2011, 1:59am UTC](https://discuss.elastic.co/t/jre-crashing-while-indexing/5653/1 "2011-10-21T01:59:45Z")

</div>

Hey guys,

I've been trying out ES for the past few days and keep running into an  
issue with the JRE crashing on me while indexing. This first happened  
while running 1.6.0\_26, so I updated to the most recent version,  
1.7.0\_01, which also crashed on me.

I'm indexing 4 million docs [which are ~600 bytes each], in batches of  
50,000 using the \_bulk endpoint. I'm indexing using the Elastica  
library for PHP. Towards the end of the indexing process, it crashes  
[and PH emits a few generic exceptions from Elastica].

I checked the log files and found some stuff in the "elasticsearch-  
stdout" file, which I have linked below.

Any suggestions?

Also, I'm very new to Java so if any terminology I used is strange I  
can clarify 🙂

Thanks so much!

* * *

Environment:  
java version "1.7.0\_01"  
Java(TM) SE Runtime Environment (build 1.7.0\_01-b08)  
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)

java version "1.6.0\_26"  
Java(TM) SE Runtime Environment (build 1.6.0\_26-b03)  
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

ES 0.17.9 running as a service through Commons Daemon Package version  
1.0.5.

JRE 1.6 crash file: [https://gist.github.com/1302913](https://gist.github.com/1302913)  
JRE 1.7 crash file: [https://gist.github.com/1302916](https://gist.github.com/1302916)

Cluster info: [https://gist.github.com/1302899](https://gist.github.com/1302899)  
Index info: [https://gist.github.com/1302905](https://gist.github.com/1302905)

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [October 21, 2011, 2:25am UTC](https://discuss.elastic.co/t/jre-crashing-while-indexing/5653/2 "2011-10-21T02:25:08Z")

</div>

Hey,

Can you only test with 1.6, as there are known problem with 1.7 (though  
upadte 1 might fix the). Also, can you run without compressed opts? And if  
it still fails, can you configure the index store to use simplefs (since its  
windows) and not mmapfs (which is the default on windows). Just set  
index.store.type to simplefs and see if it crashes.

On Fri, Oct 21, 2011 at 3:59 AM, Chris Williams [chris@colourlovers.com](mailto:chris@colourlovers.com)wrote:

> Hey guys,
> 
> I've been trying out ES for the past few days and keep running into an  
> issue with the JRE crashing on me while indexing. This first happened  
> while running 1.6.0\_26, so I updated to the most recent version,  
> 1.7.0\_01, which also crashed on me.
> 
> I'm indexing 4 million docs [which are ~600 bytes each], in batches of  
> 50,000 using the \_bulk endpoint. I'm indexing using the Elastica  
> library for PHP. Towards the end of the indexing process, it crashes  
> [and PH emits a few generic exceptions from Elastica].
> 
> I checked the log files and found some stuff in the "elasticsearch-  
> stdout" file, which I have linked below.
> 
> Any suggestions?
> 
> Also, I'm very new to Java so if any terminology I used is strange I  
> can clarify 🙂
> 
> Thanks so much!
> 
> * * *
> 
> Environment:  
> java version "1.7.0\_01"  
> Java(TM) SE Runtime Environment (build 1.7.0\_01-b08)  
> Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)
> 
> java version "1.6.0\_26"  
> Java(TM) SE Runtime Environment (build 1.6.0\_26-b03)  
> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
> 
> ES 0.17.9 running as a service through Commons Daemon Package version  
> 1.0.5.
> 
> JRE 1.6 crash file: [JRE 1.6 crash · GitHub](https://gist.github.com/1302913)  
> JRE 1.7 crash file: [JRE 1.7 crash · GitHub](https://gist.github.com/1302916)
> 
> Cluster info: [\_cluster/nodes · GitHub](https://gist.github.com/1302899)  
> Index info: [1302905’s gists · GitHub](https://gist.github.com/1302905)

---

<div class="post-metadata">

**Author:** ![BillyEm](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@BillyEm](https://discuss.elastic.co/u/BillyEm)\
**Post date:** [September 7, 2012, 3:53pm UTC](https://discuss.elastic.co/t/jre-crashing-while-indexing/5653/3 "2012-09-07T15:53:30Z")

</div>

After we get installed and running for our dev purposes, I plan to see we  
can be stable at the current 6 update. {This was the most relevant thread  
we could find for java versions}

We certainly should be able to track the Lucene currency I would think.  
Apache does a very good job of calling delays on updates that are found to  
be package-affecting. Here is update 29's reference to a called delay by  
Apache (and they applied it to 7.0.0 also, since 7.0.3 is the current, it  
may be fixed on that line also.

Any suggestions on how to pre-certify later java versions than mentioned  
here would be appreciated.

java 6 rel notes u 29[http://www.oracle.com/technetwork/java/javase/6u29-relnotes-507960.html](http://www.oracle.com/technetwork/java/javase/6u29-relnotes-507960.html)

JIT and Loop Bugs

> Three bugs reported by various parties, including Apache Lucene  
> developers, have been fixed in JDK 6 Update 29, in addition to a fourth  
> related bug found by Oracle (7070134, 7068051, 7044738, 7077439).

On Thursday, October 20, 2011 10:25:08 PM UTC-4, kimchy wrote:

> Hey,
> 
> Can you only test with 1.6, as there are known problem with 1.7 (though  
> upadte 1 might fix the). Also, can you run without compressed opts? And if  
> it still fails, can you configure the index store to use simplefs (since  
> its windows) and not mmapfs (which is the default on windows). Just set  
> index.store.type to simplefs and see if it crashes.
> 
> On Fri, Oct 21, 2011 at 3:59 AM, Chris Williams \<[ch...@colourlovers.com](mailto:ch...@colourlovers.com)\<javascript:\>
> 
> > wrote:
> 
> > Hey guys,
> > 
> > I've been trying out ES for the past few days and keep running into an  
> > issue with the JRE crashing on me while indexing. This first happened  
> > while running 1.6.0\_26, so I updated to the most recent version,  
> > 1.7.0\_01, which also crashed on me.
> > 
> > I'm indexing 4 million docs [which are ~600 bytes each], in batches of  
> > 50,000 using the \_bulk endpoint. I'm indexing using the Elastica  
> > library for PHP. Towards the end of the indexing process, it crashes  
> > [and PH emits a few generic exceptions from Elastica].
> > 
> > I checked the log files and found some stuff in the "elasticsearch-  
> > stdout" file, which I have linked below.
> > 
> > Any suggestions?
> > 
> > Also, I'm very new to Java so if any terminology I used is strange I  
> > can clarify 🙂
> > 
> > Thanks so much!
> > 
> > * * *
> > 
> > Environment:  
> > java version "1.7.0\_01"  
> > Java(TM) SE Runtime Environment (build 1.7.0\_01-b08)  
> > Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)
> > 
> > java version "1.6.0\_26"  
> > Java(TM) SE Runtime Environment (build 1.6.0\_26-b03)  
> > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
> > 
> > ES 0.17.9 running as a service through Commons Daemon Package version  
> > 1.0.5.
> > 
> > JRE 1.6 crash file: [JRE 1.6 crash · GitHub](https://gist.github.com/1302913)  
> > JRE 1.7 crash file: [JRE 1.7 crash · GitHub](https://gist.github.com/1302916)
> > 
> > Cluster info: [\_cluster/nodes · GitHub](https://gist.github.com/1302899)  
> > Index info: [1302905’s gists · GitHub](https://gist.github.com/1302905)

--

---

<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, 3:13am UTC](https://discuss.elastic.co/t/jre-crashing-while-indexing/5653/4 "2017-07-06T03:13:44Z")

</div>


