Hi,
i'm currently working on a way to determine current
database-connection-usage (Unpooled Connection, Pooled Connections,
...) and website monitoring (threadcount, ...) without using the
WindowsNT-Performance-Counters.
I want to use this for instrumentation purposes (so i can tell anywhere
in my .net code e.g. how many database connections are currently in use
by the aspnet_wp - process).
I want to keep the performance overhead as small as possible - so i
want to avoid using the perfmon infrastructure.
Any suggestions appreciated.
br
HPW
David Browne - 27 Jun 2006 12:50 GMT
> Hi,
>
[quoted text clipped - 11 lines]
>
> Any suggestions appreciated.
Use the performance counters. You don't have to use perfmon (although I
can't understand why you wouldn't). You can query the counters in code.
David
hape - 27 Jun 2006 14:43 GMT
Thanks for the answer,
i just wanted to avoid using an (As far as i know) Out-Of-Proc-Com-Call
to determine Runtime information about an application i want to insert
Instrumentation info to...
If there is any other way (like
System.Data.SQLClient.Pool.getCurrentPooledIdleConnections() - or
something like that) i would use them.
Unfortunately i did not find such Methods for ADO.net and ASP.net.
Does anyone know, how much overhead a call to the Performance-Counters
costs?
br
Hans-Peter
> > Hi,
> >
[quoted text clipped - 16 lines]
>
> David