Automatic Process Snapshot Generation
When a business transaction snapshot is triggered by periodic collection or by a diagnostic session, a ten-second process snapshot is automatically started. By default, the agent starts no more than two process snapshots per minute automatically, but this behavior is configurable.
You can also start process snapshots manually on demand. See Collect Process Snapshots Manually.
Configure Automatic Collection
You can configure automatic process snapshot collection using these settings:
processSnapshotCountResetPeriodSeconds
: Frequency, in seconds, at which the automatic process snapshot count is reset to 0; default is 60 seconds.maxProcessSnapshotsPerPeriod
: Number of automatic process snapshots allowed inprocessSnapshotCountResetPeriodSeconds
seconds; default is 2 snapshots.autoSnapshotDurationSeconds
: Duration of an automatically-generated process snapshot; default is 10 seconds.
To configure these settings, add them to the require statement in your application source code as described in Install the Node.js Agent. Then stop and restart the application.