Java settings for Call Graph Profiling

Learn about the available Java agent settings for Call Graph Profiling in Splunk APM.

The following settings control the Call Graph Profiling feature for the Java agent.

Environment variableDescriptionDefault value
splunk.snapshot.profiler.enabledEnables the snapshot profiler required for call graph generation.false
splunk.snapshot.profiler.sampling.intervalSampling interval (e.g., 10ms). Lower values increase stack capture frequency.10ms
splunk.snapshot.selection.probabilityProbability of selecting a trace for snapshot profiling. Maximum value is 0.10.0.01
splunk.snapshot.profiler.max.stack.depthMaximum depth of captured call stacks.1024
splunk.snapshot.profiler.export.intervalInterval for exporting collected stack data.5s
splunk.snapshot.profiler.staging.capacityCapacity of the staging buffer before export.2000
Note: These settings can be passed as JVM system properties or as environment variables depending on your deployment model.
For the complete list of settings for the Java agent, see Configure the Java agent for Splunk Observability Cloud.

Use the following configuration adjustments to reduce the likelihood of missing stack data:

Environment variableRecommendation
splunk.snapshot.profiler.sampling.intervalLower to 1 ms to maximize sampling frequency.
splunk.snapshot.selection.probabilityRaise to 0.05 or 0.1 to include more traces.
Note: These adjustments may increase resource usage. Test changes in staging environments before applying to production.