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.

reactor-netty 0.7.7 leaks ClassLoader

See original GitHub issue

Hi @mjiderhamn and thanks for all the work on this library!

I was just testing the newly released Spring Boot Admin 2.0 with our tomcat-classloader-leak-test and sadly it fails. Analyzing the heap dump gives me this picture:

2018-05-29 14_19_58-eclipse memory analyzer

I set a breakpoint in DefaultLoopResources$EventLoop#L238 and saw a huge stacktrace ending in HttpClient#138 where HttpResources.get() is called but never cleaned up after (as far as I can see) even though HttpResources is reactor.coreDisposable.

Is there something that this library can do about this? I will try opening an issue with reactor-netty as well.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
mjiderhamncommented, Dec 15, 2018

I merged our proposed changes (better late than never - right?). Hope there hasn’t been additional changes to reactor-netty since then.

0reactions
ArloLcommented, Jul 3, 2018

The reaction was that the HttpResources should be managed on your own if you want them to shutdown.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Loading a KeyStore in Java 7 leaks the Classloader
The Classloader does not leak. When deploying a bunch of empty applications and PermGen reaches a certain threshold Tomcat's Find Leaks stops reporting...
Read more >
Reactor Netty Reference Guide
This section provides a brief overview of Reactor Netty reference documentation. You do not need to read this guide in a linear fashion....
Read more >
ClassLoader leaks | new Blog("Mattias Jiderhamn")
During September 2016 I'll be speaking about ClassLoader leaks on JavaZone, JDK.IO and JavaOne. For those that listened to my talk and want ......
Read more >
Path to Leaking Application Class Loaders - IBM
List all leaked application classloaders with path to GC roots. An application class loader leak occurs when applications are restarted but their class...
Read more >
How Do ClassLoader Leaks Happen? - JRebel
In this Reloading Java Classes article, we discuss inevitable and costly classloader leaks. Learn more about why they happen here.
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