Web Services Performance

snortfearΔιακομιστές

4 Δεκ 2013 (πριν από 3 χρόνια και 8 μήνες)

345 εμφανίσεις

Web Services Performance

Technical Brief

Presented by FileNet Product Marketing

July

200
8

www.filenet.com

FileNet Corporation 3565 Harbor Boulevard, Costa Mesa, CA USA 92626
-
1420 Phone: +1.800.345.3638 Outside the U.S. call +1.
51
2.434.5935

page
1













Introduction

This document describes settings that are generally recommended to
increase performance and stability of Web Services. FileNet recommends
that you run Web Services on Windows 2000 / IIS 5.0
or
Windows 2003

/
IIS 6.0 and
evaluate the t
uning recommendations defined below. These
recommendations have proven beneficial in customer production
environments and in FileNet Engineering test environments.

Prior to modifying your production environment, further research these
parameters at the Mi
crosoft web site and confirm that the modifications
will have a positive effect in your test environment.
In some situations,
overall performance may in fact degrade.


Active Server Pages (ASP)

Tuning


The
ASPThreadGateEnabled

parameter enables IIS to d
ynamically manage
the number of ASP worker threads for each processor based on the CPU
usage. When the ASPThreadGateEnabled value is set to 1 (true), IIS
dynamically changes the number of threads in response to variations in the
system workload. Setting A
SPThreadGateEnabled to true notably increased
performance in FileNet test environments.

To set ASPThreadGateEnabled to true, use Adsutil.vbs. The Windows Script
Host must be installed on the server to run this Visual Basic script:

cscript C:
\
Inetpub
\
Admi
nScripts>cscript adsutil.vbs

set w3svc/ASPThreadGateEnabled 1


More information on ASPThreadGateEnabled can be found at the following
link:

http://www.microsoft.com/windows2000/en/server/iis/default.asp?url=/windows
2000/en/server/iis/htm/asp/apro4s9w.htm


TCP/IP Tuning

The
MaxUserPort

parameter allows you to specify the number of TCP
ports that are available. Performance m
ay improve if you increase this
value from the default setting of 5000 ports to a larger value, up to the
maximum value of 65535. Use Perfmon to monitor the number of TCP


Technical Brief

Web Services Performance

July

200
8

www.filenet.com

FileNet Corporation 3565 Harbor Boulevard, Costa Mesa, CA USA 92626
-
1420 Phone: +1.800.345.3638 Outside the U.S. call +1.
512.434.5935

page
2







connections during peak loads. If the number of connections approaches
5000 ports,
increase the value of MaxUserPort.

The
TCPTimedWaitDelay
setting determines the time that must elapse
before TCP can release a closed connection and reuse its resources.
Reducing the value of this entry allows TCP to release closed connections
faster, wh
ich provides more resources for new connections. However, if
the value is too low, TCP might release connection resources before the
connection is complete, requiring the server to use additional resources to
reestablish the connection.

FileNet recommends

that you reduce this
value from the default of 240 seconds to 30 seconds.

These parameters are modified using the Registry Editor
(REGEDT32.EXE). The parameters are located in the following directory.

HKEY_LOCAL_MACHINE
\
SYSTEM
\
CurrentControlSet
\
Services
\

Tcpip
\
Parameters.


Internet Information Server (IIS)

Tuning

Evaluate the following five IIS settings to increase performance:
ProcessorThreadMax
,
RequestQueueMax,

MaxPoolThreads
,
ServerListenBacklog
, and
MaxEndPointConnections
.

The
ProcessorThreadMax

registry setting allows you to adjust the
number of threads per processor. During peak load, monitor the
Processor Time (for each processor) and Active Server Pages


Total
Queue Length. If the processors are running below 50% and the Total
Queue Length

goes up and down, it is likely that you would benefit from
adjusting the ProcessorThreadMax setting. Microsoft suggests that you
start by doubling the default value from 10 (the default) to 20.

The
RequestQueueMax

registry setting allows you to ensure go
od
response times while minimizing “Server Too Busy” errors. As a starting
point, Microsoft suggests a one
-
to
-
one ratio of queue to total threads.
Example: If ProcessorThreadMax is set to 25 and you are running on a
two
-
processor machine, set RequestQueu
eMax at 50 and tune from
there.


