-
Notifications
You must be signed in to change notification settings - Fork 78
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
Doesn't memory keep growing? #185
Comments
Thanks for the report. I can confirm there is a leak in the server example (or in puffin it self).There might be a bug in which case we make it prio to fix it. I'll have a look right now. |
Alright, I suspect that this is not a leak, but instead, this is the 'max recent' frames in |
Thanks for the quick check. plasticbox@2f30823 As an extreme, I tried using 1 as the set_frame_view_max_recent value. Is there anything else I can check? I'm using bevy and using puffin::profile_function!() for each system function in about 4 threads. and calling new_frame for the entire bevy system function. |
You can use re_memory to profile the memory use.
let it run for a while and then call
to get the statistics. The memory leak should show up in |
Running the server with a limited frame view recent frames i get:
And after a couple hours:
This looks fine, the numers are quite stable after 200 secs. I do notice it increases as expected when not changing the recent frames. I think we should configure this like you did in your commit because we do not allow this at the moment. Also I ran it for over 30 minutes and do not notice any increase in memory. Are you sure this is not a benvy problem? What version are you using, did they do the migration right, are they having a custom logic for customs copes? |
Describe the bug
#169
I get that it's PR for optimisation.
But doesn't this result in an infinite number of ScopeCollections and thus an ever-increasing memory footprint?
In fact, if you try running the current puffin_http example server, the memory keeps growing over time.
I'm just checking because after applying the release with this update, the memory exploded.
To Reproduce
cd puffin_http
cargo run --example server
Expected behavior
Memory should not continue to grow.
The text was updated successfully, but these errors were encountered: