GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Another `GlobalEventExecutor` classloader related memory leak · Issue #17128 · netty/netty

Another GlobalEventExecutor classloader related memory leak #17128

New issue
Copy link
New issue
Copy link
Closed
#17140
Closed
Another GlobalEventExecutor classloader related memory leak#17128
#17140
Copy link

Description

@cardamon
cardamon
opened on Jul 23, 2026
Issue body actions

With regards to this line:

netty/common/src/main/java/io/netty/util/concurrent/GlobalEventExecutor.java

Line 91 in 3703d79

UnsupportedOperationException terminationFailure = new UnsupportedOperationException();

combined with

netty/common/src/main/java/io/netty/util/concurrent/GlobalEventExecutor.java

Line 59 in 3703d79

public static final GlobalEventExecutor INSTANCE = new GlobalEventExecutor();


In #14622 , a classloader related memory leak was fixed. I think however, that this fix may introduce another, different classloader related memory leak.

Example heap dump:

Image

The issue may be one that is similar to:

  • Classloader leak with Throwable in static fields reactor/reactor-core#1872
  • ClassLoader leak with Jetty and Karaf - static instances of java.lang.Throwable jetty/jetty.project#868

I suspect that something like this happens: GlobalEventExecutor is loaded (in our case) by a shared global class loader (AppClassLoader), but the backtrace field in UnsupportedOperationException is lazily initialized. So it gets filled with stack trace elements that are created by the webapp, and these stack trace elements have a strong reference to the application specific WebAppClassLoader...

(this causes all classes of the webapp to become immortal/undeployable)

Activity

  1. chrisvest
    closed this as completedin #17140on Aug 2, 2026
  2. pull
    added a commit that references this issue on Aug 3, 2026

    Avoid classloader leak via GlobalEventExecutor terminationFuture fail…

    This issue will close once commit cee0005 is merged into the '4.2' branch.
    cee0005
  3. normanmaurer
    added 2 commits that reference this issue on Aug 3, 2026

    Auto-port 4.1: Avoid classloader leak via GlobalEventExecutor termina…

    This issue will close once commit 287dd71 is merged into the '4.2' branch.
    287dd71

    Auto-port 5.0: Avoid classloader leak via GlobalEventExecutor termina…

    This issue will close once commit 998b446 is merged into the '4.2' branch.
    998b446
  4. lltopk
    added a commit that references this issue on Oct 24, 2026

    Auto-port 4.1: Avoid classloader leak via GlobalEventExecutor termina…

    This issue will close once commit 76faf2c is merged into the '4.2' branch.
    76faf2c
  5. normanmaurer
    added 7 commits that reference this issue on Nov 12, 2026

    Avoid classloader leak via the shared TransferEncodingNotAllowedExcep…

    742a53e

    Avoid classloader leak via the QPACK stream inactive exceptions (#18343)

    77e1af2

    Avoid classloader leak via ImmediateEventExecutor terminationFuture f…

    faa14e3

    Auto-port 4.1: Avoid classloader leak via the shared TransferEncoding…

    cbc3d67

    Auto-port 4.1: Avoid classloader leak via ImmediateEventExecutor term…

    92a4c6d

    Auto-port 5.0: Avoid classloader leak via ImmediateEventExecutor term…

    b4d5d92

    Auto-port 5.0: Avoid classloader leak via the shared TransferEncoding…

    32b4785
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.