PerformanceCounterCategory.Create() takes 3 minutes to add a new category!!

  • Thread starter Thread starter DR
  • Start date Start date
D

DR

PerformanceCounterCategory.Create() takes 3 minutes to add a new category!!

If I run PerformanceCounterCategory.Create() on my development machine it
only takes a
few seconds. But on remotely monitored machines it takes 3 minutes! Is this
because the
other machines are remotely monitored? Something else?

What all can make PerformanceCounterCategory.Create() take 3 minutes to add
a new category??
 
I am not creatign them on remote computers. I am creating them localy, but
it takes 3 minutes! i am asking what could cause this? perhaps if the
perfmon is being remotely viewed could this be causing this?

Peter Ritchie said:
Odd, the documentation states "First, you cannot create custom categories
and
counters on remote computers." [1]

[1] http://msdn2.microsoft.com/en-us/library/5e3s61wf(VS.85).aspx
--
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#


DR said:
PerformanceCounterCategory.Create() takes 3 minutes to add a new
category!!

If I run PerformanceCounterCategory.Create() on my development machine it
only takes a
few seconds. But on remotely monitored machines it takes 3 minutes! Is
this
because the
other machines are remotely monitored? Something else?

What all can make PerformanceCounterCategory.Create() take 3 minutes to
add
a new category??
 
Ah, okay. If something's heavily using performance counters, yes, it may
affect how long it takes to create a custom category.


--
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#


DR said:
I am not creatign them on remote computers. I am creating them localy, but
it takes 3 minutes! i am asking what could cause this? perhaps if the
perfmon is being remotely viewed could this be causing this?

Peter Ritchie said:
Odd, the documentation states "First, you cannot create custom categories
and
counters on remote computers." [1]

[1] http://msdn2.microsoft.com/en-us/library/5e3s61wf(VS.85).aspx
--
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#


DR said:
PerformanceCounterCategory.Create() takes 3 minutes to add a new
category!!

If I run PerformanceCounterCategory.Create() on my development machine it
only takes a
few seconds. But on remotely monitored machines it takes 3 minutes! Is
this
because the
other machines are remotely monitored? Something else?

What all can make PerformanceCounterCategory.Create() take 3 minutes to
add
a new category??
 
Back
Top