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 场,我正在尝试跟踪我们数据库的重度用户,我可以从 Sql Profiler 获取进程的 PID,但是我需要在场中的每台服务器中费力地搜索该 PID - 任何人都知道更好的方法?
使用 Citrix API (WFAPI) 以编程方式枚举农场中的 Citrix 服务器 (WFEnumerateServers) 并枚举所有进程 (WFEnumerateProcesses)。当然,可能有相同的 PID,因此您需要一些方法来确定正确的 PID(例如用户名)。另请注意,PID 可以重复使用,只有 PID 和 starttime 的组合才能使其独一无二。