(Near) Real-Time Bandwidth Monitoring

While there are plenty of performance counters that allow you to learn about
the bandwidth usage of an IIS6 server... they all seem to update only after
a given connection has completed (ie after a file has already been
downloaded), something that doesn't work well for me as I need to be able to
learn about downloads from the server of large files at a slow rate.

Is there anyway using performance counters or some other mechanism that can
be scripted or programmed against to get a near real time approximate
snapshot of current bandwidth usage of IIS itself (or a given web site)?

Thanks,
Brendan
Brendan Grant [ Mo, 14 Januar 2008 03:57 ] [ ID #1907417 ]

Re: (Near) Real-Time Bandwidth Monitoring

On Jan 13, 6:57=A0pm, "Brendan Grant" <gra... [at] dahat.com> wrote:
> While there are plenty of performance counters that allow you to learn abo=
ut
> the bandwidth usage of an IIS6 server... they all seem to update only afte=
r
> a given connection has completed (ie after a file has already been
> downloaded), something that doesn't work well for me as I need to be able =
to
> learn about downloads from the server of large files at a slow rate.
>
> Is there anyway using performance counters or some other mechanism that ca=
n
> be scripted or programmed against to get a near real time approximate
> snapshot of current bandwidth usage of IIS itself (or a given web site)?
>
> Thanks,
> Brendan


IIS6 does not have any counters or any other mechanism to get [near]
real-time approximate bandwidth usage.

You can get that approximation with an ISAPI Filter listending on
SendRawData which tracks the bytes being sent. However, be aware that
such an ISAPI Filter will kill performance on the server in its
monitoring, especially for the static file download scenario because
it will prevent kernel response caching *AND* disable efficient data
transfer via TransmitFile. This is potentially a 10x decrease in
performance.

You can decide whether the real-time monitoring benefits is worth the
devastating effect of monitoring. Basically, if you can watch
something, you affect its cacheability and potentially kernel-user
transitions (to update progress).


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
David Wang [ Mo, 14 Januar 2008 07:22 ] [ ID #1907419 ]

Re: (Near) Real-Time Bandwidth Monitoring

Thanks, looks like I'll be dusting off the good ole C++ side of Visual
Studio.


"David Wang" <w3.4you [at] gmail.com> wrote in message
news:a9d5906d-9736-463a-94cd-2fd007e774d9 [at] e23g2000prf.google groups.com...
On Jan 13, 6:57 pm, "Brendan Grant" <gra... [at] dahat.com> wrote:
> While there are plenty of performance counters that allow you to learn
> about
> the bandwidth usage of an IIS6 server... they all seem to update only
> after
> a given connection has completed (ie after a file has already been
> downloaded), something that doesn't work well for me as I need to be able
> to
> learn about downloads from the server of large files at a slow rate.
>
> Is there anyway using performance counters or some other mechanism that
> can
> be scripted or programmed against to get a near real time approximate
> snapshot of current bandwidth usage of IIS itself (or a given web site)?
>
> Thanks,
> Brendan


IIS6 does not have any counters or any other mechanism to get [near]
real-time approximate bandwidth usage.

You can get that approximation with an ISAPI Filter listending on
SendRawData which tracks the bytes being sent. However, be aware that
such an ISAPI Filter will kill performance on the server in its
monitoring, especially for the static file download scenario because
it will prevent kernel response caching *AND* disable efficient data
transfer via TransmitFile. This is potentially a 10x decrease in
performance.

You can decide whether the real-time monitoring benefits is worth the
devastating effect of monitoring. Basically, if you can watch
something, you affect its cacheability and potentially kernel-user
transitions (to update progress).


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
Brendan Grant [ Mo, 14 Januar 2008 18:04 ] [ ID #1907431 ]
Webserver » microsoft.public.inetserver.iis » (Near) Real-Time Bandwidth Monitoring

Vorheriges Thema: SMTP CDONTS
Nächstes Thema: W3wp.exe taking 100% cpu load on server?