async-profiler | Sampling CPU and HEAP profiler | Monitoring library
kandi X-RAY | async-profiler Summary
kandi X-RAY | async-profiler Summary
Sampling CPU and HEAP profiler for Java featuring AsyncGetCallTrace + perf_events
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of async-profiler
async-profiler Key Features
async-profiler Examples and Code Snippets
Community Discussions
Trending Discussions on async-profiler
QUESTION
I have set up and using https://github.com/jvm-profiling-tools/async-profiler which is extremely useful but I have a strange thing I cannot explain.
My setup is exactly where multiple presentation showed it can help:
AKS kubernetes cluster with a nodepool
A pod deployed on one node
Within the container I have set up openjdk-11 with the debuginfo
The profiling setup is a simple ./profiler start -e malloc PID
Since I'm in a virtualised environment profiling works, the only warning I get is
...
ANSWER
Answered 2022-Jan-28 at 01:02Container environment is not related here.
It seems like libc
(where malloc
implementation resides) on your system is compiled without frame pointers. So the standard stack walking mechanism in the kernel is unable to find a parent of malloc
frame.
I've recently implemented an alternative stack walking algorithm that relies on DWARF unwinding information. New version has not been yet released, but you may try to build it from sources. Or, for your convenience, I prepared the new build here: async-profiler-2.6-dwarf-linux-x64.tar.gz
Then add --cstack dwarf
option, and all malloc
stack traces should be in place.
QUESTION
I am trying to view list of profiling events supported by jvm. As mentioned in the doc I have used the list
command as shown below -
ANSWER
Answered 2021-Jun-28 at 13:01malloc
here is not a separate event. It's just an example of an execution breakpoint.
async-profiler, with the assistance of the hardware breakpoints, can trace access to any memory location. Using the perf-like syntax for hardware breakpoints, you can choose to profile the execution of any given address in the code:
QUESTION
While using async-profiler I run the profiles for cpu and alloc separately but was hoping it would be possible to use them as part of the same duration? Given the output format types supported, this only seems to make sense if JFR is used.
...ANSWER
Answered 2020-Aug-30 at 00:09Yes, this feature is implemented in v2.0 branch of async-profiler. The branch is currently under development, use with care. Planned for the next major release.
To specify multiple events in the command line, use
QUESTION
Environment:
- Linux 4.x
- async-profiler 1.6 (https://github.com/jvm-profiling-tools/async-profiler)
- OpenJDK8
Application-Code:
Domain-Socket communication via SocketInputStream
Action:
run app with async profiler: -d 60 -e alloc -f /tmp/alloc.svg
Problem:
unexpected String allocation from SocketInputStream#socketRead0
(cyan: TLAB alloc)
...ANSWER
Answered 2020-Jan-06 at 02:15Your assumption is right. SocketTimeoutException
in the profile tells that the method allocates an exception object, and this exception object has a String
message that also needs to be allocated.
I've just committed a change to async-profiler that adds --cstack
option for recording C stack along with Java stack in allocation profiling mode. It proves that java.lang.String
is indeed allocated from JNI ThrowNew
function:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install async-profiler
Linux x64 (glibc): async-profiler-2.7-linux-x64.tar.gz
Linux x64 (musl): async-profiler-2.7-linux-musl-x64.tar.gz
Linux arm64: async-profiler-2.7-linux-arm64.tar.gz
macOS x64/arm64: async-profiler-2.7-macos.zip
Converters between profile formats: converter.jar (JFR to Flame Graph, JFR to FlameScope, collapsed stacks to Flame Graph)
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page