Questions tagged [async-profiler]
31 questions
6
votes
1 answer
How to enable wall-clock profiling for Intellij Async Profiler?
I'd like to measure how much time my app spends in the database.
I've added the CPU Profiler to Intellij's Settings / Build / Java Profiler, but by default it shows the code with most CPU cycles, which is useless for me since the JDBC driver…

Martin Vysny
- 3,088
- 28
- 39
4
votes
1 answer
Measure execution time java
I need to measure how many seconds takes to execute a particular method via JFR. It is possible to do that? I tried async-profiler but I don't this feature.

Matrix12
- 446
- 8
- 19
4
votes
1 answer
Windows Async Profiler Error in IntelliJ while trying to run Application with Profiler
I am getting this error "Profiler error: There is no dump file" in the profiler tab while running Application with Windows Async Profiler.
Environment- IntelliJ IDEA Ultimate, Java 8
I am new to Profiling and I am just starting to learn. Java Flight…

StackOverthrow
- 65
- 8
3
votes
1 answer
String TLAB allocation by socketRead0
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…

Sergej Isbrecht
- 3,842
- 18
- 27
2
votes
0 answers
How to map Java Thread to OS Thread on Linux?
I'm trying to map Java Thread to OS thread within JVMTI. In JVMTI, all I could grab is Java Thread object leveraging GetCurrentThread. But I want to know which OS thread this jthread is mapping to.
I was told that there is a field in Hotspot, eetop,…

OnePair3Can'tPay
- 43
- 6
2
votes
1 answer
asyncprofiler malloc undefined category
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…

sodjas
- 23
- 3
2
votes
1 answer
Java performance issue On Oracle Linux
I'm running very "simple" Test with.
@Fork(value = 1, jvmArgs = { "--illegal-access=permit", "-Xms10G", "-XX:+UnlockDiagnosticVMOptions", "-XX:+DebugNonSafepoints", "-XX:ActiveProcessorCount=7",
"-XX:+UseNUMA"
,…

Dimitri Gamkrelidze
- 61
- 1
- 5
2
votes
1 answer
How to reduce time taken on threads reaching Safepoint - Sync state
About the Issue:
During heavy IO in the VM, we faced JVM pause/slowness due to stopping threads taking more time. When looking on safepoint logs it showed Sync state takes the most time.
We also tried printing Safepoint traces on timeout delay…

Arunkumar
- 31
- 1
- 7
2
votes
1 answer
async profiler displays wrong stacktraces
I am trying to use async profiler v.1.8.1 for profiling my application.
JVM is openjdk version "15-ea" 2020-09-15, but same happened with openjdk 14.0.1 as well.
async profiler is run with flags: -d 60 -t -i 10000 -o svg
It shows extremely strange…

Vadim
- 576
- 1
- 4
- 13
2
votes
1 answer
Measuring DirectByteBuffer with async-profiler and perf
I'm playing around with async-profiler and perf and decided to measure kernel activity for DirectByteBuffer disk IO. Here is the code (written in Scala, but its Java version should be obvious):
val path = Paths.get("/tmp/test")
val buffer =…

St.Antario
- 26,175
- 41
- 130
- 318
1
vote
1 answer
Profiling outliers using Async Profiler
I'm benchmarking my application using chronicle JLBH. Above 99th percentile, it shows there are runs that are taking more than 20micros (up to 99th it's less than 2 micros). I would like to profile the outliers to see what's happening during those…

Abidi
- 7,846
- 14
- 43
- 65
1
vote
1 answer
Java Native Memory 'Other' section consumes a lot of memory
Prerequisites
Application is run in docker-container with Java openjdk version "13.0.1" with these options:
-Xmx6G -XX:MaxHeapFreeRatio=30 -XX:MinHeapFreeRatio=10 -XX:+AlwaysActAsServerClassMachine -XX:+UseContainerSupport…

Anton Gabov
- 13
- 3
1
vote
1 answer
AsyncProfiler - Unable to load profiler in JMH benchmark runner
I'm using JMH to benchmark JUnit tests. I want to start using async-profiler, to profile the benchmarks and get more information regarding CPU usage.
My benchmark runner:
import org.openjdk.jmh.annotations.Mode;
import…

Dimidrie
- 15
- 3
1
vote
0 answers
How to enable time based profiling for Intellij Async Profiler?
I'd like to measure how much time my test method spends; but when I enable time based profiling by using event type as wall I am not getting the flame graph (or call graph) appropriate time consumption.
Expectation:
All waitX methods call with…

Suraj Singh
- 41
- 5
1
vote
1 answer
async-profiler viewing list of profiling events supported by jvm
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 -
root@vrni-platform:/home/ubuntu/async-profiler-2.0-linux-x64# ./profiler.sh list 10208
Basic events:
cpu
alloc
…

tuk
- 5,941
- 14
- 79
- 162