Use case : The Sping boot is calling the AWS Elastic server for the searching for an object through RestHighLevelClient
Issue : On the client-side we see Java Thread Parked from 1 to 6 secs
How do I find out -
- What is causing the thread park on the client-side of AWS elastic search?
- Which Elastic search thread picked up this request and why it is parked for too long?
Stacktrace on the client side :
sun.misc.Unsafe.park(boolean, long) java.util.concurrent.locks.LockSupport.parkNanos(Object, long) line: 226 java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(int, long) line: 1033 java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(int, long) line: 1326 java.util.concurrent.CountDownLatch.await(long, TimeUnit) line: 282 org.elasticsearch.client.RestClient$SyncResponseListener.get() line: 698 org.elasticsearch.client.RestClient.performRequest(String, String, Map, HttpEntity, HttpAsyncResponseConsumerFactory, Header) line: 224 org.elasticsearch.client.RestClient.InternalperformRequest(String, String, Map, HttpEntity, Header) line: 196

...