Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak in ApnsChannelPool #1094

Closed
Sycamore-M opened this issue Dec 27, 2024 · 2 comments
Closed

Memory leak in ApnsChannelPool #1094

Sycamore-M opened this issue Dec 27, 2024 · 2 comments

Comments

@Sycamore-M
Copy link

Hi,

We have an offline push service. After running for a few months, an out of memory issue occurred.

By analyzing memory snapshots, it was found that there are hundreds of thousands of DefaultPromise stacked in ApnsChannelPool.pendingAcquisitionPromises

We had to restart the service regularly before this issue was fixed.

pushy:0.15.4
jdk:11.0.25
netty:4.1.101.Final

@Sycamore-M
Copy link
Author

I have found that when the SSL certificate expires, ApnsChannelPool.pendingAcquisionPromises will continue to expand.

@jchambers
Copy link
Owner

We discussed this a bit more in #1095. I think we agree that this isn't a memory "leak" per se (all of the memory is still accounted for and recoverable), and this is a thing that can happen with a combination of expired certificates and loose control. Since everything is working as expected within Pushy and since there are external mitigations for this problem (check certificate expiration, limit pending sends), I think it makes sense to close this for now.

Thank you for reporting the issue and for proposing a solution, though!

@jchambers jchambers closed this as not planned Won't fix, can't repro, duplicate, stale Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants