<div dir="ltr"><div dir="ltr">Thank you for the clarification. </div><div dir="ltr"><div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Regards;<br>Anindya Bandopadhyay<br><a href="http://www.linkedin.com/in/anindyabandopadhyay" target="_blank"><img width="96" height="96" src="https://ci3.googleusercontent.com/mail-sig/AIorK4wc7vkRjiByaujRe_sUyynf3O1RAXCYCZ_SVWU_iA6uy5G3XlVt5h7gI-RWITqVnl9eiHFMQgY"></a><br></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 25 Aug 2022 at 22:19, Alan Bateman <<a href="mailto:Alan.Bateman@oracle.com">Alan.Bateman@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br>
<br>
On 25/08/2022 16:54, Ron Pressler wrote:<br>
> Hi.<br>
><br>
> The stack representation for virtual threads is currently not as <br>
> compact as we’d like it to be, and we’re now working on reducing it, <br>
> possibly drastically. So yes, it is possible that the application will <br>
> require more heap space, but whether that’s the case, or by how much <br>
> is very much application-dependent, so you’ll need to track the heap <br>
> usage and allocate heap space appropriately.<br>
><br>
> Virtual threads are lightweight in the sense that they consume much <br>
> less precious resources than platform threads, and that is why you can <br>
> have many more of them than platform threads. The resource consumption <br>
> by platform threads is much more constrained than for virtual threads, <br>
> even in their current state. We expect the heap consumption to be <br>
> reduced in a future version.<br>
><br>
Also just to add that the jconsole screen shots are only showing the <br>
heap memory so you can't see the memory reserved/committed for the 3000+ <br>
platform threads that running in the VM corresponding to the left screen <br>
shot.<br>
<br>
-Alan<br>
</blockquote></div></div>