Questions tagged [async-profiler]

31 questions
1
vote
1 answer

Tactics to explore performance degradation of java based web app over time

I am working on enterprise java application which has a lot of tools/frameworks in it already, such as Struts, JAX-RS and Spring MVC. It contains UIs and REST endpoints bundled together in a .war file. The project is evolving and we are getting rid…
rand0m86
  • 3,172
  • 4
  • 26
  • 29
1
vote
1 answer

Passing artifactId to surefire argLine

I'm trying to use async-profiler with maven, sadly it does not track forked processes and my tests need the isolation provided by forks to run correctly. In order to run async-profiler I need to run java with this…
GlinesMome
  • 1,549
  • 1
  • 22
  • 35
0
votes
0 answers

What options in async-profiler should I use when I want to analyze offheap leaks?

I'd like to figure out the cause of native memory leak (off-heap). I came across a tool called async-profiler. But, i don't know which option i should use Regarding of off-heap, -e option i know is as below. mmap malloc mprotect nativemem (known as…
henry-jo
  • 283
  • 1
  • 3
  • 14
0
votes
0 answers

How to profile a java program with async-profiler that is invoked via mvn test?

I have a java application that I'd like to profile using async-profiler. In particular, I want to run a test case using mvn test -Dtest=SomeTest and have async-profiler automatically launched in the background to profile the executed code. Right…
94621
  • 53
  • 4
0
votes
1 answer

Not able to integrate async-profiler with the Elastic APM agent

I want to collect native threads information through APM. APM configuration tracks only Transactions and not java threads. As per documentation, i need to enable async-profiler as below. Added these in elasticapm.properties…
0
votes
0 answers

Java, JIT and switching between execution modes

In Java HotSpot methods can be executed in different modes: Interpreter JITed C1 (different levels) JITed C2 Specific mode is determined by CallDispatcher, as it is presented here: https://youtu.be/oH4_unx8eJQ?t=1326. Where can I find…
Gilgamesz
  • 4,727
  • 3
  • 28
  • 63
0
votes
0 answers

How does async-profiler trace stack with jit-optimized methods?

The java profiling tool async-profiler could generate flamegraph even if some method in the call stack is jit optimized. How is that implemented? If one method is inlined or jit optimized, how could we fetch its origin info or call graph?
choxsword
  • 3,187
  • 18
  • 44
0
votes
0 answers

Best practices for distributed profiling

perhaps nothing new but we have a use case to profile a spark application that runs in a distributed fashion We currently use the async-profiler that monitors each executor ( a process in spark ) and generates a JFR per process. It's a little…
ffff
  • 2,853
  • 1
  • 25
  • 44
0
votes
1 answer

Hacky ways to retrieve data from thread local storage

I've learned something about thread local storage(TLS). From my point of view, this is a totally black box - you give it a key, and it gives you the thread local data back. No idea what the key is like and where these local data is saved. Recently…
0
votes
0 answers

How to get useful names for anonymous java methods using async-profiler

I'm trying to use async-profiler to analyze Apache Spark performance, and I find that, even when codegen disabled, the majority of CPU time is spend in anonymous classes, such as Iterator$$anon$11.hasNext. Is there a way I can get async-profiler to…
0
votes
0 answers

Get branch miss perf metrics from AsyncProfiler

I have confirmed my host machine support branch-miss perf events by testing with perf command. But I cannot observe any branch-miss info from the generated flamegraph when I use async-profiler. This is the command I use: profiler.sh -f /tmp/fg.html…
Bostonian
  • 615
  • 7
  • 16
0
votes
1 answer

How to merge *.svg files created by java async profiler?

I am using kubectl-flame to run async-profiler on k8s pods. When profiling a microservice that runs multiple replicas - I have a separate *.svg flamegraph for each pod. QUESTION: Is there a way to merge those *.svg files into one graph?
ludenus
  • 1,161
  • 17
  • 30
0
votes
0 answers

Java Async Profiler Flame Graph

In the scenario below, is Java async-profiler the right tool to see where's time spent when comparing performance of ArrayBlockingQueue and LinkedBlockingQueue? On my machine, total execution time of ABQ is always 25% faster than LBQ when sharing…
Abidi
  • 7,846
  • 14
  • 43
  • 65
0
votes
0 answers

Why high CPU during ArrayBlockingQueue.poll()

Once, I've profiled Java application by Async-profiler (CPU utilization). Adnrei Pangin(apangin) thanks for the Async-profiler! This is stack(hot methods) was at the top: Started [itimer] profiling --- Execution profile --- Total samples :…
srg321
  • 105
  • 7
0
votes
1 answer

Async profiler overhead on Zing

Our team is monitoring latency of our application using HdrHistograms. When I attach async profiler to it all percentiles increase dramatically. OS: Red Hat Enterprise Linux release 8.1 (Ootpa) JVM: 11.0.8-zing_20.08.2.0-b2-product-linux-X86_64 This…
Vadim
  • 576
  • 1
  • 4
  • 13