Thread table (PITHREAD)
- Last UpdatedJan 13, 2023
- 2 minute read
- PI System
- PI Server
Use the PITHREAD table to view thread activity within the subsystem processes, primarily when troubleshooting. To load this table, specify the subsystem in question. For example, to view attributes associated with PI Snapshot Subsystem, type:
piconfig> @table pithread,pisnapss
Note: The PITHREAD table is primarily a monitoring tool. We recommend using it only with in-depth understanding of threads. Specifically, avoid using it for any modification or thread creation.
|
PITHREAD Attributes |
Description |
|
ID |
Operating system thread ID |
|
Action |
Edit only. See the following table |
|
ActValue |
Edit only. Value for the action performed |
|
Calls |
Number of calls served by the thread |
|
ConnectID |
pinetmgr connection ID of the last client process serviced by this thread |
|
CurTime |
Time spent processing the current RPC request; in milliseconds |
|
Handle |
Subsystem handle |
|
HandleHighBits |
Additional subsystem handle information |
|
LastTime |
Time spent processing the most recently completed RPC request; in milliseconds |
|
PointID |
ID of the point involved in the last operation performed by this thread |
|
PoolName |
Every thread belongs to a thread-pool. We are mainly interested in the RPC thread pool, which serves client calls to a subsystem. |
|
Priority |
The thread priority |
|
RPCName |
Name of the last RPC processed by the thread. |
|
State |
The thread state - generally “Wait” or “InUse” |
|
PITHREAD Actions |
Description |
Action Value |
|
Priority |
Change thread priority |
1 to increase -1 to decrease |
|
Suspend |
Temporary suspensions of thread execution |
|
|
Resume |
Resume a thread previously suspended |
|
|
Terminate |
End this thread |
For example:
* (Ls - ) PIconfig> @table pithread,piarchss
* (Ls - PITHREAD) PIconfig> @ostru id,calls,handle,poolname,priority,state
* (Ls - PITHREAD) PIconfig> @ends
1500,7,212,RPC,0,Wait
1596,9,216,RPC,0,Wait
1504,11,220,RPC,0,Wait
1116,18,224,RPC,0,InUse
2124,9,228,RPC,0,Wait
3664,8,232,RPC,0,Wait
2592,9,236,RPC,0,Wait
3812,7,240,RPC,0,Wait
1216,0,816,EVQ,0,Wait
2488,0,820,EVQ,0,Wait
2736,0,824,EVQ,0,Wait
3140,0,828,EVQ,0,Wait
3012,0,832,EVQ,0,Wait
2356,0,840,Shift,0,Wait
3336,655015,0,Main, ,
3888,166401,248,Message, ,
3016,190,260,Read, ,