Skip to content

Commit 6c80a82

Browse files
authored
Update 2_async-profiler.md
1 parent f46eadc commit 6c80a82

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

content/learning-paths/servers-and-cloud-computing/java-perf-flamegraph/2_async-profiler.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ weight: 3
66
layout: learningpathall
77
---
88

9-
## Java Flame Graph Generation via async-profiler [async-profiler](https://github.com/async-profiler/async-profiler) (Recommended)
10-
- async-profiler is a low-overhead sampling profiler for JVM applications, capable of capturing CPU, allocation, and lock events to generate actionable performance insights.
11-
- A lightweight tool for Java performance analysis, async-profiler produces flame graphs and detailed stack traces with minimal runtime impact, suitable for production environments.
9+
## Java Flame Graph Generation via async-profiler [async-profiler](https://github.com/async-profiler/async-profiler)
10+
- `async-profiler` is a low-overhead sampling profiler for JVM applications, capable of capturing CPU, allocation, and lock events to generate actionable performance insights.
11+
- A lightweight tool for Java performance analysis, `async-profiler` produces flame graphs and detailed stack traces with minimal runtime impact, suitable for production environments.
1212

13-
You should deploy async-profiler on the same machine where Tomcat is running to ensure accurate performance profiling.
13+
You should deploy `async-profiler` on the same Arm Linux machine where Tomcat is running to ensure accurate performance profiling.
1414
1. Download async-profiler-4.0 and uncompress
1515
```bash
1616
wget -c https://github.com/async-profiler/async-profiler/releases/download/v4.0/async-profiler-4.0-linux-arm64.tar.gz
@@ -21,10 +21,12 @@ tar xzf async-profiler-4.0-linux-arm64.tar.gz
2121
```bash
2222
cd async-profiler-4.0-linux-arm64/bin
2323
./asprof -d 10 -f profile.html $(jps | awk /Bootstrap/'{print $1}')
24-
# or
24+
```
25+
You can also run:
26+
```
2527
./asprof -d 10 -f profile.html ${tomcat_process_id}
2628
```
2729

28-
3. Launch profile.html in a browser to analyse the profiling result
30+
3. Now launch `profile.html` in a browser to analyse your profiling result
2931

3032
![example image alt-text#center](_images/lp-flamegraph-async.png "Java Flame Graph via async-profiler")

0 commit comments

Comments
 (0)