New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Both Send-Q of client-side and Recv-Q of server-side are in hang state #8712
Comments
@NiteshKant Could you give me some suggestions ? Thank you very much!! |
@normanmaurer Could you give me some suggestions ? Thank you very much!!! |
@trustin Could you give me some suggestions? Please >.< Thank you very much!!! |
Please upgrade to latest version and check again. I suspect you need to trigger a flush() again |
@normanmaurer Thanks! I have got reasons about the two main questions that mentioned in this issue
Indeed, it is due to 4.0.21, the phenomenon just happen in 4.0.21 and never happen again when server upgrade to 4.0.24.
Because the default pool direct memory(64k) in ByteBufUtil, #7704 have updated to 0. |
The problem is similar with 6525, but it happens occasionally. I don't know why the server-side Recv-Q in hang state, I checked netty io threads, all are RUNNABLE state.
Expected behavior
No direct memory leak ; Send-Q and Recv-Q not in hang state.
Actual behavior
client-side : QR=0 QS=17376
server-side: QR=96086 QS=0
QS and QR are hang state no change.
there are 4 channels between one client-side and server-side, just one channel is unwritable. But the request of the other 3 normal channels will cause direct memory risk quickly, when we closed the problem channel then the direct memory stop rise but still no release.
WRITE_BUFFER_HIGH_WATER_MARK config is 64 * 1024
QPS < 100, QPM < 5000
Both client and server side use EpollEventLoopGroup
Steps to reproduce
Recv-Q of server-side is backlog, then Send-Q of client-side is backlog and the direct memory is leak. But don't know how the Recv-Q backlog happen, QPS below 100.
My main questions is:
Minimal yet complete reproducer code (or URL to code)
Netty version
client-side: 4.0.27
server-side: 4.0.21
JVM version (e.g.
java -version
)both client-side and server-side:
java version "1.7.0_76"
Java(TM) SE Runtime Environment (build 1.7.0_76-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.76-b04, mixed mode)
OS version (e.g.
uname -a
)both client-side and server-side:
Linux *** 2.6.32-431.20.3.el6.mt20161028.x86_64 #1 SMP Fri Oct 28 17:50:35 CST 2016 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: