-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 when polling ssl endpoint #109600
Comments
cc: @rzikm |
This makes the capture not much useful as the two TLS stack implementations are very different underneath. We need captures from as close a configuration as you can get. The captures also seem all to be TLS resumes, can you make sure that the first (non-resume) exchange is captured as well? |
I will be on vacation for a week but pick this up again when I'm back
…On Fri, Nov 8, 2024, 11:44 PM dotnet-policy-service[bot] < ***@***.***> wrote:
This issue has been marked needs-author-action and may be missing some
important information.
—
Reply to this email directly, view it on GitHub
<#109600 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKVVYKHEAN4QKPJ5RIXOLTZ7SW4NAVCNFSM6AAAAABRKDKXRWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRUGY3TAOBZGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
If As @rzikm mentioned the implementations are very different on each platform. You can try to run it on WSL2 @CoenraadS to see if this is truly ARM specific. I may be able to give it shot next week on my Raspberry. |
@wfurt @rzikm I updated the original issue with with a pcap capture from the arm device. If it is not a bug, then I suppose the discussion of what is an appropriate cache size for a small device is more nuanced, I'm ok to close it in that case, my only remark is that I would expected on a device with e.g. 512 ram, (and less actually available), the cache default (unsure what it is) is probably too large. I noticed in the pcap, that there are many Some measurements (manually looking at htop used memory (app running is code in the OP))
(I didn't have time to run a longer test, but was just confirming the growth happens quite rapidly, the app on startup uses ~36MB, so within an hour it has basically doubled, all while only polling a single endpoint) |
I had a .NET-based reverse proxy which was leaking 100% after upgrading to version 9.0. The server was reaching 100% RAM usage in the span of a few hours, this very same program wasn't having any issue on version 8. |
@milen-denev does setting So far I did not have time to dig deeper into the issue, but having more data can be only beneficial. |
|
This issue is a follow up of #108741
Unmanaged memory growth occurs when polling a single ssl endpoint.
It occurs on an internal device which I do not have permission to share on a public network. I tested against other public websites, but could not reproduce, I did however capture a pcap. The leak occurs on an arm32 linux system. About 10MB an hour with 1s poll time.
Setting
DOTNET_SYSTEM_NET_SECURITY_TLSCACHESIZE=100
fixed it.pcap:
capture.zip
Code
Build:
The text was updated successfully, but these errors were encountered: