# JVM crashes after reincorporating nodes into cluster

**URL:** <https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667>\
**Category:** Elasticsearch\
**Created:** [August 8, 2012, 9:32am UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667 "2012-08-08T09:32:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_5](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@Alex\_5](https://discuss.elastic.co/u/Alex_5)\
**Post date:** [August 8, 2012, 9:32am UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/1 "2012-08-08T09:32:01Z")

</div>

Dear all,

We are seeing unexpected JVM crashes after an ElasticSearch cluster node is  
restarted and reincorporate into the cluster. For load balancing and  
robustness we have two ElasticSearch front-end servers which are balancers.  
In the back-end there are three ElasticSearch worker nodes which hold all  
the data. There are 5 shards and the number of replicas per shard is 2. We  
notice that running the cluster continuously results in a memory / load /  
query time build-up. To battle this we restart the nodes twice per day.

The restart scenario is the following:

1. Stop ElasticSearch on one of the worker nodes via  
/etc/init.d/elasticsearch stop
2. Wait 120 seconds
3. Start ElasticSearch on the corresponding worker nodes via  
/etc/init.d/elasticsearch start

What we see is that worker nodes sometimes suffer from a JVM crash after  
the cluster state is updated. From the logs we see the following messages:

ElasticSearch log file:

[2012-08-08 08:29:30,918][DEBUG][cluster.service] [worker2]  
processing [zen-disco-receive(from master  
[[front1][D2gTiUeyRbS-Gj0rvpI4NQ][inet[/10.28.7.197:9300]]{data=false,  
master=true}])]: done applying updated cluster\_state

Wrapper log file:

STATUS | wrapper | 2012/08/08 08:29:56 | JVM received a signal UNKNOWN (6).

In the JVM crash log file on the worker nodes we have seen two different  
root causes after an incident:

# J

org.elasticsearch.common.trove.impl.hash.TObjectHash.insertKey(Ljava/lang/Object;)I

or

# J

org.elasticsearch.common.io.stream.HandlesStreamOutput.writeUTF(Ljava/lang/String;)V

These crashes seem completely unexpected. Is there any measure we can take  
to circumvent these JVM crashes? If you need more information on our setup  
please do not hesitate to contact us.

Please find the individual component versions below.

Best Regards

- Alex

Our stack:

- elasticsearch-0.19.8

- Java Version:  
$ /opt/java/jre1.7.0\_04/bin/java -version  
java version "1.7.0\_04"  
Java(TM) SE Runtime Environment (build 1.7.0\_04-b20)  
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)

- OS Version:  
$ uname -a  
Linux elastic29 2.6.32-5-xen-amd64 #1 SMP Sun May 6 08:57:29 UTC 2012  
x86\_64 GNU/Linux

* * *

alexander sennhauser  
software engineer

