Skip to content

Commit

Permalink
[release/v1.4] docs: update pyroscope.java JVM configuration (#1803)
Browse files Browse the repository at this point in the history
Co-authored-by: Clayton Cornell <[email protected]>
Co-authored-by: Marc Sanmiquel <[email protected]>
  • Loading branch information
3 people authored Oct 1, 2024
1 parent 3f3af77 commit 5252bd7
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 5252bd7

Please sign in to comment.