prepare_profiling
Generate JVM parameters to start profiling Java applications for CPU, memory, database, and HTTP performance analysis with stack trace recording.
Instructions
Prepare a profiling session by retrieving a JVM parameter to be added to a Java process call to record performance data with stack traces for the following subsystems: cpu, jdbc, jpa, http_server, http_client, mongo_db. The result is a JSON object containing a 'jvmParameter' to be added (quoted) to the Java process at startup. Call check_status to check the availability of data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delay | No | An optional recording delay in seconds measured from the jvm start. | |
| maximumDuration | No | An optional maximum recording duration in seconds. If not specified, data will be saved at JVM termination or when check_status is called with 'stopRecording: true'. |