You are on page 1of 39

Internet Information Server

Module

Improving Site Performance


jingyu November 1998
11 1-1
Internet Information Server

Overview
• Bottleneck problem
• Network Performance analysis tools
• Improve IIS performance
• Improve Index server performance
• Improve SMTP performace
• Improve NNTP perormace
• Using content Analzer
jingyu November 1998 1-2
Internet Information Server
bottleneck
• Memory
• Page Faults/sec <5
• Page /sec <20
• Available Bytes >4M
• Disk
• Disk queue lengthen
• %disk time
(Diskperf –y restart
• Network
• %network utilization
• CPU
• %processor time
jingyu November 1998 1-3
Internet Information Server

Performance Analysis Tools


• NETSTAT
• Network Monitor
• Performance Monitor
• Event viewer
• Task manager

jingyu November 1998 1-4


Internet Information Server

Using Log
• Content analyzer
• Usage import
• Report writer

jingyu November 1998 1-5


Internet Information Server

Improving IIS performance


• Connections and timeout
• Performance tuning
• Enable Bandwidth Throttling
• HTTP Keep-Alive Enabled

jingyu November 1998 1-6


Internet Information Server

Improving index server performance


• Memory
Number of Documents Recommended Memory
(in megabytes)

Fewer than 100,000 32(32)

100,000-250,000 64-128(32)

250,000-500,000 128-256(64)

500,000 or more 256 or more(128)


jingyu November 1998 1-7
Internet Information Server

Improving index server performance


• Disk required
free disk= total corpus( 40%)
index file need 3M~12M disk space
• Index using .IDQ file is faster than using
.asp

jingyu November 1998 1-8


Internet Information Server

Improving index server performance


• Monitor index server
• Performance monitor
• .ida file
[Admin]
CiCatlog=
CiTemplate=/script/srchadm/state.htx
CiAdminoperation=GetState

jingyu November 1998 1-9


Internet Information Server

Improving SMTP performance


• Limit connection
• income 1000
• Outcome 500
• Timeout 600s
• Limit connection per Domain 100
• Mail limit
• Maximum message size
• Maximum session size

jingyu November 1998 1 - 10


Internet Information Server

Improving SMTP performance


• Smart Host
• Perform Reverse DNS lookup on incoming
message

jingyu November 1998 1 - 11


Internet Information Server

Improving NNTP performance


• Connection 5000
• Timeout 600s
• Limit post size

jingyu November 1998 1 - 12


Internet Information Server

Content analyzer

jingyu November 1998 1 - 13


Internet Information Server

Lab 11:

jingyu November 1998 1 - 14


Internet Information Server

Review

jingyu November 1998 1 - 15


Internet Information Server

Examples
• Minimize the number of open inactive
sessions ,without changing the connection
timeout or the maximum number of connections
Action:
uncheck the HTTP-Alive checkbox

jingyu November 1998 1 - 16


Internet Information Server

Module 11

The End

jingyu November 1998 1 - 17


Internet Information Server

Module

Troubleshooting
jingyu November 1998
12 1 - 18
Internet Information Server

Overview
• Troubleshooting TCP/IP
• IIS problem
• IIS access errors
• Application cannot run
• Remote access denied
• Data access error
• Host header
• Index server

jingyu November 1998 1 - 19


Internet Information Server

Troubleshooting TCP/IP
• PING
• TRACERT
• NSLOOKUP
• IPCONFIG
• NETSTAT
• ARP

jingyu November 1998 1 - 20


Internet Information Server

IIS problem
• Installation
• Deploy
• IIS secure
– IUSR_computername permission
– Authentication
– Access permission(directory,file, site )
– NTFS(directory ,file )

jingyu November 1998 1 - 21


Internet Information Server

IIS access errors


• 403.1 forbidden: execute access forbidden
• 403.2 forbidden: read access forbidden
• 403.3 forbidden: write access forbidden
• 403.4 forbidden: SSL required
• 403.5 forbidden: SSL 128 required
• 403.6 forbidden: IP address rejected
• 403.7 forbidden: client certificate required

jingyu November 1998 1 - 22


Internet Information Server

IIS access errors


• 403.8 forbidden: site access denied
• 403.9 access forbidden: too many users are
connected
• 403.10 access forbidden: invalid configration
• 403.11 access forbidden: password change
• 403.12 access forbidden: access mapper denied
access
• 403.14 forbidden: Directory listing denied
jingyu November 1998 1 - 23
Internet Information Server

Application can’t run


• None
• Script
• execute

jingyu November 1998 1 - 24


Internet Information Server

Remote access denied


• Assign Virtual directory to remote
computer
domain or computer name\username

jingyu November 1998 1 - 25


Internet Information Server

Database access problem


• Datasource name(.IDC)
----502error bad Gateway
• No User and password in .IDC
-----not defined as a valid user of a trusted
SQL Server connection
• SQL Server connection error(pipe busy,
connection is busy,timeout expired)
• Access SQL Server Denied
jingyu November 1998 1 - 26
Internet Information Server

Database access errors


– ODBC Error 80004005" LOGIN FAILURE
– The user has insufficient right to access the database
– ODBC Error 80004005" SOURCE NAME NOT FO
UND OR NO DEFAULT DRIVER FOUND.
– Incorrectly configured Data Source Name (DSN).(in G
LOBAL.ASA file)

jingyu November 1998 1 - 27


Internet Information Server

Database access errors


– ODBC Error 80004005" cannot find name space
– The database was recently moved to another server
– ODBC Error 80004005" General Network Error.
– Due to heavy use the database has been recently moved
to another server(X)
– Recent version s of the database changed the connectio
n method from named pipes to TCP/IP

jingyu November 1998 1 - 28


Internet Information Server
Database access errors
– ODBC Error 80004005" cannot open file”(unkown)’,it
isalready open exclusively by another user ,or you need
permission to view its data
– The user has insufficient right to access the database
– ODBC Error 80004005" couldn’t use”(unknown)”;file
already in use.
– Database file you are attempting to access is configured fo
e single-user use only ,and the file is already open
– ODBC Error 80004005" ConnectionOpen(create file)
– The user has insufficient right to access the database.
( using IUSR_computername account to access remote da
tabase.)
jingyu November 1998 1 - 29
Internet Information Server

Host header
http1.1 support
Host header name solution

jingyu November 1998 1 - 30


Internet Information Server

Index server
• .IDQ local in /script directory
– Script or execute pemission
• Disk full
• Index this directory
• Cannot return documents from remote
virtual directory

jingyu November 1998 1 - 31


Internet Information Server

Lab 12:

jingyu November 1998 1 - 32


Internet Information Server

Review

jingyu November 1998 1 - 33


Internet Information Server

Examples
• You setup a script on server .it works for
some users but not others. The directory is
set up for read access?
Set up for read
Set up for execute as well
Set NTFS read rights for users
Set NTFS execute rights for users

jingyu November 1998 1 - 34


Internet Information Server

examples
• When you try to run ISAPI Extension .you
receive the messages:
HTTP error 403
403.2 Forbidden :Read Access Forbidden
why?
the directory including ISAPI have script
permission but no read rights

jingyu November 1998 1 - 35


Internet Information Server

Module 12

The End

jingyu November 1998 1 - 36


Internet Information Server

Module

Certificate Server
jingyu November 1998
13 1 - 37
Internet Information Server

jingyu November 1998 1 - 38


Internet Information Server

Module 13

The End

jingyu November 1998 1 - 39

You might also like