Activity Monitor can be used to kill processes that are not completing:
- View processes
- Filter the Task State to SUSPENDED
- Note the value in the Blocked By column - the SPID
- Filter the Task State to ALL
- Filter the Session ID to the value of the SPID
- Note the value in the Head Blocker column. A 1 indicates this is the cause of blockage
- Right-click the process and view the details. You’ll see the code causing the blockage
- Right-click the session and Kill process
- If the Task State column has no option to filter by SUSPENDED then all is well
N.B. There may be times when the Head Blocker passes from one process to the next (for instance if the problematic query was executed multiple times)
Further reading: Activity Monitor explained
No comments:
Post a Comment