We're currently exploring the diagnostics sidecar approach within our k8s environment, and we've encountered an issue regarding attaching to dotnet process using dotMemory/dotTrace. The
--profiling-type=Timeline parameter seems to work perfectly fine for dotTrace.
Interestingly, if the dotTrace console profiler is located within the application container, it functions as expected. However, that doesn't work when attempted from the sidecar container.
Here are a few specifics about our k8s deployment:
shareProcessNamespace is set to
- There's a common
/tmp folder that is shared between both containers within a pod.
For reference, the dotMemory trace log is available here:
Upload id: 2023_08_17_bsRZkG8FMgdQVvrg7DAvQk (file: dotmemory.log)
(You can also find this on YT)
Looking forward to any insights or suggestions from the community. Thank you!