Performance Tuning and Optimizing ASP.NET Applications

S

SalesQueryCounter, 158

SaveViewState() method, 34

scalability

assessing, 1012

defined, 8, 1011

dimensions, 12

horizontal, 261

memory usage and, 142143

session state and, 138144

testing, 261

vertical, 261

scaling up/out, 12

scavenging, 168, 187

ScheduleTaskRunScript1.vbs file, 276, 284

SchemaOnly property, 78

scripts

ACT tool, 17, 289292, 295

client-side, 22, 250, 325330

remote, 231

section handlers, 5152

Secure Sockets Layer (SSL) protocol, 17

SecureNorthwind.asmx Web service, 241242

security

federated, 240

integrated, 76

view state, 4344

Web services, 240244

Select() method, 315

SelectCommand property, 86

Send() method, 287

SendRequest() method, 285, 290

SequentialAccess property, 78

serialization, 37, 145, 247

server farms

implementing view state in, 4446

See also Web farms

Server Variables trace output section, 334

ServerFaultCode, 223

servers

ISA, 170, 203204

proxy, 170

See also SQL Server

server-side consumers, 217230

asynchronous Web method calls, 225230

consuming the Web service, 220222, 226229

exception handling for, 222225

synchronous Web method calls, 217225

Service Description file, 212213

session ID, 124

Session objects, 123, 144, 163

Session() property, 32

session state, 123, 124147

ASP.NET management of, 126

classic ASP management of, 125

configuring and using, 127

managing in Web farms, 125, 126, 146147

modes, 127132, 138144

InProc mode, 127

Off mode, 127, 128

SQLServer mode, 128130

StateServer mode, 127128

overview of, 124

performance analysis, 132133

programming with, 144146

sample Web page with, 133136

scalability and, 138144

stress testing with, 136144

analyzing results of, 138144

steps in process of, 136137

view state vs., 4648

Session variables, 4648

Session_End() event handler, 157

SessionID property, 144

Session_Start() event handler, 157

SessionState element, 53, 127

Set() method, 151

SetCacheability() method, 183, 184

SetExpires() method, 183, 184

SetLastModified method, 184

SetNoServerCaching method, 185

SetSlidingExpiration method, 184

SetValidUntilExpires method, 184

Shared attribute, 177, 178

shared caching, 177

ShutdownTimeout attribute, 59

Simple Object Access Protocol. See SOAP

simulation, 17

SingleCall mode, 246

SingleResult property, 79

SingleRow property, 79

Singleton mode, 246

sliding expiration, 170, 184, 188, 190, 191

slidingExpiration parameter, 188

SOAP (Simple Object Access Protocol)

exception handling, 222225, 238240

headers, 241244, 249

security extensions, 240244

Web service communications, 22, 112, 196, 207, 208

SoapException class

exception handling using, 222224

properties used in constructing, 223

raising a SOAP exception server fault code, 224225

SoapHeader base class, 241

SoapHeaderAttribute(), 241

Software Development Kit (SDK), 250, 298

software issues, 9

solution build configurations, 299, 304306

SQL data types, 118

SQL Server

caching mechanism in, 202

data typing system, 8384

SQL data types used with, 118

trusted connections, 7577

XML functionality, 80

SQL Server .NET data provider, 68

SqlException class, 108110

SQLServer mode, 128130, 138, 146, 163

SSL protocol, 17

StartTest() method, 284

startup projects, 306

state management, 4, 123165

application state, 123, 147162

considerations for choosing, 162164

Global.asax file, 156162

session state, 123, 124147

summary of, 164165

StateBag class, 36

StateServer mode, 127128, 138, 146147, 163

StaticObjects property, 151

steady-state , 255

sticky sessions, 201

StopTest() method, 284

stored procedures, 117118

stress testing, 15, 17, 260261

ACT tool for, 132, 263295

analyzing results of, 138144, 280282

customizing tests, 268273

dynamic tests and, 267268

performance counters for, 273274, 278

reporting level for, 275

running performance tests, 275278

saving tests and reports , 268, 278280

session state, 136144

setting up tests, 265268

See also performance testing

String object, 152

synchronous Web services, 217225

syntax/compilation exceptions, 297

System.Configuration namespace, 5455

System.Data.Common namespace, 64

System.Data namespace, 2, 64

System.Data.OleDb namespace, 64

System.Data.SqlClient namespace, 64

System.Data.SqlTypes namespace, 64, 83, 118

System.Diagnostics namespace, 324, 346

System.Security.Cryptography namespace, 45

System.Web.Caching namespace, 187

System.Web namespace, 2, 183

System.Web.Services namespace, 209211

System.Web.Services.Protocols namespace, 241

System.Web.UI namespace, 33

System.Xml namespace, 64

System.Xml.Schema namespace, 65

System.Xml.Xsl namespace, 65

Категории