+41 79 420 4953 mobile  
[lex@squirro.com](mailto:lex@squirro.com)  
[www.squirro.com](http://www.squirro.com)

---

<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:** [August 8, 2012, 9:53am UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/2 "2012-08-08T09:53:39Z")

</div>

Can you gist the crash file output of the JVM? Can you make sure that ES is using the relevant Java version and not a different one (using the nodes info API with the jvm flag).

On Aug 8, 2012, at 11:32 AM, Alex [lex@squirro.com](mailto:lex@squirro.com) wrote:

> Dear all,
> 
> We are seeing unexpected JVM crashes after an Elasticsearch cluster node is restarted and reincorporate into the cluster. For load balancing and robustness we have two Elasticsearch front-end servers which are balancers. In the back-end there are three Elasticsearch worker nodes which hold all the data. There are 5 shards and the number of replicas per shard is 2. We notice that running the cluster continuously results in a memory / load / query time build-up. To battle this we restart the nodes twice per day.
> 
> The restart scenario is the following:
> 
> 1. Stop Elasticsearch on one of the worker nodes via /etc/init.d/elasticsearch stop
> 2. Wait 120 seconds
> 3. Start Elasticsearch on the corresponding worker nodes via /etc/init.d/elasticsearch start
> 
> What we see is that worker nodes sometimes suffer from a JVM crash after the cluster state is updated. From the logs we see the following messages:
> 
> Elasticsearch log file:
> 
> [2012-08-08 08:29:30,918][DEBUG][cluster.service] [worker2] processing [zen-disco-receive(from master [[front1][D2gTiUeyRbS-Gj0rvpI4NQ][inet[/10.28.7.197:9300]]{data=false, master=true}])]: done applying updated cluster\_state
> 
> Wrapper log file:
> 
> STATUS | wrapper | 2012/08/08 08:29:56 | JVM received a signal UNKNOWN (6).
> 
> In the JVM crash log file on the worker nodes we have seen two different root causes after an incident:
> 
> # J org.elasticsearch.common.trove.impl.hash.TObjectHash.insertKey(Ljava/lang/Object;)I
> 
> or
> 
> # J org.elasticsearch.common.io.stream.HandlesStreamOutput.writeUTF(Ljava/lang/String;)V
> 
> These crashes seem completely unexpected. Is there any measure we can take to circumvent these JVM crashes? If you need more information on our setup please do not hesitate to contact us.
> 
> Please find the individual component versions below.
> 
> Best Regards
> 
> - Alex
> 
> Our stack:
> 
> - elasticsearch-0.19.8
> 
> - Java Version:  
> $ /opt/java/jre1.7.0\_04/bin/java -version  
> java version "1.7.0\_04"  
> Java(TM) SE Runtime Environment (build 1.7.0\_04-b20)  
> Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
> 
> - OS Version:  
> $ uname -a  
> Linux elastic29 2.6.32-5-xen-amd64 #1 SMP Sun May 6 08:57:29 UTC 2012 x86\_64 GNU/Linux
> 
> * * *
> 
> alexander sennhauser  
> software engineer
> 
> +41 79 420 4953 mobile  
> [lex@squirro.com](mailto:lex@squirro.com)  
> [www.squirro.com](http://www.squirro.com)

---

<div class="post-metadata">

**Author:** ![Alex\_5](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@Alex\_5](https://discuss.elastic.co/u/Alex_5)\
**Post date:** [August 8, 2012, 11:40am UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/3 "2012-08-08T11:40:24Z")

</div>

Thanks for the quick reply.

The JVM crash files can be found at [JVM crash log file · GitHub](https://gist.github.com/3294425).

The reported JVM version is being used by Elasticsearch.

Best Regards

- Alex

On Wednesday, August 8, 2012 11:53:39 AM UTC+2, kimchy wrote:

> Can you gist the crash file output of the JVM? Can you make sure that ES  
> is using the relevant Java version and not a different one (using the nodes  
> info API with the jvm flag).
> 
> On Aug 8, 2012, at 11:32 AM, Alex \<[l...@squirro.com](mailto:l...@squirro.com) \<javascript:\>\> wrote:
> 
> > Dear all,
> > 
> > We are seeing unexpected JVM crashes after an Elasticsearch cluster node  
> > is restarted and reincorporate into the cluster. For load balancing and  
> > robustness we have two Elasticsearch front-end servers which are balancers.  
> > In the back-end there are three Elasticsearch worker nodes which hold all  
> > the data. There are 5 shards and the number of replicas per shard is 2. We  
> > notice that running the cluster continuously results in a memory / load /  
> > query time build-up. To battle this we restart the nodes twice per day.
> > 
> > The restart scenario is the following:
> > 
> > 1. Stop Elasticsearch on one of the worker nodes via  
> > /etc/init.d/elasticsearch stop
> > 2. Wait 120 seconds
> > 3. Start Elasticsearch on the corresponding worker nodes via  
> > /etc/init.d/elasticsearch start
> > 
> > What we see is that worker nodes sometimes suffer from a JVM crash after  
> > the cluster state is updated. From the logs we see the following messages:
> > 
> > Elasticsearch log file:
> > 
> > [2012-08-08 08:29:30,918][DEBUG][cluster.service] [worker2]  
> > processing [zen-disco-receive(from master  
> > [[front1][D2gTiUeyRbS-Gj0rvpI4NQ][inet[/10.28.7.197:9300]]{data=false,  
> > master=true}])]: done applying updated cluster\_state
> > 
> > Wrapper log file:
> > 
> > STATUS | wrapper | 2012/08/08 08:29:56 | JVM received a signal UNKNOWN  
> > (6).
> > 
> > In the JVM crash log file on the worker nodes we have seen two different  
> > root causes after an incident:
> > 
> > # J
> 
> org.elasticsearch.common.trove.impl.hash.TObjectHash.insertKey(Ljava/lang/Object;)I
> 
> > or
> > 
> > # J
> 
> org.elasticsearch.common.io.stream.HandlesStreamOutput.writeUTF(Ljava/lang/String;)V
> 
> > These crashes seem completely unexpected. Is there any measure we can  
> > take to circumvent these JVM crashes? If you need more information on our  
> > setup please do not hesitate to contact us.
> > 
> > Please find the individual component versions below.
> > 
> > Best Regards
> > 
> > - Alex
> > 
> > Our stack:
> > 
> > - elasticsearch-0.19.8
> > 
> > - Java Version:  
> > $ /opt/java/jre1.7.0\_04/bin/java -version  
> > java version "1.7.0\_04"  
> > Java(TM) SE Runtime Environment (build 1.7.0\_04-b20)  
> > Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
> > 
> > - OS Version:  
> > $ uname -a  
> > Linux elastic29 2.6.32-5-xen-amd64 #1 SMP Sun May 6 08:57:29 UTC 2012  
> > x86\_64 GNU/Linux
> > 
> > * * *
> > 
> > alexander sennhauser  
> > software engineer
> > 
> > +41 79 420 4953 mobile  
> > [l...@squirro.com](mailto:l...@squirro.com) \<javascript:\>  
> > [www.squirro.com](http://www.squirro.com)

---

<div class="post-metadata">

**Author:** ![Alex\_5](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@Alex\_5](https://discuss.elastic.co/u/Alex_5)\
**Post date:** [August 16, 2012, 6:56pm UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/4 "2012-08-16T18:56:24Z")

</div>

Dear all,

Are there any insights on this incident that you can share with us? We are  
still seeing repeated failures when a node is re-incorporated.

On some occasions we also see that the two front-end servers get out of  
sync. One usually looses connectivity to all other nodes and as a  
consequence it's CPU usage goes through the roof.

Best Regards

- Alex

On Wednesday, August 8, 2012 1:40:24 PM UTC+2, Alexander Sennhauser wrote:

> Thanks for the quick reply.
> 
> The JVM crash files can be found at [JVM crash log file · GitHub](https://gist.github.com/3294425).
> 
> The reported JVM version is being used by Elasticsearch.
> 
> Best Regards
> 
> - Alex
> 
> On Wednesday, August 8, 2012 11:53:39 AM UTC+2, kimchy wrote:
> 
> > Can you gist the crash file output of the JVM? Can you make sure that ES  
> > is using the relevant Java version and not a different one (using the nodes  
> > info API with the jvm flag).
> > 
> > On Aug 8, 2012, at 11:32 AM, Alex [l...@squirro.com](mailto:l...@squirro.com) wrote:
> > 
> > > Dear all,
> > > 
> > > We are seeing unexpected JVM crashes after an Elasticsearch cluster  
> > > node is restarted and reincorporate into the cluster. For load balancing  
> > > and robustness we have two Elasticsearch front-end servers which are  
> > > balancers. In the back-end there are three Elasticsearch worker nodes which  
> > > hold all the data. There are 5 shards and the number of replicas per shard  
> > > is 2. We notice that running the cluster continuously results in a memory /  
> > > load / query time build-up. To battle this we restart the nodes twice per  
> > > day.
> > > 
> > > The restart scenario is the following:
> > > 
> > > 1. Stop Elasticsearch on one of the worker nodes via  
> > > /etc/init.d/elasticsearch stop
> > > 2. Wait 120 seconds
> > > 3. Start Elasticsearch on the corresponding worker nodes via  
> > > /etc/init.d/elasticsearch start
> > > 
> > > What we see is that worker nodes sometimes suffer from a JVM crash  
> > > after the cluster state is updated. From the logs we see the following  
> > > messages:
> > > 
> > > Elasticsearch log file:
> > > 
> > > [2012-08-08 08:29:30,918][DEBUG][cluster.service] [worker2]  
> > > processing [zen-disco-receive(from master  
> > > [[front1][D2gTiUeyRbS-Gj0rvpI4NQ][inet[/10.28.7.197:9300]]{data=false,  
> > > master=true}])]: done applying updated cluster\_state
> > > 
> > > Wrapper log file:
> > > 
> > > STATUS | wrapper | 2012/08/08 08:29:56 | JVM received a signal UNKNOWN  
> > > (6).
> > > 
> > > In the JVM crash log file on the worker nodes we have seen two  
> > > different root causes after an incident:
> > > 
> > > # J
> > 
> > org.elasticsearch.common.trove.impl.hash.TObjectHash.insertKey(Ljava/lang/Object;)I
> > 
> > > or
> > > 
> > > # J
> > 
> > org.elasticsearch.common.io.stream.HandlesStreamOutput.writeUTF(Ljava/lang/String;)V
> > 
> > > These crashes seem completely unexpected. Is there any measure we can  
> > > take to circumvent these JVM crashes? If you need more information on our  
> > > setup please do not hesitate to contact us.
> > > 
> > > Please find the individual component versions below.
> > > 
> > > Best Regards
> > > 
> > > - Alex
> > > 
> > > Our stack:
> > > 
> > > - elasticsearch-0.19.8
> > > 
> > > - Java Version:  
> > > $ /opt/java/jre1.7.0\_04/bin/java -version  
> > > java version "1.7.0\_04"  
> > > Java(TM) SE Runtime Environment (build 1.7.0\_04-b20)  
> > > Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
> > > 
> > > - OS Version:  
> > > $ uname -a  
> > > Linux elastic29 2.6.32-5-xen-amd64 #1 SMP Sun May 6 08:57:29 UTC 2012  
> > > x86\_64 GNU/Linux
> > > 
> > > * * *
> > > 
> > > alexander sennhauser  
> > > software engineer
> > > 
> > > +41 79 420 4953 mobile  
> > > [l...@squirro.com](mailto:l...@squirro.com)  
> > > [www.squirro.com](http://www.squirro.com)

--

---

<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 16, 2012, 11:59pm UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/5 "2012-08-16T23:59:14Z")

</div>

I am experiencing the same issue.

Cluster consisted of four 0.19.2 nodes. Was performing a rolling  
upgrade to 0.19.8 one at a time. During each restart, the cluster  
would freeze and a head dump would appear on the node that was just  
restarted. Removing the hprof fixed the issue. As of now, 3 nodes have  
been updated, 1 has not. Still in red state after 3 restart.

hprof file is 6.7G

On Thu, Aug 16, 2012 at 11:56 AM, Alexander Sennhauser [lex@squirro.com](mailto:lex@squirro.com) wrote:

> Dear all,
> 
> Are there any insights on this incident that you can share with us? We are  
> still seeing repeated failures when a node is re-incorporated.
> 
> On some occasions we also see that the two front-end servers get out of  
> sync. One usually looses connectivity to all other nodes and as a  
> consequence it's CPU usage goes through the roof.
> 
> Best Regards
> 
> - Alex
> 
> On Wednesday, August 8, 2012 1:40:24 PM UTC+2, Alexander Sennhauser wrote:
> 
> > Thanks for the quick reply.
> > 
> > The JVM crash files can be found at [JVM crash log file · GitHub](https://gist.github.com/3294425).
> > 
> > The reported JVM version is being used by Elasticsearch.
> > 
> > Best Regards
> > 
> > - Alex
> > 
> > On Wednesday, August 8, 2012 11:53:39 AM UTC+2, kimchy wrote:
> > 
> > > Can you gist the crash file output of the JVM? Can you make sure that ES  
> > > is using the relevant Java version and not a different one (using the nodes  
> > > info API with the jvm flag).
> > > 
> > > On Aug 8, 2012, at 11:32 AM, Alex [l...@squirro.com](mailto:l...@squirro.com) wrote:
> > > 
> > > > Dear all,
> > > > 
> > > > We are seeing unexpected JVM crashes after an Elasticsearch cluster  
> > > > node is restarted and reincorporate into the cluster. For load balancing and  
> > > > robustness we have two Elasticsearch front-end servers which are balancers.  
> > > > In the back-end there are three Elasticsearch worker nodes which hold all  
> > > > the data. There are 5 shards and the number of replicas per shard is 2. We  
> > > > notice that running the cluster continuously results in a memory / load /  
> > > > query time build-up. To battle this we restart the nodes twice per day.
> > > > 
> > > > The restart scenario is the following:
> > > > 
> > > > 1. Stop Elasticsearch on one of the worker nodes via  
> > > > /etc/init.d/elasticsearch stop
> > > > 2. Wait 120 seconds
> > > > 3. Start Elasticsearch on the corresponding worker nodes via  
> > > > /etc/init.d/elasticsearch start
> > > > 
> > > > What we see is that worker nodes sometimes suffer from a JVM crash  
> > > > after the cluster state is updated. From the logs we see the following  
> > > > messages:
> > > > 
> > > > Elasticsearch log file:
> > > > 
> > > > [2012-08-08 08:29:30,918][DEBUG][cluster.service] [worker2]  
> > > > processing [zen-disco-receive(from master  
> > > > [[front1][D2gTiUeyRbS-Gj0rvpI4NQ][inet[/10.28.7.197:9300]]{data=false,  
> > > > master=true}])]: done applying updated cluster\_state
> > > > 
> > > > Wrapper log file:
> > > > 
> > > > STATUS | wrapper | 2012/08/08 08:29:56 | JVM received a signal UNKNOWN  
> > > > (6).
> > > > 
> > > > In the JVM crash log file on the worker nodes we have seen two  
> > > > different root causes after an incident:
> > > > 
> > > > # J
> > > > 
> > > > org.elasticsearch.common.trove.impl.hash.TObjectHash.insertKey(Ljava/lang/Object;)I
> > > > 
> > > > or
> > > > 
> > > > # J
> > > > 
> > > > org.elasticsearch.common.io.stream.HandlesStreamOutput.writeUTF(Ljava/lang/String;)V
> > > > 
> > > > These crashes seem completely unexpected. Is there any measure we can  
> > > > take to circumvent these JVM crashes? If you need more information on our  
> > > > setup please do not hesitate to contact us.
> > > > 
> > > > Please find the individual component versions below.
> > > > 
> > > > Best Regards
> > > > 
> > > > - Alex
> > > > 
> > > > Our stack:
> > > > 
> > > > - elasticsearch-0.19.8
> > > > 
> > > > - Java Version:  
> > > > $ /opt/java/jre1.7.0\_04/bin/java -version  
> > > > java version "1.7.0\_04"  
> > > > Java(TM) SE Runtime Environment (build 1.7.0\_04-b20)  
> > > > Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
> > > > 
> > > > - OS Version:  
> > > > $ uname -a  
> > > > Linux elastic29 2.6.32-5-xen-amd64 #1 SMP Sun May 6 08:57:29 UTC 2012  
> > > > x86\_64 GNU/Linux
> > > > 
> > > > * * *
> > > > 
> > > > alexander sennhauser  
> > > > software engineer
> > > > 
> > > > +41 79 420 4953 mobile  
> > > > [l...@squirro.com](mailto:l...@squirro.com)  
> > > > [www.squirro.com](http://www.squirro.com)
> 
> --

--

---

<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 17, 2012, 12:03am UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/6 "2012-08-17T00:03:09Z")

</div>

Forgot to include

$ java -version  
java version "1.6.0\_31"  
Java(TM) SE Runtime Environment (build 1.6.0\_31-b04)  
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)

$ cat /etc/redhat-release  
CentOS release 6.2 (Final)

$ uname -a  
Linux srch-dv105 2.6.32-220.13.1.el6.x86\_64 #1 SMP Tue Apr 17 23:56:34  
BST 2012 x86\_64 x86\_64 x86\_64 GNU/Linux

Using the service wrapper. Part of the upgrade process included  
upgrading the wrapper as well.

Cheers,

Ivan

On Thu, Aug 16, 2012 at 4:59 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> I am experiencing the same issue.
> 
> Cluster consisted of four 0.19.2 nodes. Was performing a rolling  
> upgrade to 0.19.8 one at a time. During each restart, the cluster  
> would freeze and a head dump would appear on the node that was just  
> restarted. Removing the hprof fixed the issue. As of now, 3 nodes have  
> been updated, 1 has not. Still in red state after 3 restart.
> 
> hprof file is 6.7G
> 
> On Thu, Aug 16, 2012 at 11:56 AM, Alexander Sennhauser [lex@squirro.com](mailto:lex@squirro.com) wrote:
> 
> > Dear all,
> > 
> > Are there any insights on this incident that you can share with us? We are  
> > still seeing repeated failures when a node is re-incorporated.
> > 
> > On some occasions we also see that the two front-end servers get out of  
> > sync. One usually looses connectivity to all other nodes and as a  
> > consequence it's CPU usage goes through the roof.
> > 
> > Best Regards
> > 
> > - Alex
> > 
> > On Wednesday, August 8, 2012 1:40:24 PM UTC+2, Alexander Sennhauser wrote:
> > 
> > > Thanks for the quick reply.
> > > 
> > > The JVM crash files can be found at [JVM crash log file · GitHub](https://gist.github.com/3294425).
> > > 
> > > The reported JVM version is being used by Elasticsearch.
> > > 
> > > Best Regards
> > > 
> > > - Alex
> > > 
> > > On Wednesday, August 8, 2012 11:53:39 AM UTC+2, kimchy wrote:
> > > 
> > > > Can you gist the crash file output of the JVM? Can you make sure that ES  
> > > > is using the relevant Java version and not a different one (using the nodes  
> > > > info API with the jvm flag).
> > > > 
> > > > On Aug 8, 2012, at 11:32 AM, Alex [l...@squirro.com](mailto:l...@squirro.com) wrote:
> > > > 
> > > > > Dear all,
> > > > > 
> > > > > We are seeing unexpected JVM crashes after an Elasticsearch cluster  
> > > > > node is restarted and reincorporate into the cluster. For load balancing and  
> > > > > robustness we have two Elasticsearch front-end servers which are balancers.  
> > > > > In the back-end there are three Elasticsearch worker nodes which hold all  
> > > > > the data. There are 5 shards and the number of replicas per shard is 2. We  
> > > > > notice that running the cluster continuously results in a memory / load /  
> > > > > query time build-up. To battle this we restart the nodes twice per day.
> > > > > 
> > > > > The restart scenario is the following:
> > > > > 
> > > > > 1. Stop Elasticsearch on one of the worker nodes via  
> > > > > /etc/init.d/elasticsearch stop
> > > > > 2. Wait 120 seconds
> > > > > 3. Start Elasticsearch on the corresponding worker nodes via  
> > > > > /etc/init.d/elasticsearch start
> > > > > 
> > > > > What we see is that worker nodes sometimes suffer from a JVM crash  
> > > > > after the cluster state is updated. From the logs we see the following  
> > > > > messages:
> > > > > 
> > > > > Elasticsearch log file:
> > > > > 
> > > > > [2012-08-08 08:29:30,918][DEBUG][cluster.service] [worker2]  
> > > > > processing [zen-disco-receive(from master  
> > > > > [[front1][D2gTiUeyRbS-Gj0rvpI4NQ][inet[/10.28.7.197:9300]]{data=false,  
> > > > > master=true}])]: done applying updated cluster\_state
> > > > > 
> > > > > Wrapper log file:
> > > > > 
> > > > > STATUS | wrapper | 2012/08/08 08:29:56 | JVM received a signal UNKNOWN  
> > > > > (6).
> > > > > 
> > > > > In the JVM crash log file on the worker nodes we have seen two  
> > > > > different root causes after an incident:
> > > > > 
> > > > > # J
> > > > > 
> > > > > org.elasticsearch.common.trove.impl.hash.TObjectHash.insertKey(Ljava/lang/Object;)I
> > > > > 
> > > > > or
> > > > > 
> > > > > # J
> > > > > 
> > > > > org.elasticsearch.common.io.stream.HandlesStreamOutput.writeUTF(Ljava/lang/String;)V
> > > > > 
> > > > > These crashes seem completely unexpected. Is there any measure we can  
> > > > > take to circumvent these JVM crashes? If you need more information on our  
> > > > > setup please do not hesitate to contact us.
> > > > > 
> > > > > Please find the individual component versions below.
> > > > > 
> > > > > Best Regards
> > > > > 
> > > > > - Alex
> > > > > 
> > > > > Our stack:
> > > > > 
> > > > > - elasticsearch-0.19.8
> > > > > 
> > > > > - Java Version:  
> > > > > $ /opt/java/jre1.7.0\_04/bin/java -version  
> > > > > java version "1.7.0\_04"  
> > > > > Java(TM) SE Runtime Environment (build 1.7.0\_04-b20)  
> > > > > Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
> > > > > 
> > > > > - OS Version:  
> > > > > $ uname -a  
> > > > > Linux elastic29 2.6.32-5-xen-amd64 #1 SMP Sun May 6 08:57:29 UTC 2012  
> > > > > x86\_64 GNU/Linux
> > > > > 
> > > > > * * *
> > > > > 
> > > > > alexander sennhauser  
> > > > > software engineer
> > > > > 
> > > > > +41 79 420 4953 mobile  
> > > > > [l...@squirro.com](mailto:l...@squirro.com)  
> > > > > [www.squirro.com](http://www.squirro.com)
> > 
> > --

--

---

<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 17, 2012, 8:16pm UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/7 "2012-08-17T20:16:16Z")

</div>

Several restarts later, I am no longer experiencing JVM crashes or  
stalled clusters.

The only change was updating the elasticsearch.conf file to the latest  
version. I was previously using the new wrapper with an old config  
file (mainly GC changes, ES jar was not listed first, and the  
Bootstrap class was used directly). Only modifications are heap size  
and es.path.conf.

One node is still running 0.19.2. I will replicate the upgrade  
process, but I prefer to wait to see if there is some information I  
should capture before upgrading.

Only other tidbit of information is that I try to set  
cluster.routing.allocation.disable\_allocation to true when restarting  
a node, although I have not been consistent.

Ivan

On Thu, Aug 16, 2012 at 5:03 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> Forgot to include
> 
> $ java -version  
> java version "1.6.0\_31"  
> Java(TM) SE Runtime Environment (build 1.6.0\_31-b04)  
> Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
> 
> $ cat /etc/redhat-release  
> CentOS release 6.2 (Final)
> 
> $ uname -a  
> Linux srch-dv105 2.6.32-220.13.1.el6.x86\_64 #1 SMP Tue Apr 17 23:56:34  
> BST 2012 x86\_64 x86\_64 x86\_64 GNU/Linux
> 
> Using the service wrapper. Part of the upgrade process included  
> upgrading the wrapper as well.
> 
> Cheers,
> 
> Ivan
> 
> On Thu, Aug 16, 2012 at 4:59 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:
> 
> > I am experiencing the same issue.
> > 
> > Cluster consisted of four 0.19.2 nodes. Was performing a rolling  
> > upgrade to 0.19.8 one at a time. During each restart, the cluster  
> > would freeze and a head dump would appear on the node that was just  
> > restarted. Removing the hprof fixed the issue. As of now, 3 nodes have  
> > been updated, 1 has not. Still in red state after 3 restart.
> > 
> > hprof file is 6.7G
> > 
> > On Thu, Aug 16, 2012 at 11:56 AM, Alexander Sennhauser [lex@squirro.com](mailto:lex@squirro.com) wrote:
> > 
> > > Dear all,
> > > 
> > > Are there any insights on this incident that you can share with us? We are  
> > > still seeing repeated failures when a node is re-incorporated.
> > > 
> > > On some occasions we also see that the two front-end servers get out of  
> > > sync. One usually looses connectivity to all other nodes and as a  
> > > consequence it's CPU usage goes through the roof.
> > > 
> > > Best Regards
> > > 
> > > - Alex
> > > 
> > > On Wednesday, August 8, 2012 1:40:24 PM UTC+2, Alexander Sennhauser wrote:
> > > 
> > > > Thanks for the quick reply.
> > > > 
> > > > The JVM crash files can be found at [JVM crash log file · GitHub](https://gist.github.com/3294425).
> > > > 
> > > > The reported JVM version is being used by Elasticsearch.
> > > > 
> > > > Best Regards
> > > > 
> > > > - Alex
> > > > 
> > > > On Wednesday, August 8, 2012 11:53:39 AM UTC+2, kimchy wrote:
> > > > 
> > > > > Can you gist the crash file output of the JVM? Can you make sure that ES  
> > > > > is using the relevant Java version and not a different one (using the nodes  
> > > > > info API with the jvm flag).
> > > > > 
> > > > > On Aug 8, 2012, at 11:32 AM, Alex [l...@squirro.com](mailto:l...@squirro.com) wrote:
> > > > > 
> > > > > > Dear all,
> > > > > > 
> > > > > > We are seeing unexpected JVM crashes after an Elasticsearch cluster  
> > > > > > node is restarted and reincorporate into the cluster. For load balancing and  
> > > > > > robustness we have two Elasticsearch front-end servers which are balancers.  
> > > > > > In the back-end there are three Elasticsearch worker nodes which hold all  
> > > > > > the data. There are 5 shards and the number of replicas per shard is 2. We  
> > > > > > notice that running the cluster continuously results in a memory / load /  
> > > > > > query time build-up. To battle this we restart the nodes twice per day.
> > > > > > 
> > > > > > The restart scenario is the following:
> > > > > > 
> > > > > > 1. Stop Elasticsearch on one of the worker nodes via  
> > > > > > /etc/init.d/elasticsearch stop
> > > > > > 2. Wait 120 seconds
> > > > > > 3. Start Elasticsearch on the corresponding worker nodes via  
> > > > > > /etc/init.d/elasticsearch start
> > > > > > 
> > > > > > What we see is that worker nodes sometimes suffer from a JVM crash  
> > > > > > after the cluster state is updated. From the logs we see the following  
> > > > > > messages:
> > > > > > 
> > > > > > Elasticsearch log file:
> > > > > > 
> > > > > > [2012-08-08 08:29:30,918][DEBUG][cluster.service] [worker2]  
> > > > > > processing [zen-disco-receive(from master  
> > > > > > [[front1][D2gTiUeyRbS-Gj0rvpI4NQ][inet[/10.28.7.197:9300]]{data=false,  
> > > > > > master=true}])]: done applying updated cluster\_state
> > > > > > 
> > > > > > Wrapper log file:
> > > > > > 
> > > > > > STATUS | wrapper | 2012/08/08 08:29:56 | JVM received a signal UNKNOWN  
> > > > > > (6).
> > > > > > 
> > > > > > In the JVM crash log file on the worker nodes we have seen two  
> > > > > > different root causes after an incident:
> > > > > > 
> > > > > > # J
> > > > > > 
> > > > > > org.elasticsearch.common.trove.impl.hash.TObjectHash.insertKey(Ljava/lang/Object;)I
> > > > > > 
> > > > > > or
> > > > > > 
> > > > > > # J
> > > > > > 
> > > > > > org.elasticsearch.common.io.stream.HandlesStreamOutput.writeUTF(Ljava/lang/String;)V
> > > > > > 
> > > > > > These crashes seem completely unexpected. Is there any measure we can  
> > > > > > take to circumvent these JVM crashes? If you need more information on our  
> > > > > > setup please do not hesitate to contact us.
> > > > > > 
> > > > > > Please find the individual component versions below.
> > > > > > 
> > > > > > Best Regards
> > > > > > 
> > > > > > - Alex
> > > > > > 
> > > > > > Our stack:
> > > > > > 
> > > > > > - elasticsearch-0.19.8
> > > > > > 
> > > > > > - Java Version:  
> > > > > > $ /opt/java/jre1.7.0\_04/bin/java -version  
> > > > > > java version "1.7.0\_04"  
> > > > > > Java(TM) SE Runtime Environment (build 1.7.0\_04-b20)  
> > > > > > Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
> > > > > > 
> > > > > > - OS Version:  
> > > > > > $ uname -a  
> > > > > > Linux elastic29 2.6.32-5-xen-amd64 #1 SMP Sun May 6 08:57:29 UTC 2012  
> > > > > > x86\_64 GNU/Linux
> > > > > > 
> > > > > > * * *
> > > > > > 
> > > > > > alexander sennhauser  
> > > > > > software engineer
> > > > > > 
> > > > > > +41 79 420 4953 mobile  
> > > > > > [l...@squirro.com](mailto:l...@squirro.com)  
> > > > > > [www.squirro.com](http://www.squirro.com)
> > > 
> > > --

--

---

<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 17, 2012, 9:48pm UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/8 "2012-08-17T21:48:20Z")

</div>

Sorry for thread jacking Alex, but I am curious if my situation is  
identical to yours.

Despite not having done a single query after restarting the nodes, 2  
nodes have their memory (10G) maxed out with lots of CPU activity.  
Transport size is in constant action (2000, not sure what the  
dimension is).

Nothing is occurring on this cluster. No indexing, no querying, nothing.

--  
Ivan

On Fri, Aug 17, 2012 at 1:16 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> Several restarts later, I am no longer experiencing JVM crashes or  
> stalled clusters.
> 
> The only change was updating the elasticsearch.conf file to the latest  
> version. I was previously using the new wrapper with an old config  
> file (mainly GC changes, ES jar was not listed first, and the  
> Bootstrap class was used directly). Only modifications are heap size  
> and es.path.conf.
> 
> One node is still running 0.19.2. I will replicate the upgrade  
> process, but I prefer to wait to see if there is some information I  
> should capture before upgrading.
> 
> Only other tidbit of information is that I try to set  
> cluster.routing.allocation.disable\_allocation to true when restarting  
> a node, although I have not been consistent.
> 
> Ivan
> 
> On Thu, Aug 16, 2012 at 5:03 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:
> 
> > Forgot to include
> > 
> > $ java -version  
> > java version "1.6.0\_31"  
> > Java(TM) SE Runtime Environment (build 1.6.0\_31-b04)  
> > Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
> > 
> > $ cat /etc/redhat-release  
> > CentOS release 6.2 (Final)
> > 
> > $ uname -a  
> > Linux srch-dv105 2.6.32-220.13.1.el6.x86\_64 #1 SMP Tue Apr 17 23:56:34  
> > BST 2012 x86\_64 x86\_64 x86\_64 GNU/Linux
> > 
> > Using the service wrapper. Part of the upgrade process included  
> > upgrading the wrapper as well.
> > 
> > Cheers,
> > 
> > Ivan
> > 
> > On Thu, Aug 16, 2012 at 4:59 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:
> > 
> > > I am experiencing the same issue.
> > > 
> > > Cluster consisted of four 0.19.2 nodes. Was performing a rolling  
> > > upgrade to 0.19.8 one at a time. During each restart, the cluster  
> > > would freeze and a head dump would appear on the node that was just  
> > > restarted. Removing the hprof fixed the issue. As of now, 3 nodes have  
> > > been updated, 1 has not. Still in red state after 3 restart.
> > > 
> > > hprof file is 6.7G
> > > 
> > > On Thu, Aug 16, 2012 at 11:56 AM, Alexander Sennhauser [lex@squirro.com](mailto:lex@squirro.com) wrote:
> > > 
> > > > Dear all,
> > > > 
> > > > Are there any insights on this incident that you can share with us? We are  
> > > > still seeing repeated failures when a node is re-incorporated.
> > > > 
> > > > On some occasions we also see that the two front-end servers get out of  
> > > > sync. One usually looses connectivity to all other nodes and as a  
> > > > consequence it's CPU usage goes through the roof.
> > > > 
> > > > Best Regards
> > > > 
> > > > - Alex
> > > > 
> > > > On Wednesday, August 8, 2012 1:40:24 PM UTC+2, Alexander Sennhauser wrote:
> > > > 
> > > > > Thanks for the quick reply.
> > > > > 
> > > > > The JVM crash files can be found at [JVM crash log file · GitHub](https://gist.github.com/3294425).
> > > > > 
> > > > > The reported JVM version is being used by Elasticsearch.
> > > > > 
> > > > > Best Regards
> > > > > 
> > > > > - Alex
> > > > > 
> > > > > On Wednesday, August 8, 2012 11:53:39 AM UTC+2, kimchy wrote:
> > > > > 
> > > > > > Can you gist the crash file output of the JVM? Can you make sure that ES  
> > > > > > is using the relevant Java version and not a different one (using the nodes  
> > > > > > info API with the jvm flag).
> > > > > > 
> > > > > > On Aug 8, 2012, at 11:32 AM, Alex [l...@squirro.com](mailto:l...@squirro.com) wrote:
> > > > > > 
> > > > > > > Dear all,
> > > > > > > 
> > > > > > > We are seeing unexpected JVM crashes after an Elasticsearch cluster  
> > > > > > > node is restarted and reincorporate into the cluster. For load balancing and  
> > > > > > > robustness we have two Elasticsearch front-end servers which are balancers.  
> > > > > > > In the back-end there are three Elasticsearch worker nodes which hold all  
> > > > > > > the data. There are 5 shards and the number of replicas per shard is 2. We  
> > > > > > > notice that running the cluster continuously results in a memory / load /  
> > > > > > > query time build-up. To battle this we restart the nodes twice per day.
> > > > > > > 
> > > > > > > The restart scenario is the following:
> > > > > > > 
> > > > > > > 1. Stop Elasticsearch on one of the worker nodes via  
> > > > > > > /etc/init.d/elasticsearch stop
> > > > > > > 2. Wait 120 seconds
> > > > > > > 3. Start Elasticsearch on the corresponding worker nodes via  
> > > > > > > /etc/init.d/elasticsearch start
> > > > > > > 
> > > > > > > What we see is that worker nodes sometimes suffer from a JVM crash  
> > > > > > > after the cluster state is updated. From the logs we see the following  
> > > > > > > messages:
> > > > > > > 
> > > > > > > Elasticsearch log file:
> > > > > > > 
> > > > > > > [2012-08-08 08:29:30,918][DEBUG][cluster.service] [worker2]  
> > > > > > > processing [zen-disco-receive(from master  
> > > > > > > [[front1][D2gTiUeyRbS-Gj0rvpI4NQ][inet[/10.28.7.197:9300]]{data=false,  
> > > > > > > master=true}])]: done applying updated cluster\_state
> > > > > > > 
> > > > > > > Wrapper log file:
> > > > > > > 
> > > > > > > STATUS | wrapper | 2012/08/08 08:29:56 | JVM received a signal UNKNOWN  
> > > > > > > (6).
> > > > > > > 
> > > > > > > In the JVM crash log file on the worker nodes we have seen two  
> > > > > > > different root causes after an incident:
> > > > > > > 
> > > > > > > # J
> > > > > > > 
> > > > > > > org.elasticsearch.common.trove.impl.hash.TObjectHash.insertKey(Ljava/lang/Object;)I
> > > > > > > 
> > > > > > > or
> > > > > > > 
> > > > > > > # J
> > > > > > > 
> > > > > > > org.elasticsearch.common.io.stream.HandlesStreamOutput.writeUTF(Ljava/lang/String;)V
> > > > > > > 
> > > > > > > These crashes seem completely unexpected. Is there any measure we can  
> > > > > > > take to circumvent these JVM crashes? If you need more information on our  
> > > > > > > setup please do not hesitate to contact us.
> > > > > > > 
> > > > > > > Please find the individual component versions below.
> > > > > > > 
> > > > > > > Best Regards
> > > > > > > 
> > > > > > > - Alex
> > > > > > > 
> > > > > > > Our stack:
> > > > > > > 
> > > > > > > - elasticsearch-0.19.8
> > > > > > > 
> > > > > > > - Java Version:  
> > > > > > > $ /opt/java/jre1.7.0\_04/bin/java -version  
> > > > > > > java version "1.7.0\_04"  
> > > > > > > Java(TM) SE Runtime Environment (build 1.7.0\_04-b20)  
> > > > > > > Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
> > > > > > > 
> > > > > > > - OS Version:  
> > > > > > > $ uname -a  
> > > > > > > Linux elastic29 2.6.32-5-xen-amd64 #1 SMP Sun May 6 08:57:29 UTC 2012  
> > > > > > > x86\_64 GNU/Linux
> > > > > > > 
> > > > > > > * * *
> > > > > > > 
> > > > > > > alexander sennhauser  
> > > > > > > software engineer
> > > > > > > 
> > > > > > > +41 79 420 4953 mobile  
> > > > > > > [l...@squirro.com](mailto:l...@squirro.com)  
> > > > > > > [www.squirro.com](http://www.squirro.com)
> > > > 
> > > > --

--

---

<div class="post-metadata">

**Author:** ![Andrew\_at\_DataFeedFi](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@Andrew\_at\_DataFeedFi](https://discuss.elastic.co/u/Andrew_at_DataFeedFi)\
**Post date:** [August 19, 2012, 5:59pm UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/9 "2012-08-19T17:59:02Z")

</div>

Gentlemen,

I operate a quite large ES cluster, 3 front-end load-balanced http node  
only ES, plus  
16 data nodes. We have been developing and learning ES for about 1.5 years  
now.

I just want to share our experiences and some similar pains we have  
encountered like  
the disconnects, sudden jvm crashes and even data corruptions.

I highly recommend tackling the problem by knowing more about your queries,  
in our cases  
we fix the problem by modifying our queries.

We used bigdesk plugin and examine the patterns and possible issues.

Example of scenario 1:  
We had a query that loading to much field data cache, again we identified  
this by watching bigdesk  
and realized that all the data nodes field data cache were filling up very  
fast and taking up 70 - 80% of our memory.  
So that forced us to double check our codes and to fix the query. That  
solved the problem.

Example of scenario 2:  
Again another bad query caused CPU usage to peak at 90+% all the time.  
Causing Garbage collection to be delayed,  
or failing and eventually caused race condition and brought the node to its  
knees.

My point simply, troubleshoot and fix your query or even restructure your  
data better for more efficient search.  
If that does not fix it, consider adding more nodes.

Regards,

--Andrew

On Wednesday, August 8, 2012 4:32:01 AM UTC-5, Alexander Sennhauser wrote:

> Dear all,
> 
> We are seeing unexpected JVM crashes after an Elasticsearch cluster node  
> is restarted and reincorporate into the cluster. For load balancing and  
> robustness we have two Elasticsearch front-end servers which are balancers.  
> In the back-end there are three Elasticsearch worker nodes which hold all  
> the data. There are 5 shards and the number of replicas per shard is 2. We  
> notice that running the cluster continuously results in a memory / load /  
> query time build-up. To battle this we restart the nodes twice per day.
> 
> The restart scenario is the following:
> 
> 1. Stop Elasticsearch on one of the worker nodes via  
> /etc/init.d/elasticsearch stop
> 2. Wait 120 seconds
> 3. Start Elasticsearch on the corresponding worker nodes via  
> /etc/init.d/elasticsearch start
> 
> What we see is that worker nodes sometimes suffer from a JVM crash after  
> the cluster state is updated. From the logs we see the following messages:
> 
> Elasticsearch log file:
> 
> [2012-08-08 08:29:30,918][DEBUG][cluster.service] [worker2]  
> processing [zen-disco-receive(from master  
> [[front1][D2gTiUeyRbS-Gj0rvpI4NQ][inet[/10.28.7.197:9300]]{data=false,  
> master=true}])]: done applying updated cluster\_state
> 
> Wrapper log file:
> 
> STATUS | wrapper | 2012/08/08 08:29:56 | JVM received a signal UNKNOWN  
> (6).
> 
> In the JVM crash log file on the worker nodes we have seen two different  
> root causes after an incident:
> 
> # J
> 
> org.elasticsearch.common.trove.impl.hash.TObjectHash.insertKey(Ljava/lang/Object;)I
> 
> or
> 
> # J
> 
> org.elasticsearch.common.io.stream.HandlesStreamOutput.writeUTF(Ljava/lang/String;)V
> 
> These crashes seem completely unexpected. Is there any measure we can take  
> to circumvent these JVM crashes? If you need more information on our setup  
> please do not hesitate to contact us.
> 
> Please find the individual component versions below.
> 
> Best Regards
> 
> - Alex
> 
> Our stack:
> 
> - elasticsearch-0.19.8
> 
> - Java Version:  
> $ /opt/java/jre1.7.0\_04/bin/java -version  
> java version "1.7.0\_04"  
> Java(TM) SE Runtime Environment (build 1.7.0\_04-b20)  
> Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
> 
> - OS Version:  
> $ uname -a  
> Linux elastic29 2.6.32-5-xen-amd64 #1 SMP Sun May 6 08:57:29 UTC 2012  
> x86\_64 GNU/Linux
> 
> * * *
> 
> alexander sennhauser  
> software engineer
> 
> +41 79 420 4953 mobile  
> [l...@squirro.com](mailto:l...@squirro.com) \<javascript:\>  
> [www.squirro.com](http://www.squirro.com)

--

---

<div class="post-metadata">

**Author:** ![Joseph\_Smith](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Joseph\_Smith](https://discuss.elastic.co/u/Joseph_Smith)\
**Post date:** [August 10, 2013, 8:47pm UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/10 "2013-08-10T20:47:47Z")

</div>

This thread is about a JVM crash that occurs when a node is entering the  
cluster (while the cluster is idle). The platitude "add more hardware" is  
as off-topic as it is unhelpful.

Every node in my cluster died because of OOM (which was expected). I was  
able to bring all of the machines in the cluster back except for one. Note  
that the cluster is completely idle (no queries, no indexing).

When I try to bring the last machine back, the JVM crashes about 10 seconds  
after restarting. I get the JVM crash log as the OP  
(org.elasticsearch.common.trove.impl.hash.TObjectHash.insertKey(Ljava/lang/Object;).

Any help regarding this crash would be appreciated.

Top of crash file:

# 

# A fatal error has been detected by the Java Runtime Environment:

# 

# SIGSEGV (0xb) at pc=0x00007fbcccb40be4, pid=14593, tid=140429700744960

# 

# JRE version: 6.0\_24-b24

# Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode linux-amd64 )

# Derivative: IcedTea6 1.11.9

# Distribution: CentOS release 6.4 (Final), package

rhel-1.57.1.11.9.el6\_4-x86\_64

# Problematic frame:

# J

org.elasticsearch.common.trove.impl.hash.TObjectHash.insertKey(Ljava/lang/Object;)I

# 

# If you would like to submit a bug report, please include

# instructions how to reproduce the bug and visit:

# [http://icedtea.classpath.org/bugzilla](http://icedtea.classpath.org/bugzilla)

# 

~joe!

On Sunday, August 19, 2012 1:59:02 PM UTC-4, Andrew[.:at:.][DataFeedFile.com](http://DataFeedFile.com)  
wrote:

> Gentlemen,
> 
> I operate a quite large ES cluster, 3 front-end load-balanced http node  
> only ES, plus  
> 16 data nodes. We have been developing and learning ES for about 1.5 years  
> now.
> 
> I just want to share our experiences and some similar pains we have  
> encountered like  
> the disconnects, sudden jvm crashes and even data corruptions.
> 
> I highly recommend tackling the problem by knowing more about your  
> queries, in our cases  
> we fix the problem by modifying our queries.
> 
> We used bigdesk plugin and examine the patterns and possible issues.
> 
> Example of scenario 1:  
> We had a query that loading to much field data cache, again we identified  
> this by watching bigdesk  
> and realized that all the data nodes field data cache were filling up very  
> fast and taking up 70 - 80% of our memory.  
> So that forced us to double check our codes and to fix the query. That  
> solved the problem.
> 
> Example of scenario 2:  
> Again another bad query caused CPU usage to peak at 90+% all the time.  
> Causing Garbage collection to be delayed,  
> or failing and eventually caused race condition and brought the node to  
> its knees.
> 
> My point simply, troubleshoot and fix your query or even restructure your  
> data better for more efficient search.  
> If that does not fix it, consider adding more nodes.
> 
> Regards,
> 
> --Andrew
> 
> On Wednesday, August 8, 2012 4:32:01 AM UTC-5, Alexander Sennhauser wrote:
> 
> > Dear all,
> > 
> > We are seeing unexpected JVM crashes after an Elasticsearch cluster node  
> > is restarted and reincorporate into the cluster. For load balancing and  
> > robustness we have two Elasticsearch front-end servers which are balancers.  
> > In the back-end there are three Elasticsearch worker nodes which hold all  
> > the data. There are 5 shards and the number of replicas per shard is 2. We  
> > notice that running the cluster continuously results in a memory / load /  
> > query time build-up. To battle this we restart the nodes twice per day.
> > 
> > The restart scenario is the following:
> > 
> > 1. Stop Elasticsearch on one of the worker nodes via  
> > /etc/init.d/elasticsearch stop
> > 2. Wait 120 seconds
> > 3. Start Elasticsearch on the corresponding worker nodes via  
> > /etc/init.d/elasticsearch start
> > 
> > What we see is that worker nodes sometimes suffer from a JVM crash after  
> > the cluster state is updated. From the logs we see the following messages:
> > 
> > Elasticsearch log file:
> > 
> > [2012-08-08 08:29:30,918][DEBUG][cluster.service] [worker2]  
> > processing [zen-disco-receive(from master  
> > [[front1][D2gTiUeyRbS-Gj0rvpI4NQ][inet[/10.28.7.197:9300]]{data=false,  
> > master=true}])]: done applying updated cluster\_state
> > 
> > Wrapper log file:
> > 
> > STATUS | wrapper | 2012/08/08 08:29:56 | JVM received a signal UNKNOWN  
> > (6).
> > 
> > In the JVM crash log file on the worker nodes we have seen two different  
> > root causes after an incident:
> > 
> > # J
> > 
> > org.elasticsearch.common.trove.impl.hash.TObjectHash.insertKey(Ljava/lang/Object;)I
> > 
> > or
> > 
> > # J
> > 
> > org.elasticsearch.common.io.stream.HandlesStreamOutput.writeUTF(Ljava/lang/String;)V
> > 
> > These crashes seem completely unexpected. Is there any measure we can  
> > take to circumvent these JVM crashes? If you need more information on our  
> > setup please do not hesitate to contact us.
> > 
> > Please find the individual component versions below.
> > 
> > Best Regards
> > 
> > - Alex
> > 
> > Our stack:
> > 
> > - elasticsearch-0.19.8
> > 
> > - Java Version:  
> > $ /opt/java/jre1.7.0\_04/bin/java -version  
> > java version "1.7.0\_04"  
> > Java(TM) SE Runtime Environment (build 1.7.0\_04-b20)  
> > Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
> > 
> > - OS Version:  
> > $ uname -a  
> > Linux elastic29 2.6.32-5-xen-amd64 #1 SMP Sun May 6 08:57:29 UTC 2012  
> > x86\_64 GNU/Linux
> > 
> > * * *
> > 
> > alexander sennhauser  
> > software engineer
> > 
> > +41 79 420 4953 mobile  
> > [l...@squirro.com](mailto:l...@squirro.com)  
> > [www.squirro.com](http://www.squirro.com)

--  
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:** ![Joseph\_Smith](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Joseph\_Smith](https://discuss.elastic.co/u/Joseph_Smith)\
**Post date:** [August 10, 2013, 8:50pm UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/11 "2013-08-10T20:50:56Z")

</div>

Sorry for the double post. I am also using the G1GC. Other threads hint  
that using G1GC may be related to this issue.

On Saturday, August 10, 2013 4:47:47 PM UTC-4, Joseph Smith wrote:

> This thread is about a JVM crash that occurs when a node is entering the  
> cluster (while the cluster is idle). The platitude "add more hardware" is  
> as off-topic as it is unhelpful.
> 
> Every node in my cluster died because of OOM (which was expected). I was  
> able to bring all of the machines in the cluster back except for one. Note  
> that the cluster is completely idle (no queries, no indexing).
> 
> When I try to bring the last machine back, the JVM crashes about 10  
> seconds after restarting. I get the JVM crash log as the OP  
> (org.elasticsearch.common.trove.impl.hash.TObjectHash.insertKey(Ljava/lang/Object;).
> 
> Any help regarding this crash would be appreciated.
> 
> Top of crash file:
> 
> # 
> 
> # A fatal error has been detected by the Java Runtime Environment:
> 
> # 
> 
> # SIGSEGV (0xb) at pc=0x00007fbcccb40be4, pid=14593, tid=140429700744960
> 
> # 
> 
> # JRE version: 6.0\_24-b24
> 
> # Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode linux-amd64 )
> 
> # Derivative: IcedTea6 1.11.9
> 
> # Distribution: CentOS release 6.4 (Final), package
> 
> rhel-1.57.1.11.9.el6\_4-x86\_64
> 
> # Problematic frame:
> 
> # J
> 
> org.elasticsearch.common.trove.impl.hash.TObjectHash.insertKey(Ljava/lang/Object;)I
> 
> # 
> 
> # If you would like to submit a bug report, please include
> 
> # instructions how to reproduce the bug and visit:
> 
> # [http://icedtea.classpath.org/bugzilla](http://icedtea.classpath.org/bugzilla)
> 
> # 
> 
> ~joe!
> 
> On Sunday, August 19, 2012 1:59:02 PM UTC-4,  
> Andrew[.:at:.][DataFeedFile.com](http://DataFeedFile.com) wrote:
> 
> > Gentlemen,
> > 
> > I operate a quite large ES cluster, 3 front-end load-balanced http node  
> > only ES, plus  
> > 16 data nodes. We have been developing and learning ES for about 1.5  
> > years now.
> > 
> > I just want to share our experiences and some similar pains we have  
> > encountered like  
> > the disconnects, sudden jvm crashes and even data corruptions.
> > 
> > I highly recommend tackling the problem by knowing more about your  
> > queries, in our cases  
> > we fix the problem by modifying our queries.
> > 
> > We used bigdesk plugin and examine the patterns and possible issues.
> > 
> > Example of scenario 1:  
> > We had a query that loading to much field data cache, again we identified  
> > this by watching bigdesk  
> > and realized that all the data nodes field data cache were filling up  
> > very fast and taking up 70 - 80% of our memory.  
> > So that forced us to double check our codes and to fix the query. That  
> > solved the problem.
> > 
> > Example of scenario 2:  
> > Again another bad query caused CPU usage to peak at 90+% all the time.  
> > Causing Garbage collection to be delayed,  
> > or failing and eventually caused race condition and brought the node to  
> > its knees.
> > 
> > My point simply, troubleshoot and fix your query or even restructure your  
> > data better for more efficient search.  
> > If that does not fix it, consider adding more nodes.
> > 
> > Regards,
> > 
> > --Andrew
> > 
> > On Wednesday, August 8, 2012 4:32:01 AM UTC-5, Alexander Sennhauser wrote:
> > 
> > > Dear all,
> > > 
> > > We are seeing unexpected JVM crashes after an Elasticsearch cluster node  
> > > is restarted and reincorporate into the cluster. For load balancing and  
> > > robustness we have two Elasticsearch front-end servers which are balancers.  
> > > In the back-end there are three Elasticsearch worker nodes which hold all  
> > > the data. There are 5 shards and the number of replicas per shard is 2. We  
> > > notice that running the cluster continuously results in a memory / load /  
> > > query time build-up. To battle this we restart the nodes twice per day.
> > > 
> > > The restart scenario is the following:
> > > 
> > > 1. Stop Elasticsearch on one of the worker nodes via  
> > > /etc/init.d/elasticsearch stop
> > > 2. Wait 120 seconds
> > > 3. Start Elasticsearch on the corresponding worker nodes via  
> > > /etc/init.d/elasticsearch start
> > > 
> > > What we see is that worker nodes sometimes suffer from a JVM crash after  
> > > the cluster state is updated. From the logs we see the following messages:
> > > 
> > > Elasticsearch log file:
> > > 
> > > [2012-08-08 08:29:30,918][DEBUG][cluster.service] [worker2]  
> > > processing [zen-disco-receive(from master  
> > > [[front1][D2gTiUeyRbS-Gj0rvpI4NQ][inet[/10.28.7.197:9300]]{data=false,  
> > > master=true}])]: done applying updated cluster\_state
> > > 
> > > Wrapper log file:
> > > 
> > > STATUS | wrapper | 2012/08/08 08:29:56 | JVM received a signal UNKNOWN  
> > > (6).
> > > 
> > > In the JVM crash log file on the worker nodes we have seen two different  
> > > root causes after an incident:
> > > 
> > > # J
> > > 
> > > org.elasticsearch.common.trove.impl.hash.TObjectHash.insertKey(Ljava/lang/Object;)I
> > > 
> > > or
> > > 
> > > # J
> > > 
> > > org.elasticsearch.common.io.stream.HandlesStreamOutput.writeUTF(Ljava/lang/String;)V
> > > 
> > > These crashes seem completely unexpected. Is there any measure we can  
> > > take to circumvent these JVM crashes? If you need more information on our  
> > > setup please do not hesitate to contact us.
> > > 
> > > Please find the individual component versions below.
> > > 
> > > Best Regards
> > > 
> > > - Alex
> > > 
> > > Our stack:
> > > 
> > > - elasticsearch-0.19.8
> > > 
> > > - Java Version:  
> > > $ /opt/java/jre1.7.0\_04/bin/java -version  
> > > java version "1.7.0\_04"  
> > > Java(TM) SE Runtime Environment (build 1.7.0\_04-b20)  
> > > Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
> > > 
> > > - OS Version:  
> > > $ uname -a  
> > > Linux elastic29 2.6.32-5-xen-amd64 #1 SMP Sun May 6 08:57:29 UTC 2012  
> > > x86\_64 GNU/Linux
> > > 
> > > * * *
> > > 
> > > alexander sennhauser  
> > > software engineer
> > > 
> > > +41 79 420 4953 mobile  
> > > [l...@squirro.com](mailto:l...@squirro.com)  
> > > [www.squirro.com](http://www.squirro.com)

--  
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:** ![Joseph\_Smith](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Joseph\_Smith](https://discuss.elastic.co/u/Joseph_Smith)\
**Post date:** [August 10, 2013, 9:02pm UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/12 "2013-08-10T21:02:29Z")

</div>

After changing to -XX:+UseParNewGC -XX:+UseConcMarkSweepGC, the node  
successfully joined the cluster without crashing. This is too bad since  
G1GC is much more suited for the RAM allocations we are using.

On Saturday, August 10, 2013 4:50:56 PM UTC-4, Joseph Smith wrote:

> Sorry for the double post. I am also using the G1GC. Other threads hint  
> that using G1GC may be related to this issue.
> 
> On Saturday, August 10, 2013 4:47:47 PM UTC-4, Joseph Smith wrote:
> 
> > This thread is about a JVM crash that occurs when a node is entering the  
> > cluster (while the cluster is idle). The platitude "add more hardware" is  
> > as off-topic as it is unhelpful.
> > 
> > Every node in my cluster died because of OOM (which was expected). I was  
> > able to bring all of the machines in the cluster back except for one. Note  
> > that the cluster is completely idle (no queries, no indexing).
> > 
> > When I try to bring the last machine back, the JVM crashes about 10  
> > seconds after restarting. I get the JVM crash log as the OP  
> > (org.elasticsearch.common.trove.impl.hash.TObjectHash.insertKey(Ljava/lang/Object;).
> > 
> > Any help regarding this crash would be appreciated.
> > 
> > Top of crash file:
> > 
> > # 
> > 
> > # A fatal error has been detected by the Java Runtime Environment:
> > 
> > # 
> > 
> > # SIGSEGV (0xb) at pc=0x00007fbcccb40be4, pid=14593, tid=140429700744960
> > 
> > # 
> > 
> > # JRE version: 6.0\_24-b24
> > 
> > # Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode linux-amd64 )
> > 
> > # Derivative: IcedTea6 1.11.9
> > 
> > # Distribution: CentOS release 6.4 (Final), package
> > 
> > rhel-1.57.1.11.9.el6\_4-x86\_64
> > 
> > # Problematic frame:
> > 
> > # J
> > 
> > org.elasticsearch.common.trove.impl.hash.TObjectHash.insertKey(Ljava/lang/Object;)I
> > 
> > # 
> > 
> > # If you would like to submit a bug report, please include
> > 
> > # instructions how to reproduce the bug and visit:
> > 
> > # [http://icedtea.classpath.org/bugzilla](http://icedtea.classpath.org/bugzilla)
> > 
> > # 
> > 
> > ~joe!
> > 
> > On Sunday, August 19, 2012 1:59:02 PM UTC-4,  
> > Andrew[.:at:.][DataFeedFile.com](http://DataFeedFile.com) wrote:
> > 
> > > Gentlemen,
> > > 
> > > I operate a quite large ES cluster, 3 front-end load-balanced http node  
> > > only ES, plus  
> > > 16 data nodes. We have been developing and learning ES for about 1.5  
> > > years now.
> > > 
> > > I just want to share our experiences and some similar pains we have  
> > > encountered like  
> > > the disconnects, sudden jvm crashes and even data corruptions.
> > > 
> > > I highly recommend tackling the problem by knowing more about your  
> > > queries, in our cases  
> > > we fix the problem by modifying our queries.
> > > 
> > > We used bigdesk plugin and examine the patterns and possible issues.
> > > 
> > > Example of scenario 1:  
> > > We had a query that loading to much field data cache, again we  
> > > identified this by watching bigdesk  
> > > and realized that all the data nodes field data cache were filling up  
> > > very fast and taking up 70 - 80% of our memory.  
> > > So that forced us to double check our codes and to fix the query. That  
> > > solved the problem.
> > > 
> > > Example of scenario 2:  
> > > Again another bad query caused CPU usage to peak at 90+% all the time.  
> > > Causing Garbage collection to be delayed,  
> > > or failing and eventually caused race condition and brought the node to  
> > > its knees.
> > > 
> > > My point simply, troubleshoot and fix your query or even restructure  
> > > your data better for more efficient search.  
> > > If that does not fix it, consider adding more nodes.
> > > 
> > > Regards,
> > > 
> > > --Andrew
> > > 
> > > On Wednesday, August 8, 2012 4:32:01 AM UTC-5, Alexander Sennhauser  
> > > wrote:
> > > 
> > > > Dear all,
> > > > 
> > > > We are seeing unexpected JVM crashes after an Elasticsearch cluster  
> > > > node is restarted and reincorporate into the cluster. For load balancing  
> > > > and robustness we have two Elasticsearch front-end servers which are  
> > > > balancers. In the back-end there are three Elasticsearch worker nodes which  
> > > > hold all the data. There are 5 shards and the number of replicas per shard  
> > > > is 2. We notice that running the cluster continuously results in a memory /  
> > > > load / query time build-up. To battle this we restart the nodes twice per  
> > > > day.
> > > > 
> > > > The restart scenario is the following:
> > > > 
> > > > 1. Stop Elasticsearch on one of the worker nodes via  
> > > > /etc/init.d/elasticsearch stop
> > > > 2. Wait 120 seconds
> > > > 3. Start Elasticsearch on the corresponding worker nodes via  
> > > > /etc/init.d/elasticsearch start
> > > > 
> > > > What we see is that worker nodes sometimes suffer from a JVM crash  
> > > > after the cluster state is updated. From the logs we see the following  
> > > > messages:
> > > > 
> > > > Elasticsearch log file:
> > > > 
> > > > [2012-08-08 08:29:30,918][DEBUG][cluster.service] [worker2]  
> > > > processing [zen-disco-receive(from master  
> > > > [[front1][D2gTiUeyRbS-Gj0rvpI4NQ][inet[/10.28.7.197:9300]]{data=false,  
> > > > master=true}])]: done applying updated cluster\_state
> > > > 
> > > > Wrapper log file:
> > > > 
> > > > STATUS | wrapper | 2012/08/08 08:29:56 | JVM received a signal UNKNOWN  
> > > > (6).
> > > > 
> > > > In the JVM crash log file on the worker nodes we have seen two  
> > > > different root causes after an incident:
> > > > 
> > > > # J
> > > > 
> > > > org.elasticsearch.common.trove.impl.hash.TObjectHash.insertKey(Ljava/lang/Object;)I
> > > > 
> > > > or
> > > > 
> > > > # J
> > > > 
> > > > org.elasticsearch.common.io.stream.HandlesStreamOutput.writeUTF(Ljava/lang/String;)V
> > > > 
> > > > These crashes seem completely unexpected. Is there any measure we can  
> > > > take to circumvent these JVM crashes? If you need more information on our  
> > > > setup please do not hesitate to contact us.
> > > > 
> > > > Please find the individual component versions below.
> > > > 
> > > > Best Regards
> > > > 
> > > > - Alex
> > > > 
> > > > Our stack:
> > > > 
> > > > - elasticsearch-0.19.8
> > > > 
> > > > - Java Version:  
> > > > $ /opt/java/jre1.7.0\_04/bin/java -version  
> > > > java version "1.7.0\_04"  
> > > > Java(TM) SE Runtime Environment (build 1.7.0\_04-b20)  
> > > > Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
> > > > 
> > > > - OS Version:  
> > > > $ uname -a  
> > > > Linux elastic29 2.6.32-5-xen-amd64 #1 SMP Sun May 6 08:57:29 UTC 2012  
> > > > x86\_64 GNU/Linux
> > > > 
> > > > * * *
> > > > 
> > > > alexander sennhauser  
> > > > software engineer
> > > > 
> > > > +41 79 420 4953 mobile  
> > > > [l...@squirro.com](mailto:l...@squirro.com)  
> > > > [www.squirro.com](http://www.squirro.com)

--  
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:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [August 11, 2013, 11:57am UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/13 "2013-08-11T11:57:16Z")

</div>

I can confirm that certain memory pressure situations of trove4j maps do  
randomly crash with G1 GC. The trove4j maps are mostly used in the faceting  
module of ES.

An approach to lower the risk of SIGSEGV could be increasing the heap - but  
I'm not sure.

When I'm done with testing a replacement of ES trove4j with HPPC, there may  
be also a more viable alternative: [HPPC: High Performance Primitive Collections for Java](http://labs.carrotsearch.com/hppc.html)

Jörg

On Sat, Aug 10, 2013 at 11:02 PM, Joseph Smith [joseph.smith.tm@gmail.com](mailto:joseph.smith.tm@gmail.com)wrote:

> After changing to -XX:+UseParNewGC -XX:+UseConcMarkSweepGC, the node  
> successfully joined the cluster without crashing. This is too bad since  
> G1GC is much more suited for the RAM allocations we are using.
> 
> On Saturday, August 10, 2013 4:50:56 PM UTC-4, Joseph Smith wrote:
> 
> > Sorry for the double post. I am also using the G1GC. Other threads hint  
> > that using G1GC may be related to this issue.
> > 
> > On Saturday, August 10, 2013 4:47:47 PM UTC-4, Joseph Smith wrote:
> > 
> > > This thread is about a JVM crash that occurs when a node is entering the  
> > > cluster (while the cluster is idle). The platitude "add more hardware" is  
> > > as off-topic as it is unhelpful.
> > > 
> > > Every node in my cluster died because of OOM (which was expected). I was  
> > > able to bring all of the machines in the cluster back except for one. Note  
> > > that the cluster is completely idle (no queries, no indexing).
> > > 
> > > When I try to bring the last machine back, the JVM crashes about 10  
> > > seconds after restarting. I get the JVM crash log as the OP  
> > > (org.elasticsearch.common. **trove.impl.hash.TObjectHash.**  
> > > insertKey(Ljava/lang/Object;).
> > > 
> > > Any help regarding this crash would be appreciated.
> > > 
> > > Top of crash file:
> > > 
> > > # 
> > > 
> > > # A fatal error has been detected by the Java Runtime Environment:
> > > 
> > > # 
> > > 
> > > # SIGSEGV (0xb) at pc=0x00007fbcccb40be4, pid=14593, tid=140429700744960
> > > 
> > > # 
> > > 
> > > # JRE version: 6.0\_24-b24
> > > 
> > > # Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode linux-amd64 )
> > > 
> > > # Derivative: IcedTea6 1.11.9
> > > 
> > > # Distribution: CentOS release 6.4 (Final), package
> > > 
> > > rhel-1.57.1.11.9.el6\_4-x86\_64
> > > 
> > > # Problematic frame:
> > > 
> > > # J org.elasticsearch.common. **trove.impl.hash.TObjectHash.**
> > > 
> > > insertKey(Ljava/lang/Object;)I
> > > 
> > > # 
> > > 
> > > # If you would like to submit a bug report, please include
> > > 
> > > # instructions how to reproduce the bug and visit:
> > > 
> > > # [http://icedtea.classpath.org/\*\*bugzilla](http://icedtea.classpath.org/**bugzilla)[http://icedtea.classpath.org/bugzilla](http://icedtea.classpath.org/bugzilla)
> > > 
> > > # 
> > > 
> > > ~joe!
> > > 
> > > On Sunday, August 19, 2012 1:59:02 PM UTC-4,  
> > > Andrew[.:at:.][DataFeedFile.com](http://DataFeedFile.com) wrote:
> > > 
> > > > Gentlemen,
> > > > 
> > > > I operate a quite large ES cluster, 3 front-end load-balanced http node  
> > > > only ES, plus  
> > > > 16 data nodes. We have been developing and learning ES for about 1.5  
> > > > years now.
> > > > 
> > > > I just want to share our experiences and some similar pains we have  
> > > > encountered like  
> > > > the disconnects, sudden jvm crashes and even data corruptions.
> > > > 
> > > > I highly recommend tackling the problem by knowing more about your  
> > > > queries, in our cases  
> > > > we fix the problem by modifying our queries.
> > > > 
> > > > We used bigdesk plugin and examine the patterns and possible issues.
> > > > 
> > > > Example of scenario 1:  
> > > > We had a query that loading to much field data cache, again we  
> > > > identified this by watching bigdesk  
> > > > and realized that all the data nodes field data cache were filling up  
> > > > very fast and taking up 70 - 80% of our memory.  
> > > > So that forced us to double check our codes and to fix the query. That  
> > > > solved the problem.
> > > > 
> > > > Example of scenario 2:  
> > > > Again another bad query caused CPU usage to peak at 90+% all the time.  
> > > > Causing Garbage collection to be delayed,  
> > > > or failing and eventually caused race condition and brought the node to  
> > > > its knees.
> > > > 
> > > > My point simply, troubleshoot and fix your query or even restructure  
> > > > your data better for more efficient search.  
> > > > If that does not fix it, consider adding more nodes.
> > > > 
> > > > Regards,
> > > > 
> > > > --Andrew
> > > > 
> > > > On Wednesday, August 8, 2012 4:32:01 AM UTC-5, Alexander Sennhauser  
> > > > wrote:
> > > > 
> > > > > Dear all,
> > > > > 
> > > > > We are seeing unexpected JVM crashes after an Elasticsearch cluster  
> > > > > node is restarted and reincorporate into the cluster. For load balancing  
> > > > > and robustness we have two Elasticsearch front-end servers which are  
> > > > > balancers. In the back-end there are three Elasticsearch worker nodes which  
> > > > > hold all the data. There are 5 shards and the number of replicas per shard  
> > > > > is 2. We notice that running the cluster continuously results in a memory /  
> > > > > load / query time build-up. To battle this we restart the nodes twice per  
> > > > > day.
> > > > > 
> > > > > The restart scenario is the following:
> > > > > 
> > > > > 1. Stop Elasticsearch on one of the worker nodes via  
> > > > > /etc/init.d/elasticsearch stop
> > > > > 2. Wait 120 seconds
> > > > > 3. Start Elasticsearch on the corresponding worker nodes via  
> > > > > /etc/init.d/elasticsearch start
> > > > > 
> > > > > What we see is that worker nodes sometimes suffer from a JVM crash  
> > > > > after the cluster state is updated. From the logs we see the following  
> > > > > messages:
> > > > > 
> > > > > Elasticsearch log file:
> > > > > 
> > > > > [2012-08-08 08:29:30,918][DEBUG][cluster.\*\*service]  
> > > > > [worker2] processing [zen-disco-receive(from master [[front1][D2gTiUeyRbS-  
> > > > > \*\*Gj0rvpI4NQ][inet[/10.28.7.197:\*\*9300]]{data=false, master=true}])]:  
> > > > > done applying updated cluster\_state
> > > > > 
> > > > > Wrapper log file:
> > > > > 
> > > > > STATUS | wrapper | 2012/08/08 08:29:56 | JVM received a signal  
> > > > > UNKNOWN (6).
> > > > > 
> > > > > In the JVM crash log file on the worker nodes we have seen two  
> > > > > different root causes after an incident:
> > > > > 
> > > > > # J org.elasticsearch.common. **trove.impl.hash.TObjectHash.**
> > > > > 
> > > > > insertKey(Ljava/lang/Object;)I
> > > > > 
> > > > > or
> > > > > 
> > > > > # J [org.elasticsearch.common.io](http://org.elasticsearch.common.io). **stream.HandlesStreamOutput.**
> > > > > 
> > > > > writeUTF(Ljava/lang/String;)V
> > > > > 
> > > > > These crashes seem completely unexpected. Is there any measure we can  
> > > > > take to circumvent these JVM crashes? If you need more information on our  
> > > > > setup please do not hesitate to contact us.
> > > > > 
> > > > > Please find the individual component versions below.
> > > > > 
> > > > > Best Regards
> > > > > 
> > > > > - Alex
> > > > > 
> > > > > Our stack:
> > > > > 
> > > > > - elasticsearch-0.19.8
> > > > > 
> > > > > - Java Version:  
> > > > > $ /opt/java/jre1.7.0\_04/bin/java -version  
> > > > > java version "1.7.0\_04"  
> > > > > Java(TM) SE Runtime Environment (build 1.7.0\_04-b20)  
> > > > > Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
> > > > > 
> > > > > - OS Version:  
> > > > > $ uname -a  
> > > > > Linux elastic29 2.6.32-5-xen-amd64 #1 SMP Sun May 6 08:57:29 UTC 2012  
> > > > > x86\_64 GNU/Linux
> > > > > 
> > > > > * * *
> > > > > 
> > > > > alexander sennhauser  
> > > > > software engineer
> > > > > 
> > > > > +41 79 420 4953 mobile  
> > > > > [l...@squirro.com](mailto:l...@squirro.com)  
> > > > > [www.squirro.com](http://www.squirro.com)
> > > > 
> > > > --  
> > > > 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:** ![Joseph\_Smith](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Joseph\_Smith](https://discuss.elastic.co/u/Joseph_Smith)\
**Post date:** [August 11, 2013, 2:53pm UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/14 "2013-08-11T14:53:59Z")

</div>

Very cool. I look forward to trying HPPC ES.

On Sunday, August 11, 2013 7:57:16 AM UTC-4, Jörg Prante wrote:

> I can confirm that certain memory pressure situations of trove4j maps do  
> randomly crash with G1 GC. The trove4j maps are mostly used in the faceting  
> module of ES.
> 
> An approach to lower the risk of SIGSEGV could be increasing the heap -  
> but I'm not sure.
> 
> When I'm done with testing a replacement of ES trove4j with HPPC, there  
> may be also a more viable alternative:  
> [HPPC: High Performance Primitive Collections for Java](http://labs.carrotsearch.com/hppc.html)
> 
> Jörg
> 
> On Sat, Aug 10, 2013 at 11:02 PM, Joseph Smith \<[joseph....@gmail.com](mailto:joseph....@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > After changing to -XX:+UseParNewGC -XX:+UseConcMarkSweepGC, the node  
> > successfully joined the cluster without crashing. This is too bad since  
> > G1GC is much more suited for the RAM allocations we are using.
> > 
> > On Saturday, August 10, 2013 4:50:56 PM UTC-4, Joseph Smith wrote:
> > 
> > > Sorry for the double post. I am also using the G1GC. Other threads hint  
> > > that using G1GC may be related to this issue.
> > > 
> > > On Saturday, August 10, 2013 4:47:47 PM UTC-4, Joseph Smith wrote:
> > > 
> > > > This thread is about a JVM crash that occurs when a node is entering  
> > > > the cluster (while the cluster is idle). The platitude "add more hardware"  
> > > > is as off-topic as it is unhelpful.
> > > > 
> > > > Every node in my cluster died because of OOM (which was expected). I  
> > > > was able to bring all of the machines in the cluster back except for one.  
> > > > Note that the cluster is completely idle (no queries, no indexing).
> > > > 
> > > > When I try to bring the last machine back, the JVM crashes about 10  
> > > > seconds after restarting. I get the JVM crash log as the OP  
> > > > (org.elasticsearch.common. **trove.impl.hash.TObjectHash.**  
> > > > insertKey(Ljava/lang/Object;).
> > > > 
> > > > Any help regarding this crash would be appreciated.
> > > > 
> > > > Top of crash file:
> > > > 
> > > > # 
> > > > 
> > > > # A fatal error has been detected by the Java Runtime Environment:
> > > > 
> > > > # 
> > > > 
> > > > # SIGSEGV (0xb) at pc=0x00007fbcccb40be4, pid=14593,
> > > > 
> > > > tid=140429700744960
> > > > 
> > > > # 
> > > > 
> > > > # JRE version: 6.0\_24-b24
> > > > 
> > > > # Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode linux-amd64 )
> > > > 
> > > > # Derivative: IcedTea6 1.11.9
> > > > 
> > > > # Distribution: CentOS release 6.4 (Final), package
> > > > 
> > > > rhel-1.57.1.11.9.el6\_4-x86\_64
> > > > 
> > > > # Problematic frame:
> > > > 
> > > > # J org.elasticsearch.common. **trove.impl.hash.TObjectHash.**
> > > > 
> > > > insertKey(Ljava/lang/Object;)I
> > > > 
> > > > # 
> > > > 
> > > > # If you would like to submit a bug report, please include
> > > > 
> > > > # instructions how to reproduce the bug and visit:
> > > > 
> > > > # [http://icedtea.classpath.org/\*\*bugzilla](http://icedtea.classpath.org/**bugzilla)[http://icedtea.classpath.org/bugzilla](http://icedtea.classpath.org/bugzilla)
> > > > 
> > > > # 
> > > > 
> > > > ~joe!
> > > > 
> > > > On Sunday, August 19, 2012 1:59:02 PM UTC-4,  
> > > > Andrew[.:at:.][DataFeedFile.com](http://DataFeedFile.com) wrote:
> > > > 
> > > > > Gentlemen,
> > > > > 
> > > > > I operate a quite large ES cluster, 3 front-end load-balanced http  
> > > > > node only ES, plus  
> > > > > 16 data nodes. We have been developing and learning ES for about 1.5  
> > > > > years now.
> > > > > 
> > > > > I just want to share our experiences and some similar pains we have  
> > > > > encountered like  
> > > > > the disconnects, sudden jvm crashes and even data corruptions.
> > > > > 
> > > > > I highly recommend tackling the problem by knowing more about your  
> > > > > queries, in our cases  
> > > > > we fix the problem by modifying our queries.
> > > > > 
> > > > > We used bigdesk plugin and examine the patterns and possible issues.
> > > > > 
> > > > > Example of scenario 1:  
> > > > > We had a query that loading to much field data cache, again we  
> > > > > identified this by watching bigdesk  
> > > > > and realized that all the data nodes field data cache were filling up  
> > > > > very fast and taking up 70 - 80% of our memory.  
> > > > > So that forced us to double check our codes and to fix the query. That  
> > > > > solved the problem.
> > > > > 
> > > > > Example of scenario 2:  
> > > > > Again another bad query caused CPU usage to peak at 90+% all the time.  
> > > > > Causing Garbage collection to be delayed,  
> > > > > or failing and eventually caused race condition and brought the node  
> > > > > to its knees.
> > > > > 
> > > > > My point simply, troubleshoot and fix your query or even restructure  
> > > > > your data better for more efficient search.  
> > > > > If that does not fix it, consider adding more nodes.
> > > > > 
> > > > > Regards,
> > > > > 
> > > > > --Andrew
> > > > > 
> > > > > On Wednesday, August 8, 2012 4:32:01 AM UTC-5, Alexander Sennhauser  
> > > > > wrote:
> > > > > 
> > > > > > Dear all,
> > > > > > 
> > > > > > We are seeing unexpected JVM crashes after an Elasticsearch cluster  
> > > > > > node is restarted and reincorporate into the cluster. For load balancing  
> > > > > > and robustness we have two Elasticsearch front-end servers which are  
> > > > > > balancers. In the back-end there are three Elasticsearch worker nodes which  
> > > > > > hold all the data. There are 5 shards and the number of replicas per shard  
> > > > > > is 2. We notice that running the cluster continuously results in a memory /  
> > > > > > load / query time build-up. To battle this we restart the nodes twice per  
> > > > > > day.
> > > > > > 
> > > > > > The restart scenario is the following:
> > > > > > 
> > > > > > 1. Stop Elasticsearch on one of the worker nodes via  
> > > > > > /etc/init.d/elasticsearch stop
> > > > > > 2. Wait 120 seconds
> > > > > > 3. Start Elasticsearch on the corresponding worker nodes via  
> > > > > > /etc/init.d/elasticsearch start
> > > > > > 
> > > > > > What we see is that worker nodes sometimes suffer from a JVM crash  
> > > > > > after the cluster state is updated. From the logs we see the following  
> > > > > > messages:
> > > > > > 
> > > > > > Elasticsearch log file:
> > > > > > 
> > > > > > [2012-08-08 08:29:30,918][DEBUG][cluster.\*\*service]  
> > > > > > [worker2] processing [zen-disco-receive(from master [[front1][D2gTiUeyRbS-  
> > > > > > \*\*Gj0rvpI4NQ][inet[/10.28.7.197:\*\*9300]]{data=false,  
> > > > > > master=true}])]: done applying updated cluster\_state
> > > > > > 
> > > > > > Wrapper log file:
> > > > > > 
> > > > > > STATUS | wrapper | 2012/08/08 08:29:56 | JVM received a signal  
> > > > > > UNKNOWN (6).
> > > > > > 
> > > > > > In the JVM crash log file on the worker nodes we have seen two  
> > > > > > different root causes after an incident:
> > > > > > 
> > > > > > # J org.elasticsearch.common. **trove.impl.hash.TObjectHash.**
> > > > > > 
> > > > > > insertKey(Ljava/lang/Object;)I
> > > > > > 
> > > > > > or
> > > > > > 
> > > > > > # J [org.elasticsearch.common.io](http://org.elasticsearch.common.io). **stream.HandlesStreamOutput.**
> > > > > > 
> > > > > > writeUTF(Ljava/lang/String;)V
> > > > > > 
> > > > > > These crashes seem completely unexpected. Is there any measure we can  
> > > > > > take to circumvent these JVM crashes? If you need more information on our  
> > > > > > setup please do not hesitate to contact us.
> > > > > > 
> > > > > > Please find the individual component versions below.
> > > > > > 
> > > > > > Best Regards
> > > > > > 
> > > > > > - Alex
> > > > > > 
> > > > > > Our stack:
> > > > > > 
> > > > > > - elasticsearch-0.19.8
> > > > > > 
> > > > > > - Java Version:  
> > > > > > $ /opt/java/jre1.7.0\_04/bin/java -version  
> > > > > > java version "1.7.0\_04"  
> > > > > > Java(TM) SE Runtime Environment (build 1.7.0\_04-b20)  
> > > > > > Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
> > > > > > 
> > > > > > - OS Version:  
> > > > > > $ uname -a  
> > > > > > Linux elastic29 2.6.32-5-xen-amd64 #1 SMP Sun May 6 08:57:29 UTC 2012  
> > > > > > x86\_64 GNU/Linux
> > > > > > 
> > > > > > * * *
> > > > > > 
> > > > > > alexander sennhauser  
> > > > > > software engineer
> > > > > > 
> > > > > > +41 79 420 4953 mobile  
> > > > > > [l...@squirro.com](mailto:l...@squirro.com)  
> > > > > > [www.squirro.com](http://www.squirro.com)
> > > > > 
> > > > > --  
> > > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > > > 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:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [October 4, 2013, 6:15pm UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/15 "2013-10-04T18:15:01Z")

</div>

FYI thanks to Martijn van Groningen, Elasticsearch master migrated from  
trove4j to HPPC

> <https://github.com/elastic/elasticsearch/commit/088e05b36849f0659d3b20cd0376c1a89e2b426b>

which is amazing news for those of us who like to give G1GC a try!

Jörg

--  
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:** [October 4, 2013, 9:44pm UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/16 "2013-10-04T21:44:05Z")

</div>

Cannot believe I am hijacking the same thread twice but ...

I use Trove in my non-elasticsearch code. Is the transition to HPCC  
worthwhile if I have no issues?

I wonder if Martijn has done any extensive benchmarking. I assume he has. I  
have been profiling my cluster's memory settings lately, and I have been  
tempted to switch to G1GC .

Cheers,

Ivan

On Fri, Oct 4, 2013 at 11:15 AM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<  
[joergprante@gmail.com](mailto:joergprante@gmail.com)\> wrote:

> FYI thanks to Martijn van Groningen, Elasticsearch master migrated from  
> trove4j to HPPC
> 
> [Migrate from Trove to Hppc. · elastic/elasticsearch@088e05b · GitHub](https://github.com/elasticsearch/elasticsearch/commit/088e05b36849f0659d3b20cd0376c1a89e2b426b)
> 
> which is amazing news for those of us who like to give G1GC a try!
> 
> Jörg
> 
> --  
> 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:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [October 5, 2013, 10:02am UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/17 "2013-10-05T10:02:39Z")

</div>

Just a bit of background, HPPC was started by Dawid Weiss of Carrotsearch a  
while ago, who is also connected to the Lucene project (for example with  
the finite automata implementation). The task of HPPC was picking up a  
subset of the Colt primitive collections for Mahout  
[http://mahout.apache.org/](http://mahout.apache.org/)

HPPC uses Murmur hashing and direct access to the underlying data  
structures, so for mutable data structures, HPPC is very fast and  
convenient.

Dawid Weiss put up a benchmark fwiw  
[http://mail-archives.apache.org/mod\_mbox/mahout-dev/201103.mbox/\<AANLkTi=gbd-GFxpQu\_86haq16-gikTrwwZ8x4Tp250jH@mail.gmail.com\>](http://mail-archives.apache.org/mod_mbox/mahout-dev/201103.mbox/%3CAANLkTi=gbd-GFxpQu_86haq16-gikTrwwZ8x4Tp250jH@mail.gmail.com%3E)

And the HPPC license is Apache, same as ES license. So beside performance  
aspects, ES will reuse a component of the Lucene software stack which is  
very good.

Jörg

--  
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:** ![simonw\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simonw_2/32/1130_2.png) [@simonw\_2](https://discuss.elastic.co/u/simonw_2)\
**Post date:** [October 6, 2013, 4:42pm UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/18 "2013-10-06T16:42:19Z")

</div>

huge +1 to this comment Joerg! I couldn't have phrased it better!

simon

On Saturday, October 5, 2013 12:02:39 PM UTC+2, Jörg Prante wrote:

> Just a bit of background, HPPC was started by Dawid Weiss of Carrotsearch  
> a while ago, who is also connected to the Lucene project (for example with  
> the finite automata implementation). The task of HPPC was picking up a  
> subset of the Colt primitive collections for Mahout  
> [http://mahout.apache.org/](http://mahout.apache.org/)
> 
> HPPC uses Murmur hashing and direct access to the underlying data  
> structures, so for mutable data structures, HPPC is very fast and  
> convenient.
> 
> Dawid Weiss put up a benchmark fwiw  
> [http://mail-archives.apache.org/mod\_mbox/mahout-dev/201103.mbox/\<AANLkTi=gbd-GFxpQu\_86haq16-gikTrwwZ8x4Tp250jH@mail.gmail.com\>](http://mail-archives.apache.org/mod_mbox/mahout-dev/201103.mbox/%3CAANLkTi=gbd-GFxpQu_86haq16-gikTrwwZ8x4Tp250jH@mail.gmail.com%3E)
> 
> And the HPPC license is Apache, same as ES license. So beside performance  
> aspects, ES will reuse a component of the Lucene software stack which is  
> very good.
> 
> Jörg

--  
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:** [October 8, 2013, 5:11pm UTC](https://discuss.elastic.co/t/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/19 "2013-10-08T17:11:11Z")

</div>

Yup, thanks for the comment. I did some researching before you replied and  
found the same benchmarks, including these in an interactive format:

[http://dawidweiss123.appspot.com/run/dawid.weiss@gmail.com/com.carrotsearch.hppc.caliper.BenchmarkPut](http://dawidweiss123.appspot.com/run/dawid.weiss@gmail.com/com.carrotsearch.hppc.caliper.BenchmarkPut)  
[http://dawidweiss123.appspot.com/run/dawid.weiss@gmail.com/com.carrotsearch.hppc.caliper.BenchmarkGetWithRemoved](http://dawidweiss123.appspot.com/run/dawid.weiss@gmail.com/com.carrotsearch.hppc.caliper.BenchmarkGetWithRemoved)  
[http://dawidweiss123.appspot.com/run/dawid.weiss@gmail.com/com.carrotsearch.hppc.caliper.BenchmarkBigramCounting](http://dawidweiss123.appspot.com/run/dawid.weiss@gmail.com/com.carrotsearch.hppc.caliper.BenchmarkBigramCounting)

In the past several years, I must have used every collection library  
available. 🙂 In terms of ES, it would be great to finally test with G1GC.  
For my code, don't know if I have time to test another lib!

Cheers,

Ivan

On Sun, Oct 6, 2013 at 9:42 AM, simonw [simon.willnauer@elasticsearch.com](mailto:simon.willnauer@elasticsearch.com)wrote:

> huge +1 to this comment Joerg! I couldn't have phrased it better!
> 
> simon
> 
> On Saturday, October 5, 2013 12:02:39 PM UTC+2, Jörg Prante wrote:
> 
> > Just a bit of background, HPPC was started by Dawid Weiss of Carrotsearch  
> > a while ago, who is also connected to the Lucene project (for example with  
> > the finite automata implementation). The task of HPPC was picking up a  
> > subset of the Colt primitive collections for Mahout  
> > [http://mahout.apache.org/](http://mahout.apache.org/)
> > 
> > HPPC uses Murmur hashing and direct access to the underlying data  
> > structures, so for mutable data structures, HPPC is very fast and  
> > convenient.
> > 
> > Dawid Weiss put up a benchmark fwiw [http://mail-archives](http://mail-archives).\*\*  
> > [apache.org/mod\_mbox/mahout-](http://apache.org/mod_mbox/mahout-) **dev/201103.mbox/%3CAANLkTi=**  
> > gbd-GFxpQu\_86haq16-\*\*gikTrwwZ8x4Tp250jH@mail.gmail.\*\*com%3E[http://mail-archives.apache.org/mod\_mbox/mahout-dev/201103.mbox/\<AANLkTi=gbd-GFxpQu\_86haq16-gikTrwwZ8x4Tp250jH@mail.gmail.com\>](http://mail-archives.apache.org/mod_mbox/mahout-dev/201103.mbox/%3CAANLkTi=gbd-GFxpQu_86haq16-gikTrwwZ8x4Tp250jH@mail.gmail.com%3E)
> > 
> > And the HPPC license is Apache, same as ES license. So beside performance  
> > aspects, ES will reuse a component of the Lucene software stack which is  
> > very good.
> > 
> > Jörg
> > 
> > --  
> > 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/jvm-crashes-after-reincorporating-nodes-into-cluster/8667/20 "2017-07-06T02:13:18Z")

</div>


