0

Advantage ManagementUtilityの[ActiveQueries]タブを見て、パフォーマンスの問題を突き止めようとしています。

このタブのドキュメントには次のように書かれています。

アクティブ:クエリがサーバーによってアクティブに処理されている場合はTrue。キャンセルするには、クエリがアクティブである必要があります。

クエリは完了するまでアクティブですか?または、リソース(ディスクIOまたはロック)を待機するなど、別の理由で非アクティブになる可能性がありますか?

ある時点で「アクティブ」状態のクエリは1〜2個しかないので質問しますが、20以上のワーカースレッドも実行しています。それは私にはほとんど意味がありません。

4

1 に答える 1

2

Active means the server is actively looking for rows to populate the cursor with for the request. It will remain active until enough rows have been made to satisfy the request. If the query needs to wait on a lock or disk I\O it will remain active. One caveat to this is live cursors. Live cursors are treated as tables by the client rather than SQL statements. Are the SQL statements that are open, but not active live cursors?

You might try calling the stored procedure sp_mgGetWorkerThreadActivity to see what commands the other threads are doing.

于 2010-08-26T17:58:32.270 に答える