Increased memory footprint in 4.1.43.Final
See original GitHub issueExpected behavior
Memory usage should not largely increase between Netty versions.
Actual behavior
Memory usage increased in user application tests, and io.netty.testsuite.transport.socket.SocketSslEchoTest#testSslEcho()
netty test.
4.1.42.Final
Heap Usage: 59 MB Non-Heap Usage: 41 MB
4.1.43.Final
Heap Usage: 241 MB Non-Heap Usage: 41 MB
Note: While this is listed as “byte[]”, it’s just more PoolChunks (except for the Stack Local listed above):
Initial Analysis
I’m still working to identify the source of this difference between the two versions. I’ll update this issue as I find more information.
Steps to reproduce
git checkout netty-4.1.42.Final
- Benchmark memory usage DURING execution of io.netty.testsuite.transport.socket.SocketSslEchoTest#testSslEcho()
git checkout netty-4.1.43.Final
- Benchmark memory usage DURING execution of io.netty.testsuite.transport.socket.SocketSslEchoTest#testSslEcho()
- Compare memory usage
Minimal yet complete reproducer code (or URL to code)
SocketSslEchoTest#testSslEcho()
Netty version
4.1.43.Final
JVM version (e.g. java -version
)
openjdk version “1.8.0_232” OpenJDK Runtime Environment Corretto-8.232.09.1 (build 1.8.0_232-b09) OpenJDK 64-Bit Server VM Corretto-8.232.09.1 (build 25.232-b09, mixed mode)
OS version (e.g. uname -a
)
Darwin 38f9d3cc3b07.ant.amazon.com 18.7.0 Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64 x86_64
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:34 (26 by maintainers)
Top GitHub Comments
Let me have a look… Sorry I totally lost track of this one
Hello I am also facing a similar issue when took a heap dump and checked in the eclipse MAT it is showing the leak as io.netty.buffer.PoolChunk ( 54.28%) occupied. Is there any way to trace this problem? Does this problem will get solved by defining -Dio.netty.allocator.numHeapArenas=0? Please let me know.