These parameters are modified using the Registry Editor
(REGEDT32.EXE). The parameters are located in the following directory.

HKEY_LOCAL_MACHINE
\
SYSTEM
\
CurrentControlSet
\
Services
\
W3SVC
\
ASP
\
Parameters.

Detailed informati
on on how to properly tune IIS with these parameters is
described in the Microsoft White Paper, “Tuning Internet Information
Technical Brief

Web Services Performance

July

200
8

www.filenet.com

FileNet Corporation 3565 Harbor Boulevard, Costa Mesa, CA USA 92626
-
1420 Phone: +1.800.345.3638 Outside the U.S. call +1.
512.434.5935

page
3







Server Performance”, which can be found at the following link:
http://www.microsoft.com/serviceproviders/whitepapers/tuningiis.asp


The
MaxPoolThreads

registry setting allows you to change the maximum
number of threads per processor in IIS. By default, the IIS process
creates up to four threads per

processor. IIS 5.0
or IIS 6.0
dynamically
adjusts the number of threads per process based on server activity.
Consider increasing this value if the processors are not always active and
all threads appear busy.

To specify a MaxPoolThreads setting, you m
ust add the MaxPoolThreads
entry to the system registry using the Registry Editor (REGEDT32.EXE).
The entry should be added to the following location:

HKEY_LOCAL_MACHINE
\
SYSTEM
\
CurrentControlSet
\
Services
\

Inetinfo
\
Parameters

Detailed information on MaxPo
olThreads can be found on Microsoft’s
Resource Kits web site, at the following link:

http
://www.microsoft.com/windows2000/techinfo/reskit/en
-
us/default.asp?url=/windows2000/techinfo/reskit/en
-
us/iisbook/c05_optimizing_thread_values.asp


The
ServerListenBacklog

and
MaxEndPointConnections

metabase
settings allow you to improve performance in si
tuations where IIS may
stop responding to client requests due to a lack of resources at the
application layer. This situation is confirmed when a Network Monitor
trace indicates that the server immediately resets TCP connections.

The ServerListenBacklo
g property specifies the number of outstanding
sockets that can be queued.

The MaxEndpointConnections property specifies the maximum number of
listen sockets aggregated on a network endpoint. For example, if this
value is set to 15, a maximum of 15 total
connections can be made to a
single port, even if more than one domain is bound to the port. A value of

1 sets no limit (unlimited).

As a starting point, set ServerListenBacklog to 1000 and
MaxEndPointConnections to

1 (the default).

These settings can

be changed using Adsutil.vbs. The Windows Script
Host must be installed on the server to run this Visual Basic script:

cscript C:
\
winnt
\
system32
\
inetsrv
\
adminsamples
\
adsutil.vbs

SET w3svc/1/ServerListenBacklog 1000


Technical Brief

Web Services Performance

July

200
8

www.filenet.com

FileNet Corporation 3565 Harbor Boulevard, Costa Mesa, CA USA 92626
-
1420 Phone: +1.800.345.3638 Outside the U.S. call +1.
512.434.5935

page
4







Further guidance on adjusting thes
e parameters can be found at the
following link:

http://support.microsoft.com/default.aspx?scid=KB;EN
-
US;Q229814&
.


About FileNet

FileNet Corporation (NASDAQ: FILE) helps or
ganizations make better decisions
by managing the content and processes that drive their business. FileNet’s ECM
solutions allow customers to build and sustain competitive advantage by
managing content throughout their organization, automating and streamli
ning
their business processes, and providing the full
-
spectrum of connectivity needed
to simplify their critical and everyday decision
-
making.

Since our founding in 1982, more than 3,700 organizations, including 80 of the
Fortune 100, have come to depend o
n FileNet solutions for help in managing
their mission
-
critical content and processes.

Headquartered in Costa Mesa, California, FileNet markets its innovative
solutions in more than 90 countries through its own global sales, professional
services and suppo
rt organizations, as well as through its ValueNet
®
Partner
network of system integrators, value
-
added resellers, and application developers.

FileNet is a registered trademark of FileNet Corporation. ©2003 FileNet Corporation. All Rights
Reserved.