# Upgrade from OpenJDK 8 to OpenJDk 11 for elasticsearch Docker

**URL:** <https://discuss.elastic.co/t/upgrade-from-openjdk-8-to-openjdk-11-for-elasticsearch-docker/200960>\
**Category:** Elasticsearch\
**Created:** [September 25, 2019, 5:51am UTC](https://discuss.elastic.co/t/upgrade-from-openjdk-8-to-openjdk-11-for-elasticsearch-docker/200960 "2019-09-25T05:51:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Konathala\_Naveen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/konathala_naveen/32/54398_2.png) [@Konathala\_Naveen](https://discuss.elastic.co/u/Konathala_Naveen)\
**Post date:** [September 25, 2019, 5:51am UTC](https://discuss.elastic.co/t/upgrade-from-openjdk-8-to-openjdk-11-for-elasticsearch-docker/200960/1 "2019-09-25T05:51:31Z")

</div>

We want to upgrade from OpenJDk 8 to OpenJDk 11 for elasticsearch Docker.  
And we are using the Adopt openJdk 8 .  
As per this link [https://www.elastic.co/guide/en/elasticsearch/reference/current/setup.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/setup.html) .  
It is recommended to use the bundled openJDk.So we though of using it.But bundled jdk is openjdk 12.Which non-LTS.

And in the counter part "Java 9, Java 10, and Java 12 are short term releases. We advise against using them unless you're prepared to handle the fast release cadence this imposes." in the below link [https://www.elastic.co/support/matrix#matrix\_jvm](https://www.elastic.co/support/matrix#matrix_jvm)

So my question here is  
1.Can i use the bundled jdk 12 which is bundled with elasticsearch 7.3.0  
2.Or if i want to use the Open JDK. Can i use the adopt JDK 11 ,which is not mentioned in the compatibility matrix?

---

<div class="post-metadata">

**Author:** ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)\
**Post date:** [October 4, 2019, 3:42am UTC](https://discuss.elastic.co/t/upgrade-from-openjdk-8-to-openjdk-11-for-elasticsearch-docker/200960/2 "2019-10-04T03:42:19Z")

</div>

Using the bundled jdk is our recommendation. We upgrade it as new versions are released (and tested) with Elasticsearch, so by using this you get better jdk performance and bugfixes with each upgrade of Elasticsearch.

Adopt openjdk support has just been added in the recent 7.4.0 release, where it is now the bundled jdk. However, we have only tested starting with that version, which uses adoptopenjdk 13.

---

<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:** [November 1, 2019, 3:42am UTC](https://discuss.elastic.co/t/upgrade-from-openjdk-8-to-openjdk-11-for-elasticsearch-docker/200960/3 "2019-11-01T03:42:19Z")

</div>

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