httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff White" <jlw...@earthlink.net>
Subject Re: [users@httpd] Apache very slow on Windows 2000
Date Tue, 07 Oct 2003 18:04:03 GMT

From: "Harry Sufehmi"

> I even reinstalled this workstation,
> and still no change.

Windows has many wonderful built-in actions
to accomplish what you seem to want to do but
you have not explained it clear enough and with
enough "facts", file types, file sizes, headers,
network settings,netmon dumps, browser settings,
and etc. in order for others to really help you.

Try showing the results of some VBScript
Windows Scripting scripts that provide lots
of the above settings information while
running Apache on Windows.

Examples:

Now one can find the various "settings" of Windows
OS "actions" for use with Apache on Windows web
server with programs written with the free compilers
via the built-in .NET Frameworks

<quote>

You can download the entire .Net SDK
for free from the Microsoft web site,
here is the download URL:

.NET Framework SDK Version 1.1
http://www.microsoft.com/downloads/details.aspx?FamilyId=9B3A2CA6-3647-4070-9F41-A333C6B9181D&displaylang=en

</quote>

or with scripts via the built-in Windows Script
Host (WSH).

With either product, .NET Frameworks or
Windows Script Host, use the language of
your desire (.NET Frameworks has over
45+ computer languages available).

Since not all (yet) Apache on Windows
web server admins have the free .NET
Frameworks CSharp compiler and since
all Apache on Windows web server users
have VBScript built-in, and VBScript is so
easy to use and follow along with, lots of
people always use VBScript for examples
(and everyday usage).

But one may also use Perl, JScript, Ruby
and others such scripting languages with the
Windows Script Host too.

Anyway all the users of Apache on Windows
web servers already have available to them
two built-in scripting languages, VBScript and
JScript, accessible via the built-in Windows
Script Host(s) of Cscript.exe for CUI command
prompt window type usage and Wscript.exe for
GUI Windows MsgBox dialog type usage or even
a combination of Cscript.exe CUI also displaying
GUI dialogs.

Example:

Save the below VBScript language script file as
ShowVer.vbs into any folder.

'* Start of file.

strWorker = "Running Windows Script Host " _
  & Wscript.Version & vbCrLf _
  & "using " & GetScriptEngineInfo()

Wscript.Echo strWorker

Wscript.Quit

Function GetScriptEngineInfo()
   Dim s
    '* Build the version string.
   s = ""
   s = s & ScriptEngine() & " Version "
   s = s & ScriptEngineMajorVersion() & "."
   s = s & ScriptEngineMinorVersion() & "."
   s = s & ScriptEngineBuildVersion()
   GetScriptEngineInfo = s
End Function

'* End of file.

After saving the above file ShowVer.vbs into
any folder, then in a command prompt window
changed to the same folder that ShowVer.vbs
was saved into, then for CUI usage type:

cscript.exe ShowVer.vbs

Then in a command prompt window for
GUI usage type:

wscript.exe ShowVer.vbs

If your Windows Scripting files are up to
date ShowVer.vbs returns:

Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Running Windows Script Host 5.6
using VBScript Version 5.6.8515

in the command prompt CUI cscript.exe window
and in the GUI Wscript.exe MsgBox dialog type
window.

<quote>

For upgrades and/or to install on older OS versions.

Windows Script Host 5.6 download
http://www.microsoft.com/downloads/details.aspx?FamilyId=C717D943-7E4B-4622-86EB-95A22B832CAA&displaylang=en

And for CHM Compiled HTML Help File
Windows Script Host 5.6 documentation download
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en

</quote>

Now that you see the main difference between
the two Windows Script hosts, Cscript.exe and
Wscript.exe, let's move on to listing examples
of your needs in Windows Scripting using VBScript.

Networking
http://www.microsoft.com/technet/scriptcenter/network/default.asp

Enumerating Network Adapter Configuration Properties
http://www.microsoft.com/technet/scriptcenter/network/scrnet12.asp

Set the TCP Window Size for All Network Adapters
http://www.microsoft.com/technet/scriptcenter/network/scnet135.asp

And of course, try  the other networking links
available under Networking (or any subject)
for the other VBScript Window Scripting scripts
available in the left side menus.

Monitoring
Processes
Services
Logs
etc.

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

For more help with Windows Scripting:

Administration scripting examples and an ONLINE
version of the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter

<quote>

This book is designed to teach you basic concepts
underlying Microsoft scripting technologies such as
Microsoft Visual Basic Scripting Edition (VBScript),
Windows Script Host (WSH), Active Directory Service
Interfaces (ADSI), and Windows Management
Instrumentation (WMI).

</quote>

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

<quote>

This help file contains all the scripts
found in the TechNet Script Center.

</quote>

CHM Compiled HTML Help File
TechNet Script Center Sample Scripts
http://www.microsoft.com/downloads/release.asp?ReleaseID=38942

<quote>

Contains complete documentation for
JScript, VBScript, Windows Script Host,
Windows Script Components, Remote Scripting,
Script Control, and Script Debugger.

</quote>


CHM Compiled HTML Help File
Windows Script Host (WSH) 5.6 documentation
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en

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


Mime
View raw message