You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to load libasyncprofiler.so via a command like the following:
/path/to/jattach <java_pid> load /path/to/libasyncProfiler.so true start,event=cpu,file=prof.jfr but it fails and returns code 200. Is there a way to get more information about the exact error here? I've attached the strace output of the same but to me it seems like the command is doing everything correctly (unless I overlooked something).
The surprising thing for me is that it works perfectly fine on the host with the same openjdk and glibc version. So wondering if there is something specific in libasyncProfiler.so where things are going wrong? Is there a way to get more information about the JVM return code? strace_log_ghaction.txt
JFYI, I'm using the release binaries from v2.9. Thanks!
The text was updated successfully, but these errors were encountered:
Return code 200 means there was an error in executing profiler command.
The exact error message is printed to stdout of the JVM process.
To redirect the error output to a file, add log=/path/to/profiler.log option.
I guess in your case the problem is in directory permissions: profiler fails to create prof.jfr. Try specifying the full path to the output file.
I'm trying to load libasyncprofiler.so via a command like the following:
/path/to/jattach <java_pid> load /path/to/libasyncProfiler.so true start,event=cpu,file=prof.jfr
but it fails and returns code 200. Is there a way to get more information about the exact error here? I've attached the strace output of the same but to me it seems like the command is doing everything correctly (unless I overlooked something).The surprising thing for me is that it works perfectly fine on the host with the same openjdk and glibc version. So wondering if there is something specific in libasyncProfiler.so where things are going wrong? Is there a way to get more information about the JVM return code?
strace_log_ghaction.txt
JFYI, I'm using the release binaries from v2.9. Thanks!
The text was updated successfully, but these errors were encountered: