---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://perforator.tech/docs/en/guides/jvm.md
---
> **Documentation Index:** Fetch the complete configuration index at https://perforator.tech/docs/en/llms.txt

# How to configure profiling for JVM applications

Perforator is able to profile JVM application. This guide shows how to configure application to get meaningful profiles.

{% note warning %}

For now, JVM support is experimental and has known limitations. It will be improved in the future releases.

{% endnote %}

## Prerequisites

* Application runs on HotSpot JVM.
* JVM is 17 or newer.

## Configure JVM

Add the following flag to the JVM process

```
-XX:+PreserveFramePointer
```

Additionally, add the following environment variable to the JVM process

```
__PERFORATOR_ENABLE_PERFMAP=java=true,percentage=50
```

See [reference](https://perforator.tech/docs/en/reference/perfmap.md#configuration) for configuration options.
