Monitoring my c# application with PerfMon

P

Paul Tomlinson

Can anyone point me to a source of information wherby I can monitor the
amount of memory, cpu etc that my app is consuming using PerfMon. Do I need
to do anything special within my app to allow this to happen?

Apologies for the noob like question :-/, this performance monitoring is new
to me.

RD
 
M

MarkR

Memory use in managed code is not an obvious thing, because the CLR
allocates large blocks which it then allocates and reclaims from the
application(s) as needed. Thus, the "Memory" value in the Task
Manager/PerfMon is not entirely accurate.

There are some Managed Code counters in PerfMon that may work (I think they
track garbage collection and heap allocations), and the (commercial)
profiler AQTime has some sophisticated memory usage graphs.

HTH,
/m
 
W

Willy Denoyette [MVP]

Paul Tomlinson said:
Can anyone point me to a source of information wherby I can monitor the
amount of memory, cpu etc that my app is consuming using PerfMon. Do I
need to do anything special within my app to allow this to happen?

Apologies for the noob like question :-/, this performance monitoring is
new to me.

RD

Your application is just another windows application, so there is nothing
special you should do to use perfmon and monitor the process memory
counters. Note that the CLR has his own category of memory counters, you can
monitor to have an idea about your managed heap allocation scheme.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top