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.

Memory leak in the latest netty version when executing tests

See original GitHub issue

I just updated to the latest netty version (4.1.26.Final, boring.ssl 2.0.12.Final) and my test run had crashed due to OutOfMemoryError. I have a special test set with 200 tests. Every test starts the server and at the end of test stops it. Before tests were executed just fine. With the latest version on 100-th test, my RAM of 32 GBs is out.

I haven’t dig into it yet, just let you know. Probably this is related to recent “finalizer” changes and object cleaner.

java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)

Prev version was:

4.1.25.Final boring.ssl 2.0.8.Final

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
slandellecommented, Jul 11, 2018

Probably issue is because AsyncHttpClient uses prev. netty version.

I released AHC 2.5.1 w/ Netty 4.1.26 earlier today 😃

0reactions
doom369commented, Jul 11, 2018

@normanmaurer thank you too! Will do digging before posting next time 😃.

Read more comments on GitHub >

github_iconTop Results From Across the Web

karate-netty memory leaks with 0.9.6 - Stack Overflow
We're finding that under moderate load, karate-netty really likes to leak memory. As we're running load tests on a service that connects to ......
Read more >
A Netty ByteBuf Memory Leak Story and the Lessons Learned
We were chasing a memory leak while refactoring our log receiver. After a major refactoring, we noticed a gradual decrease of free memory...
Read more >
How to Identify and Troubleshoot a Netty Memory Leak - DZone
In this tutorial, we explore how to identify and troubleshoot a Netty memory leak, looking at example code and important takeaways.
Read more >
Memory leaks when trying to get Netty server publish ...
I have a very bare bones version of netty and kafka using netty4 and kafka-clients_0.10.1.1. I am hitting memory leak issues when I...
Read more >
Netty Cache Thread Memory Issues
When running spring-boot using netty (we ran: 4.1.69), and async code, your server might run into a memory issue after running for a...
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