Summary

The flightRecorderSettings() GraphQL query returns the Java Flight Recorder settings for the specified virtual host, including whether old object sampling is enabled and the duration of each sampling run.

Syntax

graphql
flightRecorderSettings(
      vhost: Int!
   ): FlightRecorderSettings

Supply the virtual host number as vhost. The result is nullable — if no settings exist for the specified host, the query returns null. See Returned Values for the available fields.

Returned Values

The result contains oldObjectSampleEnabled (a non-nullable boolean; true if OldObjectSample is enabled) and oldObjectSampleDurationMinutes (a non-nullable Long giving the duration in minutes that old object sampling runs before dumping results and restarting). The available fields are listed here:

Table: FlightRecorderSettings Datatype

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
oldObjectSampleDurationMinutesLongyes Short-Term The duration old object sampling will run for before dumping results and restarting
oldObjectSampleEnabledBooleanyes Short-Term True if OldObjectSample is enabled