-
Notifications
You must be signed in to change notification settings - Fork 299
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 aot package ListDeployments and ListStatefulSet #1539
Comments
Hi fixed it in my side by this commit SlimPlanet/SlimFaas@d71b2ba But it is still a bug it seem dispose does not dispose well. I will try to memory dump. |
yes dump please |
I had a add week, i will try to do it next week! |
i ran the load test last weekend for whole afternoon, but did not see any leak. for(;;) { listdeployment; sleep 5s} |
my test code
|
I still have now a tigth memory leak. |
hi @tg123 , I still have the problem with the latest verison by creating a new kubernetes client every time => with IKubernetes client = new Kubernetes(config); client.Dispose(); every seconds |
@guillaume-chervet could you please do a mem dump so we can debug where is leaking |
I will as soon as i can @tg123 very sorry for the delay |
Thank you very much for your help and answers @tg123 |
Describe the bug
SlimFaas is calling ListDeployments and ListStatefulSet every Second (in the futur we will use watch). I think of memory leak because memory increase without ending.
Previous version worked on production without any crash with 180Mo of RAM set and the same code. The only change is the switch to AOT packages.
If I remove calls, the memory keep very stable.
https://github.com/AxaFrance/SlimFaas/blob/main/src/SlimFaas/ReplicasSynchronizationWorker.cs
https://github.com/AxaFrance/SlimFaas/blob/main/src/SlimFaas/Kubernetes/KubernetesService.cs
All RAM goes down in the graph bellow are OOM Killed.
Kubernetes C# SDK Client Version
"KubernetesClient.Aot" Version="13.0.12"
Dotnet Runtime Version
.NET 8
The text was updated successfully, but these errors were encountered: