DotNetStackActivity
Category: System Diagnostics Namespace: CMS.Plugin.FlowManagement.Domain.FlowBusiness.Activitys Base Class: ActionActivity Module: FlowManagement.Domain
Overview
DotNetStackActivity (Stack Trace) is a node used to obtain thread stack traces in the process. It inherits from ActionActivity and uses the dotnet-stack tool to print the stack trace of each thread in the target process, used for diagnosing performance issues.
Configuration Description
| Property Name | Type | Required | Default | Description |
|---|---|---|---|---|
| OutputPath | string | No | logs/diagnosis_logs | Diagnosis Output Path |
| PendingWorkItemThresholdCount | int? | No | - | Thread pool queue threshold, stack trace executes only when exceeded |
Usage Examples
{
"Type": "DotNetStackActivity",
"Name": "Stack Diagnosis",
"Alias": "StackDiagnosis",
"OutputPath": "C:\\Logs\\Diagnosis",
"PendingWorkItemThresholdCount": 200
}
Notes
- 💡 Executes asynchronously, does not block the process.
- 💡 Setting a threshold can avoid frequent stack trace execution.
- ⚠️ Requires dotnet-stack tool to be installed.
- ⚠️ Stack tracing incurs some performance overhead.
Related Nodes
- PrometheusActivity: Monitoring Probe Node
- DotNetCounterActivity: Performance Counter Node
Update History
| Date | Version | Description |
|---|---|---|
| 2025-11-28 | 1.0 | Initial version |
Last updated: 2025-11-28