To monitor the processes it is possible to use the following script in Windows Power Shell (see attached file ps.ps1).
To execute from powershell run powershell.exe, then call the following script from the same directory the script is located using the command: ./ps.sp1
# # ps.sp1 (ps like script) # param( [string]$ProcessName ) If ( $ProcessName -eq "" ) { Write-Host Write-Host "ps.ps1, Version 1.00" Write-Host "List processes with name" Write-Host Write-Host "Usage: .\ps.PS1 <Process name>" Write-Host Write-Host "Where: Process Name is the process to be listed" Write-Host "(use * to list all processes)" } Else { for($i=1; $i -le 20; $i++){ps | head -2; get-process $ProcessName ; echo "============" ; start-sleep 1} }
Example
ps _mprosrv Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName ------- ------ ----- ----- ----- ------ -- ----------- 148 11 2548 22564 86 0.09 8184 _mprosrv 149 12 2476 9792 86 1.62 9340 _mprosrv ============
Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName 148 11 2548 22564 86 0.09 8184 _mprosrv 149 12 2508 9816 86 1.79 9340 _mprosrv ============ . . . |