[External] : Re: jstack, profilers and other tools

Ron Pressler ron.pressler at oracle.com
Sun Jul 24 19:18:43 UTC 2022



> On 24 Jul 2022, at 19:16, Alex Otenko <oleksandr.otenko at gmail.com> wrote:
> 
> Correct. But if you control how many connections you are reading, then you control how much memory you spend on that. Hence reading 100 connections 10kb at a time won't pin more than 1mb. But if you don't have control over how many connections you are reading from, which is the case with sync API, then you might be pinning 100mb before one request becomes available.


Sync APIs give you exactly the same control as async APIs over anything.

— Ron


More information about the loom-dev mailing list