Score:0

How can I resolve or trace the latency on Remote Performance Counter request?

gr flag

I have a Powershell script which directly accesses a performance counter from a remote machine in the cloud in a large corporate environment:

$a = (Get-Counter -Counter "\\myservername\PI Analysis Service\Recalculation Requests Completed" -ErrorAction Stop)

The first time this line runs, the application hangs and it takes 4 minutes to reach the next line of code.

All following (identical) queries return in <1s.

Is this order of delay typical for accessing performance counters remotely?

What's the best way to trace the request and find out why it's taking so long?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.