Skip to content

Conversation

@svendiedrichsen
Copy link
Contributor

Description

using internal static classes to wrap SentinelInputStream and URLEntry states to allow cleaning them if their instances are GC'd

Briefly mentioned in and aiming to fix for #7849

Testing

Testing Performed

PR pipeline

Notes for Reviewers

see description

sdiedrichsen added 2 commits January 30, 2026 00:34
…y states to allow cleaning them if their instances are GC'd
@svendiedrichsen
Copy link
Contributor Author

Broken build seems unrelated.

@kalinchan kalinchan added the PR: CLA CLA submitted on PR by the contributor label Jan 30, 2026
@svendiedrichsen
Copy link
Contributor Author

svendiedrichsen commented Feb 11, 2026

To use this WAR file. Please deploy and observe memory dumps for instances of SentinelInputStream.
In Payara v7.2026.1 the number of entries does not drop below 80. With the patched Payara of this PR
the number stays 0 all the time.

You can curl this application under /test/resource to create a response, but it does not make a difference.

The application uses a REST resource and a stateless EJB to load a static text file by using Classloader.getResourceAsStream, returns its content and does not close the stream.

ASUrlClassloaderLeak-1.0-SNAPSHOT.war.zip

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

Labels

PR: CLA CLA submitted on PR by the contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants