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 on Leptos 0.6.15 and actix-web 4.8 #36

Open
bitemyapp opened this issue Nov 23, 2024 · 0 comments
Open

Memory leak on Leptos 0.6.15 and actix-web 4.8 #36

bitemyapp opened this issue Nov 23, 2024 · 0 comments

Comments

@bitemyapp
Copy link

pub(crate) fn register_observer_handle_cleanup<K, V, Fu>(

image

image

Led to OOM kills, servers getting bounced. Was worse under libc malloc than jemalloc but it definitely still happens under jemalloc.

Tracked it down finally by very gently loading up a local instance of the server running in release mode + debug symbols w/ libc malloc under heaptrack with watch running curl at interval -n 1 in a few terminal tabs. Using drill made the server thrash and crash.

Seeing leaks that trace back to register_observer_handle_cleanup, ResourceData, get_state, etc. The common roots seem to be QueryState's .clone() and ResourceData's.

I'll be trying to figure out the least invasive way to disable leptos_query in the server so I can stop the bleeding.

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

1 participant