How to enhance the ASP program performance (4)

xiaoxiao2021-03-06  106

Tips 16: Use Server.Transfer when any might, do not use Response.Redirect

Response.Redirect tells the browser to request another different page, which is often used to boot the user to the login page or the error handling page. Since the redirection has been forced a new page request, the result is that the browser must loop twice with the web server, and the web server must process an additional request. IIS5.0 introduces a new feature server.transfer, which executes page transfer on the same server, which will avoid the data loop of the additional browser -Web server to form good system performance, and there is also a good response time for users. .

Tips 17: Avoid using server variables

Access server variables cause a web site to establish a special request and collect all server variables, not the variable you asked. This is similar to retrieving a special file in a folder, you have to get the information of the folder first.

Do not access illegal Request objects (such as Request ("Data")), for those items that are not in Request.Cookies, Request.Form, Request.QueryString, or Request.ClientCertificate, pointing to the Request.ServerVariables variable, and These variables are much slower than other collection objects.

Tips 18: Adjust the web server

There are several IIS adjustment parameters to improve site performance. For example, for IIS4.0, we often find that the ASP ProcessorthreadMAX parameter can produce significant effects, especially those who want to wait for background resources such as databases or middleware products. In IIS5.0, you can find that the adjustment ASP thread channel is better than adjusting the AspProcessorthReadmax.

The best configuration setting depends on the application code, the supported hardware device and the client's workload. 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 15 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 JD 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 Hugliado and SQL Server

Top Ten Tips: Accessing SQL Through ADO and ASP by JD 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 Records over the Internet by Dino Esposito

ASP Components and Threading Models

ASP Component Guidelines by JD 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 Server Pages by Don Box House of COM: Contexts by Don Box House of COM: Performance Trade-offs of the Windows 2000 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 MTSDictionary 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 HOW TO PREVENT THEM BY GEIGER AND JON PULSIPHER Building from static html to high-performance web-farms by Shawn Bicetools

Microsoft Web Application Stress Tool i CAN? Stress IT Enough - Load Test Your ASP Application By J. MEIER Windows Dna Performance Kit Monitoring Events in Distributed Applications Using Visual Studio Analyzer by Mai-Lan Tomsen

Books

Professional Active Server Pages 3.0, Wrox Press (Especially Chapter 26: Optimizing ASP Performance, by George Reilly and Matthew Gibbs). Microsoft Internet Information Services 5.0 Resource Guide (bundled with Windows 2000 Server Resource Kit, Microsoft Press Microsoft Internet Information Server Resource Kit. .. (for IIS 4.0), Microsoft Press Programming Distributed Applications with COM and Microsoft Visual Basic 6.0 by Ted Pattison, Microsoft Press Effective COM by Don Box, Keith Brown, Tim Ewald, and Chris Sells; Addison-Wesley Developing Web Usability.: The Practice of SIMPLITY by Jakob Nielsen, New Riders.

ASP Web Sites

Microsoft Technet for IIS Learnasp.com 4GuysFromrolla.com 15seconds.com asptoday.com asp101.com asplists.com. Many Specialized Mailing Lists include:

Fast Code! ASP Advanced Not Newbie State Management Scalability Visual Basic Components XML C / ATL Component Building Useit.com: Web Usability

ASP STYLE

ASP BEST PRACTICES BY George Reilly ASP Quick Lessons By John Meade Asp Guidelines by John Meade Asp Guidelines by John Meade ASNING

INSIDE XML Performance by Chris Lovett Inside MSXML3 Performance by Chris Lovet

转载请注明原文地址:https://www.9cbs.com/read-103888.html

New Post(0)