> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Monitoring

> How to record Java Flight Recordings (JFRs) in Atoti Limits using JfrService and the JfrController REST endpoints for starting and stopping recordings via monitoring/jfr/start and monitoring/jfr/stop

Atoti Limits contains the `JfrService`, which allows you to record Java Flight Recordings (JFRs) for
troubleshooting purposes.

## Record a JFR via REST

The `JfrController` provides REST endpoints for starting and stopping JFR recordings. You can use these endpoints to
record JFRs on a running application. This REST API is useful for recording JFRs that capture a manual action or a
set of actions that you want to analyze. The easiest way to send the requests is by using the [Swagger UI](https://docs.activeviam.com/atoti-intelligence/workflows/limits/6.2/dev/rest-services.md#swagger-ui).

To start a JFR recording, send a POST request to the `monitoring/jfr/start/{name}` endpoint with the name of the recording:

![JFR Controller Start](https://mintcdn.com/activeviam/NKtr6pz1b9SFJJLV/atoti-intelligence/workflows/limits/6.2/images/jfr-controller-start.png?fit=max\&auto=format\&n=NKtr6pz1b9SFJJLV\&q=85\&s=b98a100e45e9c5987927a8c92d381444)

> [!WARNING]
>
> Failing to stop a JFR recording can lead to high disk usage and memory consumption. Always stop a recording after you
> have finished collecting data. By default, the JFR recording will stop after 60 minutes.

To stop the recording, send a POST request to the `monitoring/jfr/stop/{name}` endpoint with the name of the recording:

![JFR Controller Stop](https://mintcdn.com/activeviam/NKtr6pz1b9SFJJLV/atoti-intelligence/workflows/limits/6.2/images/jfr-controller-stop.png?fit=max\&auto=format\&n=NKtr6pz1b9SFJJLV\&q=85\&s=187a9cc0d03fdbc18fd28fc3ea73ed14)
