Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Citrixファームを実行していて、DBのヘビーユーザーを追跡しようとしています。SQLプロファイラーからプロセスのPIDを取得できますが、ファーム内の各サーバーでそのPIDを手間をかけて検索する必要があります。より良い方法は?
Citrix API (WFAPI) を使用して、ファーム内の Citrix サーバー (WFEnumerateServers) をプログラムで列挙し、すべてのプロセス (WFEnumerateProcesses) を列挙します。もちろん、同じ PID を持つことは可能であるため、正しいものを特定する方法 (ユーザー名など) が必要です。また、PID は再利用でき、PID と starttime の組み合わせによってのみ一意になることにも注意してください。