Replies: 2 comments 5 replies
-
@swasti7 I think you might want to ask on the AHC group. One thing you could also check is if you might block the EventLoop |
Beta Was this translation helpful? Give feedback.
3 replies
-
If you can reproduce it, why not trying to profile it? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using AHC client built on top of Netty 4. Occasionally 1-20% of the time, latency increases by 100-500ms for a 40ms endpoint. I am 100% sure that response time of endpoint itself has not increased but this is a characteristic of Netty itself.
This is how I am running it. I create a client on main thread at the start (one client only) and test HTTPs endpoint every 10 seconds i.e every 10 second there is a single endpoint which Netty with a thread pool of 1 thread asynchronously process.
Main thread sleeps for 10 seconds and submit another https request to the client.
For a 40ms endpoints, 80% of the time I see expected time to first byte i.e 40-50ms.
Rest of the time, It varies from 100ms - 700ms.
Any idea what could be happening? Also the first request after the client is created has very high latency. I initially assumed first request is expected to have high latency. But it keeps coming back intermittently couple of times.
Beta Was this translation helpful? Give feedback.
All reactions