The problem of improper use of RAM in ASP.NET Core Web API project

304 Views Asked by At

I have an ASP.NET Core 6 Web API project.

When I'm running the project, my project takes about 2 GB of memory!

memory diagnostic

I found this problem in the dotMemory application:

dotMemory's result

There seems to be a problem with this part (Routing)

Routing problem in dotMemory

My project has some routes.

For example for every action, It has four routes.

The result of an action in swagger

They are defined like this:

routing rules

Where do you think the problem is, where did this memory problem come from and how should I solve it?

0

There are 0 best solutions below