Home All Groups Group Topic Archive Search About


Author
3 Mar 2006 1:31 PM
Mayhul
Hi there,

Does anyone know how to display the current connection value on a ASP
page. Wanted to know how to read this value into ASP page as opposed to
going to performance monitor

Thanks
Mayhul

Author
6 Mar 2006 1:44 PM
Mayhul
I found the answer if anyone wanted to know

Dim WebPerf, n
Set WebPerf =
GetObject("winmgmts:root\cimv2:Win32_PerfRawData_W3SVC_WebService.Name='_Total'")

n = WebPerf.CurrentAnonymousUsers
Response.Write "Current number of users on this server:" & n

Answer from http://www.motobit.com/tips/detpg_wmi-iis-performance/

AddThis Social Bookmark Button