noi-techpark / odh-api-core

.Net Core Port of ODH Tourism Api
2 stars 2 forks source link

As an opendatahub developer i want to find out why there are often heavy cpu loads in the application #416

Closed RudiThoeni closed 6 months ago

RudiThoeni commented 7 months ago

Memory Leak?

will check with this guide https://learn.microsoft.com/en-us/dotnet/core/diagnostics/debug-highcpu?tabs=windows

RudiThoeni commented 6 months ago

Installed .net tools dotnet trace and did a dump when cpu was under heavy pressure.... Very useful tool because it shows what processes consume cpu/memory image

it seems like IDM is using Opendatahub to retrieve the LTS Available FreeRooms Information. The Free Rooms Call uses a library named Combinatorics to calculate the cheapest room Combination (by creating all possible permutations and sorting them). It seems that on a certain amount of combinations the cpu/memory loads are increasing significantly........ At times this can also cause a cpu overload where the system does not reach a normal state anymore.....

Conclusion: revisit this cheapest room calculation .......

RudiThoeni commented 6 months ago

fixed and released on production