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 variable | Description | Default value |
---|---|---|
splunk.snapshot.profiler.enabled | Enables the snapshot profiler required for call graph generation. | false |
splunk.snapshot.profiler.sampling.interval | Sampling interval (e.g., 10ms). Lower values increase stack capture frequency. | 10ms |
splunk.snapshot.selection.probability | Probability of selecting a trace for snapshot profiling. Maximum value is 0.10 . | 0.01 |
splunk.snapshot.profiler.max.stack.depth | Maximum depth of captured call stacks. | 1024 |
splunk.snapshot.profiler.export.interval | Interval for exporting collected stack data. | 5s |
splunk.snapshot.profiler.staging.capacity | Capacity of the staging buffer before export. | 2000 |
Recommended settings to improve visibility
Use the following configuration adjustments to reduce the likelihood of missing stack data:
Environment variable | Recommendation |
---|---|
splunk.snapshot.profiler.sampling.interval | Lower to 1 ms to maximize sampling frequency. |
splunk.snapshot.selection.probability | Raise to 0.05 or 0.1 to include more traces. |