Skip to content

Commit

Permalink
docs: update pyroscope.java JVM configuration (#1779)
Browse files Browse the repository at this point in the history
Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
(cherry picked from commit 62b6fb5)
  • Loading branch information
marcsanmi authored and grafanabot committed Oct 1, 2024
1 parent 58ba112 commit dfbbcc0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/sources/reference/components/pyroscope/pyroscope.java.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ pyroscope.java "LABEL" {
}
```

## Target JVM configuration

When you use `pyroscope.java` to profile Java applications, you can configure the target JVMs with some command line flags that ensure accurate profiling, especially for inlined methods. Add the following flags to your Java application's startup command:

```java
-XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints
```

For more details, refer to [Restrictions/Limitations](https://github.com/async-profiler/async-profiler?tab=readme-ov-file#restrictionslimitations) in the async-profiler documentation.

## Arguments

The following arguments are supported:
Expand Down

0 comments on commit dfbbcc0

Please sign in to comment.