<div dir="ltr"><div>Hello</div><div><br></div><div>I have always assumed that JFR thread sampler will ignore threads that are blocked on socket read, but the description on <a href="https://openjdk.org/jeps/509">https://openjdk.org/jeps/509</a> states that this is exactly the problem that the JEP 509 aims to resolve. </div><div><br></div><div>So my question is specifically about JfrSamplerThread::sample_java_thread/sample_native_thread. These explicitly skip sampling unless the thread state is _thread_in_Java/ _thread_in_native. Which state is a thread in while blocked on socket read? I assumed it was _thread_blocked.</div><div><br></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Milan Mimica<br><br></div></div></div></div></div></div>