ASP.NET Core API backend memory not clearing

Im writing a REST API for a backend server system, where the backend carries out mySQL calls, im currently doing a test run on the backend with about 1k requests using Parallel.For and the RAM usage shoots from 60mb to 150mb and never goes down i posted images of the Controller Endpoint and the Database interaction
No description
No description
11 Replies
phaseshift
phaseshift7mo ago
Memory is really hard to debug/diagnose, and purely from what you've said does not necessarily imply a leak
viceroypenguin
viceroypenguin7mo ago
In many cases, server GC will not run until there’s memory pressure to do so. This will look like ballooning, etc.
phaseshift
phaseshift7mo ago
Also the asp GC algorithm just keeps hold of a lot more memory than the regular algorithm
viceroypenguin
viceroypenguin7mo ago
Yup
Waffles from Human Resources
So do I just not fix it or Cause my pc has 80gb ram
phaseshift
phaseshift7mo ago
You haven't shown that there is anything to fix
Waffles from Human Resources
But I'm not sure abt the server it will run on I just need it to clear out memory after it's SCcrying
phaseshift
phaseshift7mo ago
That's not how the runtime works
viceroypenguin
viceroypenguin7mo ago
“Clear out the memory”… I mean, you can run a GC.Collect() if you want.
Dream
Dream7mo ago
I think, you can use async/await. for it.
Want results from more Discord servers?
Add your server
More Posts