Mention DebugNonSafepoints flag in "Getting Started" (#1270)

Signed-off-by: Johannes Bechberger <johannes.bechberger@sap.com>
Co-authored-by: Andrei Pangin <1749416+apangin@users.noreply.github.com>
This commit is contained in:
Johannes Bechberger
2026-01-31 22:09:25 +01:00
committed by GitHub
parent 3aba5ee521
commit 9c293283f2

View File

@@ -10,6 +10,10 @@ process requires setting two kernel parameters. You can set them using sysctl as
# sysctl kernel.kptr_restrict=0
```
For better profiling accuracy, it is [recommended](Troubleshooting.md#known-limitations)
to start the JVM with `-XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints` flags,
unless async-profiler is loaded at JVM startup.
## Find a process to profile
Common ways to find the target process include using