You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
spericas
changed the title
6X RT degradation observed on an API using chunked encoding, on helidon 4.X vs helidon 3.X
Improvements observed with larger buffer sizes and chunked encoding
Aug 21, 2024
We observed 6X response time degradation on an API that fetches >7KB response with chunked encoding.
Problem Description
On H3, there was no setting specific to byte buffer and it was left at the default value (https://github.com/netty/netty/blob/netty-4.1.108.Final/transport/src/main/java/io/netty/channel/socket/nio/NioSocketChannel.java )
On H4, there is a default of 512B which is causing the performance degradation.
In the JFR we could see that the number of Socket Writes with H4 are 2 times more than H3, even when throughput of H3 is 4 times more than H4.
When we increased this value to 8KB (-Dserver.write-buffer-size=8192), performance is at par with H3.
H3 : RT - 4.02ms
H4 (Default) : RT - 24ms
H4 with write-buffer-size - 1KB : RT - 5.37ms
H4 with write-buffer-size - 8KB : RT - 4.23ms
Steps to reproduce
Any response that has size greater than 7KB and "Transfer-Encoding: chunked" , would reproduce this issue.
The text was updated successfully, but these errors were encountered: