Answer the question
In order to leave comments, you need to log in
What tools can you recommend for profiling ASP.NET Core applications in docker?
Hello! There was a need to study the performance of individual endpoints in an ASP.NET Core Web API running in a docker container. It is necessary to study which methods consume the most CPU / RAM and which methods are most executed. The docker container is located in Kubernetes on a remote machine.
Now I'm considering the following options:
1) dotTrace. I tried to run through dotTrace.sh inside the container and read the snapshot through Rider. The snapshot turned out to be not very informative (although maybe I just opened it somehow wrong :))
2) dotnet-trace.
3) Visual Studio Performance Profiler - I have not yet figured out how to connect to a remote process in docker in VS Community 2019.
Can you tell me which tool is worth spending more time to study? Which one will give me the stats I need?
Answer the question
In order to leave comments, you need to log in
Look in this direction
https://2017.dotnext-moscow.ru/2017/msk/talks/2dfo...
My choice
https://miniprofiler.com/
The docker container is located in Kubernetes on a remote machine.
RUN dotnet tool install --global dotnet-trace
ENV PATH $PATH:/root/.dotnet/tools
dotnet-trace collect --process-id $(pidof dotnet) --providers Microsoft-DotNETCore-SampleProfiler
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question