Skip to main content
Version: Next

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 NameTypeRequiredDefaultDescription
OutputPathstringNo-Diagnosis Output Path
PendingWorkItemThresholdCountint?No-Thread pool queue threshold, warning printed when exceeded

Process Context​

Output Parameters​

Parameter NameTypeDescription
ThreadPool_Work Items_Queued_LengthintThread 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.

Update History​

DateVersionDescription
2025-11-281.0Initial version

Last updated: 2025-11-28