Unable to attach to the process #1: Make sure it exists and it is a .NET Core 3.0+/.NET 5+ process.
Hello, I was following this guide in order for me to profile my dotnet application in docker container. But I have this error when attaching the process ‘Unable to attach to the process #1: Make sure it exists and it is a .NET Core 3.0+/.NET 5+ process.’ Traced from the logs but couldn't understand what is the root cause, could you provide any assistance from it. Thanks.
Here are the attached files:
Upload id: 2024_09_30_z6r236a8YXV51NC6ULSvih (files: dotnet-info.png and 2 more)
Please sign in to leave a comment.
Hi!
This message means that the process with the specified PID doesn't exist or doesn't contain managed code.
This issue may occur when dotMemory and your application are started under different accounts, as dotMemory doesn't support cross-user profiling on Linux.
Could you please describe in detail how you start your application before attaching and what command line you use for attaching? Also, which folder is the dotMemory CLI located in the Docker container?