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
phaseshift13mo ago
Memory is really hard to debug/diagnose, and purely from what you've said does not necessarily imply a leak
viceroypenguin
viceroypenguin13mo ago
In many cases, server GC will not run until there’s memory pressure to do so. This will look like ballooning, etc.
phaseshift
phaseshift13mo ago
Also the asp GC algorithm just keeps hold of a lot more memory than the regular algorithm
viceroypenguin
viceroypenguin13mo ago
Yup
The Fog from Human Resources
So do I just not fix it or Cause my pc has 80gb ram
phaseshift
phaseshift13mo ago
You haven't shown that there is anything to fix
The Fog 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
phaseshift13mo ago
That's not how the runtime works
viceroypenguin
viceroypenguin13mo ago
“Clear out the memory”… I mean, you can run a GC.Collect() if you want.
Farhan Rizal
Farhan Rizal13mo ago
I think, you can use async/await. for it.
Want results from more Discord servers?
Add your server