fix(dotnet): cover dotnet container requirements#42
fix(dotnet): cover dotnet container requirements#42wojciechtobis wants to merge 2 commits intoparca-dev:mainfrom
Conversation
|
wojciechtobis seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
maxbrunet
left a comment
There was a problem hiding this comment.
That does not look right to me, failed to open proc 605299: stat /proc/605299: no such file or directory indicate that the process does not exist anymore (has exited) when the agent tries to fetch its info.
PerfCollectrequires theSYS_ADMINcapability (in order to run theperftool), so be sure the container is started with that capability.
We do not want to run perf, but enable the perfmap only, so the symbols (function names) are available to the agent. There should not be anymore requirements than DOTNET_PerfMapEnabled=1. I have tested this example, it works fine, see #18.
That kind of races happens from time to time and you will see these logs. While we are trying to reduce them, they cannot be avoided entirely. If it happens a whole lot, it is possible there could be a bug in the agent and we would appreciate a bug report on the agent repository, but from what you have shared, I do not believe the issue is in the Dotnet app here.
|
@maxbrunet Thanks for your comment, I had a problem with this dotnet demo app during hackathon, and I found this documentation that helps in my case (that's why I thought that creating a PR with working solution is a good idea). Thank you for explanation how it works under the hood. |
Problem
Agent can't read dotnet application's data and log:
level=debug name=parca-agent ts=2023-07-27T16:23:24.738406352Z caller=cpu.go:316 component=cpu_profiler msg="failed to prefetch process info" pid=605299 err="failed to open proc 605299: stat /proc/605299: no such file or directory"Changes
According to this documentation the changes are: