# Elasticsearch force parallel collector by default

**URL:** <https://discuss.elastic.co/t/elasticsearch-force-parallel-collector-by-default/276476>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [June 21, 2021, 4:48am UTC](https://discuss.elastic.co/t/elasticsearch-force-parallel-collector-by-default/276476 "2021-06-21T04:48:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RAM\_NATHAN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_nathan/32/50393_2.png) [@RAM\_NATHAN](https://discuss.elastic.co/u/RAM_NATHAN)\
**Post date:** [June 21, 2021, 4:48am UTC](https://discuss.elastic.co/t/elasticsearch-force-parallel-collector-by-default/276476/1 "2021-06-21T04:48:39Z")

</div>

Im getting below error while adding nodes to cluster. Im using Elasticsearch 7.10.2 . I was not getting this error in 7.4.2

[1] bootstrap checks failed  
[1]: JVM is using the serial collector but should not be for the best performance; either it's the default for the VM [OpenJDK 64-Bit Server VM] or -XX:+UseSerialGC was explicitly specified

After reading this [Use serial collector check | Elasticsearch Guide [7.13] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/_use_serial_collector_check.html), I got the issue. But this issue is occurring only in docker environment(may be due to OS). So Im thinking to enable parallel collector by default in elasticsearch jvm.options by adding

-XX:+UseParallelGC

This seems working. But this fix seems reasonable?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 21, 2021, 5:14am UTC](https://discuss.elastic.co/t/elasticsearch-force-parallel-collector-by-default/276476/2 "2021-06-21T05:14:01Z")

</div>

What docker container are you using?

---

<div class="post-metadata">

**Author:** ![RAM\_NATHAN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_nathan/32/50393_2.png) [@RAM\_NATHAN](https://discuss.elastic.co/u/RAM_NATHAN)\
**Post date:** [June 21, 2021, 5:25am UTC](https://discuss.elastic.co/t/elasticsearch-force-parallel-collector-by-default/276476/3 "2021-06-21T05:25:42Z")

</div>

> [@RAM\_NATHAN](#):
>
> -XX:+UseParallelGC

We are embedding elasticsearch into our product container

---

<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 19, 2021, 5:26am UTC](https://discuss.elastic.co/t/elasticsearch-force-parallel-collector-by-default/276476/4 "2021-07-19T05:26:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
