-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 with jaeger tracing enabled #1363
Comments
Thank you! Ping @aaslamin |
Hi @vesvalo, what storage backend are you using for your Jaeger deployment? The memory storage is purely for testing purposes and is not meant for production workloads as there is no limit to how many traces that will be stored. It will just grow indefinitely. |
Also, am I assuming correctly that in both cases (off/on) you were running the same load test for the same amount of time? I've created trace graphs to make analyzing that easier. Seems like a bulk of mem usage comes from "ReadMIMEHeader" (could this be from jaeger?) as well as I'd also be interested to see if the memory load decreases once the load test has ended. Keep in mind that this might take a couple of minutes (10-15) as Go doesn't free the memory immediately. If it doesn't, it's a real memory leak, otherwise it could just be that churning this much data to Jaeger takes up a lot of memory. With tracingWithout tracing |
Ok, the release surely comes from the http buffer freeing up, so there's definitely some memory leak going on. Probably some context not being released. |
Hydra is running on a physical server with Centos 7.3 in docker:
Login and consent app and Jaeger instance are running in the Kubernetes.
|
And what endpoint are you loadtesting? |
/oauth2/auth |
Thank you! It could be possible that there's a leak in the CSRF cookie (/oauth2/auth) in correlation with tracing @aaslamin . I'm actually pretty sure about that |
@vesvalo would it be possible for you to share the config for the test plan? |
You'll need to change "server name", "client_id" and "secret" parameters ("auth.tst", "some_cliend_id" and "some_secret" in this file) to appropriate values. |
Closes #1363 Signed-off-by: aeneasr <aeneas@ory.sh>
Closes #1363 Signed-off-by: aeneasr <aeneas@ory.sh>
Our test confirms that the issue is fixed, thank you very much! |
Describe the bug
Memory leak with Jaeger tracing enabled.
To Reproduce
Steps to reproduce the behavior:
Screenshots
Version:
Mem profiles with and without tracing:
mem-trc-on.zip
mem-trc-off.zip
The text was updated successfully, but these errors were encountered: