question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Increased memory footprint in 4.1.43.Final

See original GitHub issue

Expected 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

Screen Shot

4.1.43.Final

Heap Usage: 241 MB Non-Heap Usage: 41 MB

Screen Shot

Note: While this is listed as “byte[]”, it’s just more PoolChunks (except for the Stack Local listed above):

Screen Shot

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

  1. git checkout netty-4.1.42.Final
  2. Benchmark memory usage DURING execution of io.netty.testsuite.transport.socket.SocketSslEchoTest#testSslEcho()
  3. git checkout netty-4.1.43.Final
  4. Benchmark memory usage DURING execution of io.netty.testsuite.transport.socket.SocketSslEchoTest#testSslEcho()
  5. 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:open
  • Created 4 years ago
  • Reactions:4
  • Comments:34 (26 by maintainers)

github_iconTop GitHub Comments

5reactions
normanmaurercommented, Dec 2, 2020

Let me have a look… Sorry I totally lost track of this one

4reactions
raghavb1979commented, Apr 30, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[#QPIDJMS-543] Memory usage has increased significantly ...
Due to which, the memory usage has increased. For more details - please go through this issue: Increased memory footprint in 4.1.43.Final ·...
Read more >
Netty 4.1.43.Final released - Netty.news
I am happy to announce the release of netty 4.1.43.Final. ... HTTP/2: Prevent memory leak when trying to create new streams on a...
Read more >
io.netty.buffer.PoolChunk consuming a lot of memory and is a ...
I've gone through the issue: Increased memory footprint in 4.1.43.Final · Issue #9768 · netty/netty (github.com)
Read more >
Problem: monitoring switch 5500G with net-snmp
Which OID I use to monitor the memory usage this switch? # snmpget-c public-v2c 10.65.3.10 1.3.6.1.4.1.43.??????
Read more >
Memory Accumulated In Netty Poolchunk - ADocLib
Memory usage should not largely increase between Netty versions. Screen Shot. 4.1.43.Final. Heap Usage: 241 MB Non-Heap Usage: 41 MB.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found