# Is there any plan supporting Java 21 and virtual thread?

**URL:** <https://community.dynatrace.com/t/is-there-any-plan-supporting-java-21-and-virtual-thread/41285>\
**Category:** Dynatrace Managed\
**Tags:** dynatrace-managed, java\
**Created:** [August 22, 2023, 8:48am UTC](https://community.dynatrace.com/t/is-there-any-plan-supporting-java-21-and-virtual-thread/41285 "2023-08-22T08:48:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![giger85](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@giger85](https://community.dynatrace.com/u/giger85)\
**Post date:** [August 22, 2023, 8:48am UTC](https://community.dynatrace.com/t/is-there-any-plan-supporting-java-21-and-virtual-thread/41285/1 "2023-08-22T08:48:09Z")

</div>

Hi,  
I am testing changing my application from Java 17 to Java 21 by using Virtual Thread.  
Java 21 will be LTS, and Virtual Thread (JEP-444) is finalized at Java 21.

Since our production applications use Dynatrace Managed, need to be checked the support plan of the above technologies.

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [August 22, 2023, 10:36am UTC](https://community.dynatrace.com/t/is-there-any-plan-supporting-java-21-and-virtual-thread/41285/2 "2023-08-22T10:36:01Z")

</div>

We plan to support Java 21 (w/out virtual threads) by October 2023. Hopefully sooner 😉

Update: Java 21 is already supported by OneAgent - see:&nbsp;[Support for JVMs — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/jvms#oracle-hotspot-vm)

---

<div class="post-metadata">

**Author:** ![giger85](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@giger85](https://community.dynatrace.com/u/giger85)\
**Post date:** [August 23, 2023, 12:56am UTC](https://community.dynatrace.com/t/is-there-any-plan-supporting-java-21-and-virtual-thread/41285/3 "2023-08-23T00:56:55Z")

</div>

Wow, your response is very helpful for me.  
Thank you.

---

<div class="post-metadata">

**Author:** ![Michael\_M](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@Michael\_M](https://community.dynatrace.com/u/Michael_M)\
**Post date:** [November 14, 2023, 9:49am UTC](https://community.dynatrace.com/t/is-there-any-plan-supporting-java-21-and-virtual-thread/41285/4 "2023-11-14T09:49:49Z")

</div>

Hi [@Radoslaw\_Szulgo](https://community.dynatrace.com/user/25371) in the support matrix of Dynatrace is Java 21 listed but I couldn’t find any infos about the support or not support of virtual threads. From the documentation someone could assume, that the are supported. Are they now?

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 14, 2023, 9:59am UTC](https://community.dynatrace.com/t/is-there-any-plan-supporting-java-21-and-virtual-thread/41285/5 "2023-11-14T09:59:08Z")

</div>

Hi&nbsp;[@Michael\_M](https://community.dynatrace.com/user/21221)

Virtual threads should be supported.

However, it is worth it as [@Radoslaw\_Szulgo](https://community.dynatrace.com/user/25371)&nbsp; will confirm.

Radek

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [November 14, 2023, 12:38pm UTC](https://community.dynatrace.com/t/is-there-any-plan-supporting-java-21-and-virtual-thread/41285/6 "2023-11-14T12:38:07Z")

</div>

My previous comment relates to OneAgent only.

If you ask about JRE 21 in Dynatrace Managed deployment - this will be done next year, hopefully. We’re now working on JRE 17.

---

<div class="post-metadata">

**Author:** ![Michael\_M](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@Michael\_M](https://community.dynatrace.com/u/Michael_M)\
**Post date:** [November 14, 2023, 2:13pm UTC](https://community.dynatrace.com/t/is-there-any-plan-supporting-java-21-and-virtual-thread/41285/7 "2023-11-14T14:13:36Z")

</div>

[@Radoslaw\_Szulgo](https://community.dynatrace.com/user/25371)thanks for your answer.

I was also talking about the OneAgent side or more the analysing side.  
Is OneAgent currently able to see/analyze virutal threads? For me this is not clear from the documentation and in your comment you stated that virutal threads are not a part of this update.
