DotNetCounterActivity
Category: System Diagnostics Namespace: CMS.Plugin.FlowManagement.Domain.FlowBusiness.Activitys Base Class: ActionActivity Module: FlowManagement.Domain
Overview
DotNetCounterActivity (Performance Counter) is a node used to monitor .NET thread pool performance in the process. It inherits from ActionActivity and prints thread pool related information, including worker thread count, I/O thread count, queue length, etc.
Configuration Description
| Property Name | Type | Required | Default | Description |
|---|---|---|---|---|
| OutputPath | string | No | - | Diagnosis Output Path |
| PendingWorkItemThresholdCount | int? | No | - | Thread pool queue threshold, warning printed when exceeded |
Process Context
Output Parameters
| Parameter Name | Type | Description |
|---|---|---|
| ThreadPool_Work Items_Queued_Length | int | Thread pool work item queue length |
Usage Examples
{
"Type": "DotNetCounterActivity",
"Name": "Monitor Thread Pool",
"Alias": "MonitorThreadPool",
"PendingWorkItemThresholdCount": 100
}
Notes
- 💡 Prints thread pool configuration information on first execution.
- 💡 Prints completed work item count and queue length on each execution.
- ⚠️ Warning log recorded when queue length exceeds threshold.
Related Nodes
- PrometheusActivity: Monitoring Probe Node
- DotNetStackActivity: Stack Trace Node
Update History
| Date | Version | Description |
|---|---|---|
| 2025-11-28 | 1.0 | Initial version |
Last updated: 2025-11-28