You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Robert Andersson <ro...@profundis.nu> on 2003/12/01 13:37:59 UTC

Re: [users@httpd] Help - Apache:server-status:CPU usage ?

KAN NAN wrote:
> Why I can't see CPU usage data in those details.
> [...]
> Or is it because Iam running on Windows ?

Bingo!

Regards,
Robert Andersson

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Help - Apache:server-status:CPU usage ?

Posted by Jeff White <jl...@earthlink.net>.
----- Original Message ----- 
From: "Robert Andersson" <ro...@profundis.nu>
To: <us...@httpd.apache.org>
Sent: Monday, December 01, 2003 6:55 AM
Subject: Re: [users@httpd] Help - Apache:server-status:CPU usage ?


> KAN NAN wrote:
> > [Robert Andersson wrote:]
> > > KAN NAN wrote:
> > > > Why I can't see CPU usage data in those details.
> > > > [...]
> > > > Or is it because Iam running on Windows ?
> > >
> > > Bingo!
> >
> > What do u mean by that?
>
> Your guess is correct; that information isn't available available on
Windows
> (as far as I can determine from the source).
>
> Regards,
> Robert Andersson
>

But Windows users can let Windows
provide lots of this information via
Windows Scripting.

Use the built-in Windows Script Host
(WSH) engine cscript.exe to run these
Windows Scripts (easy to adjust to
your needs):

cscript.exe scriptFilename.vbs

Monitor Process Performance
http://www.microsoft.com/technet/scriptcenter/monitor/scrmon28.asp

Monitor Processor Use by Process
http://www.microsoft.com/technet/scriptcenter/monitor/scrmon27.asp

Monitor File Creation
http://www.microsoft.com/technet/scriptcenter/filefolder/scrff44.asp

Monitor File Deletion
http://www.microsoft.com/technet/scriptcenter/filefolder/scrff45.asp

Monitor File Modification
http://www.microsoft.com/technet/scriptcenter/filefolder/scrff46.asp

Monitor Threads
http://www.microsoft.com/technet/scriptcenter/process/scrpcs06.asp

And many more scripts at:

Microsoft Script Center
http://www.microsoft.com/technet/scriptcenter/default.asp

An ONLINE version of the 1328 page Scripting Guide:
Windows 2000 Scripting Guide

Microsoft Windows 2000 Scripting Guide
http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp

After you learn how to use the above VBScript
scripts then try Windows Scripting with more
Windows Management Instrumentation (WMI)
classes like the Performance Counter Classes
too!

Windows XP and up can use the newer
Win32_PerfFormattedData class types,
where as Windows 2000 must use the
old Win32_PerfRawData classes and
use "two takes" of the classes and then
do the "compare math" themselves.

Win32_PerfRawData_PerfNet_Redirector
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_perfrawdata_perfnet_redirector.asp

Win32_PerfRawData_Tcpip_TCP
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_perfrawdata_tcpip_tcp.asp

While at the above sites click on these
names below to see how IIS uses WMI:

Win32_PerfFormattedData_W3SVC_WebService
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_perfrawdata_w3svc_webservice.asp

Win32_PerfFormattedData_ASP_ActiveServerPages
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_perfrawdata_asp_activeserverpages.asp

Win32_PerfFormattedData_InetInfo_InternetInformationServicesGlobal
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_perfrawdata_inetinfo_internetinformationservicesglobal.asp

Jeff






---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Help - Apache:server-status:CPU usage ?

Posted by Robert Andersson <ro...@profundis.nu>.
KAN NAN wrote:
> [Robert Andersson wrote:]
> > KAN NAN wrote:
> > > Why I can't see CPU usage data in those details.
> > > [...]
> > > Or is it because Iam running on Windows ?
> >
> > Bingo!
>
> What do u mean by that?

Your guess is correct; that information isn't available available on Windows
(as far as I can determine from the source).

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org