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
Running async profiler on AWS EC2 virtual machine #417
Comments
"Failed to inject profiler" message is documented in README in Troubleshooting section:
Apparently filesystem permissions do not allow |
Thanks for the tip!
But the problem is that it still doesn't work - fails silently again:
As root, I still get the same message as before
The process indeed runs under the
Looking closer at #78 and https://github.com/jvm-profiling-tools/async-profiler#troubleshooting I started from scratch and downloaded async profiler into
... with
Here I realized that it might be a problem with process' group - indeed, my java app runs under another group (
I guess I'm good now but one question: every now and then I get an empty output - is that normal?
|
Yeah, profiling in a container is tricky. I'll think how to improve user experience. Anyway, the output should not be empty, unless the application is completely idle. Are there any warnings/errors in the VM logs? |
No warnings or errors in the logs. It's a web application running on our staging server so I guess there might be periods when it's "idle" although that was surprising. |
(feel free to close the issue - I would do that but wasn't sure if you want to keep it open, perhaps for docs improvement or something like that) |
#413 should slightly improve profiling experience in a container: the host will now display error logs and the output file from the target process that runs in a different mount namespace. |
I'm trying to run Async Profiler on one of our AWS Beanstalk machines running Java 8 and it fails very early in the process.
No more information is provided.
If I try to run it under the user running the target java process it just fails silently (no error message):
Here's the system information from
dmesg
:Java version:
Should this work or am I hitting some limitations of the virtualized AWS environment?
Note: I tried to run it with
strace
but couldn't figure out what's wrong - the last few lines are:The text was updated successfully, but these errors were encountered: