-
Notifications
You must be signed in to change notification settings - Fork 849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Failed to inject profiler into <pid>" #78
Comments
Please, remove |
Well.. I did that, retried, and the attach worked just fine. Tried adding |
I've got the same issue
Couldn't find any solution out there. |
@krems Are you building async-profiler from Please check what the following command prints.
|
Yes
|
I should mention that I have to run profiler via |
OK, the library seems to work. |
No output, but I found out what was the problem. |
I hit a similar error when I tried to attach the async profiler to something that was running inside a LXC container. Running it from inside the container did the trick for me. |
Thank you for the details. The clue is that profiler library is loaded by the target JVM on behalf of the user of the JVM process. This implies that async-profiler binary must be accessible by that user by exactly the same absolute path. I'll update troubleshooting sections with this information. |
Dear @apangin, I encounter this issue when I run async profiler in host, my application is running as container in this host.
I give all the permission(-rwxrwxrwx) to libasyncProfiler.so.
Could u please kindly help to check? |
@roy-20230331 |
I see, thx @apangin ! |
I'm running the following command:
And am getting the following output:
The process I'm trying to attach to is running:
The OS is:
The text was updated successfully, but these errors were encountered: