How to Enhance ASP program performance (4)

Source: Internet
Author: User
Tags configuration settings iis microsoft sql server variables visual studio
Program | Performance 2000-08-14 · Compiling: Gan Ganping · Yesky

Tip 16: Use Server.Transfer whenever possible, not Response.Redirect

Response.Redirect tells the browser to request another different page, which is often used to guide the user to the login page or the error-handling page. Because redirection forces a new page request, the result is that the browser must cycle 2 times with the Web server, and the Web server must process an additional request. IIS5.0 introduced a new feature Server.Transfer, which performs page transfers on the same server, which avoids additional browser-web server data loops, forms good system performance, and has better response times for users.

Tip 17: Avoid using server variables

Accessing the server variable causes the Web site to create a special request and collect all the server variables, not the variable you requested. This is similar to retrieving a special file in a folder, and to retrieve a file, you must first obtain information about the folder in which it resides.

Do not access illegal request objects (such as request ("Data"), for those who are not in Request.Cookies, Request.Form, Items in Request.QueryString or request.clientcertificate implicitly point to the Request.ServerVariables variable, which is much slower than other collection objects.

Tip 18: Adjust your Web server

There are several IIS tuning parameters that can improve site performance. For example, for IIS4.0, we often find that improving ASP ProcessorThreadMax parameters can have significant effects, especially in those that wait for background resources such as databases or middleware products. In IIS5.0, you can find that adjusting the ASP thread channel is better than adjusting the AspProcessorThreadMax effect.

The best configuration settings depend on the application code, supported hardware devices, and the workload of the client. The only way to find the best configuration is to test.

Related reference Resources

Optimizing ASP Scripts
Developing Scalable WEB Applications
Got any Cache? by Nancy Winnick cluts
Maximizing the performance of Your Active Server Pages by Nancy Winnick cluts
Seconds:performance section
Enhancing performance in Asp-part I by Wayne Plourde
When is Better worse? Weighing the Technology trade-offs by Nancy Winnick cluts
Speed and optimization resources by Charles Carroll
Tuning IIS
The Art and science of Web Server tuning with Internet information Services 5.0
Leveraging ASP in IIS 5.0 by J.D. Meier
Tuning IIS 4.0 for high Volume Sites by Michael Stephenson
Tuning Internet Information Server performance by Mike Moore
Navigating the Maze of Settings for Web Server performance optimization by Todd Wanke
Managing Internet Information Server 4.0 for performance by Hans Hugli
ADO and SQL Server
Top Ten tips:accessing SQL through ADO and ASP by J.D. Meier
Improve the performance of your MDAC application by Suresh Kannan
Pooling in the Microsoft Data Access components by Leland Ahlbeck and Don Willits
SQL Server:performance Benchmarks and guides
Improving the performance of Data Access components with IIS 4.0 by Leland Ahlbeck
Microsoft Data Access components (MDAC) and ActiveX data Objects (ADO) Performance Tips by Leland Ahlbeck
Microsoft SQL Server 7.0 Practical performance Tuning and optimization-the Server perspective by Damien Lindauer
Microsoft SQL Server 7.0 Practical performance Tuning and Optimization-the application perspective by Damien Lindauer
Accessing recordsets over the Internet by Dino Esposito
ASP Components and threading models
ASP Component guidelines by J.D. Meier
Q243548:INFO:Design guidelines for VB components under ASP
Threading Models explained by Nancy Winnick cluts
So Happy together? Using ActiveX components with Active Server Pages by Nancy Winnick cluts
Developing Active Server components with ATL by George Reilly
Agility in Server components by Neil Allain
Building High-performance Middle-tier Components with C + + by Jon Flanders
Active Server Pages and COM apartments by Don Box
House of Com:active servers Pages by Don Box
House of Com:contexts by Don Box
House of Com:performance Trade-offs of the Windows Component Execution environment by Don Box
Building COM components that Take full Advantage of Visual Basic and scripting by Ivo Salmre
Component design principles for MTS
Dictionary components
Creating a Page Cache Object by Robert Coleridge
abridging the Dictionary object:the ASP team creates a lookup-table Object by Robert Carter
Caprock Dictionary
Site Server Commerce Edition includes a dictionary component
Session state
Q175167:HOWTO:Persisting Values without Sessions
Q157906:HOWTO:How to maintain state across Pages with VBScript
xml-based Persistence behaviors Fix Web Farm headaches by Aaron Skonnard
House of Com:stateless programming by Don Box
Performance and Scalability
Blueprint for building Web Sites Using the Microsoft Windows DNA Platform
Server Performance and Scalability killers by George Reilly
Microsoft Visual Studio Scalability Center
Fitch & Mather Stocks 2000
Tuning the FMStocks application
High-performance Visual Basic Apps by Ken Spencer
Duwamish Books, Phase 4
Top Windows DNA performance mistakes and the Prevent Them by Gary Geiger and Jon Pulsipher
Building from Static HTML to High-performance web-farms by Shawn Bice
Tools
Microsoft WEB Application Stress Tool
I Can? Stress It enough-Load Test Your ASP application by J.D. Meier
Windows DNA Performance Kit



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.