-
Notifications
You must be signed in to change notification settings - Fork 812
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
How can openjdk1.8 use async-profile -e alloc without installing debug symbols #924
Comments
Which JDK distribution do you use? |
openjdk version "1.8.0_171" |
VMObjectAlloc can_generate_vm_object_alloc_events Why can only isOpenJ9 be enabled?Is openjdk1.8 not possible? |
See the code can get AsyncGetCallTrace symbolic address, I have an idea to get jni AllocObject function symbolic address to trace, or at this time all the symbolic address output |
Sorry, my question was about distribution (or vendor), not just about the version. As mentioned above, you can do allocation profiling on many OpenJDK 8 distributions without installing debug symbols. I don't think anything should be changed in this regard. |
The provided jdk contains debug symbols. Will it affect the performance and security of the production environment |
java.vendor = Oracle Corporation |
vmtrace |
Symbol table is just a simple table that maps function names to addresses and vice versa. It has no impact on security or runtime performance.
This JDK version is compiled with symbols included. You don't need to install anything additional - async-profiler should work fine with it out of the box. BTW, if you are concerned about security, you should really consider updating your JDK. |
I reported an error when using error: |
I verified that async-profiler 3.0 works fine with Oracle JDK 1.8.0_171. Please check the output of the following commands:
and
where |
7fbe63072000-7fbe630ba000 r-xp 00000000 fd:10 4457358 /async-profile/build/lib/libasyncProfiler.so |
Thank you. I use the docker jdk openjdk:8u171-jdk-slim. When I install openjdk-8-dbg, I can do it, but this package is too big for the container, I may need to study adding openjdk-8-dbg when using, I do not know whether installation and uninstallation will affect the program running |
OK, it makes sense now. |
attach and libasyncProfiler.so are not uninstalled after the -d time |
I'm not sure what you mean by "attach is not uninstalled". |
When I am not using libasyncProfiler.so want to uninstall, is there a way |
There is no need to "uninstall" profiler. It does not affect application and and does not consume resources when profiling is not running. You may safely remove profiler binaries from disk if you wish, but once the library is loaded in a Java process, it stays there until the process terminates. |
Thank you. I'm closing this issue |
I use debug symbols in production environment, so I can't turn on debug symbols. I would like to ask if there is any good way. Can it be used perf-map-agent ?perf-map-agent also uses jvmti,Or is it possible to print all the mappings in the test environment 。jmap dump analysis file will have a good display, I don't know if it can be used for reference, I am still confused at present, want to achieve this condition
The text was updated successfully, but these errors were encountered: