ASP slow

  • Thread starter Thread starter Sean Stevens
  • Start date Start date
S

Sean Stevens

Is there anyone who knows how we can make our ASP pages go quicker from a
client pov. The server seems fine but every now and then our ASP pages go
slow. Thanks in advance.
 
Dear Sean,

ASP pages aren't any slower (or faster) than any other kind of html
container; it is what you have them DO that slows things down. Make
sure that when ever you initiate a task on a page, you specifically END
that task. If you, say, open a database connection on a page, you must
close it, or the string will hang around in server memory, slowing
things down. As an example, if you open the database connection
"dbconn" in your page, at the bottom of your page, you must close it
with something like:

<%
dbconn.Close()
Set dbconn = Nothing
%>

and this applies to every function on every page. If you are on a
shared server, everybody else's websites should conform to this policy
as well. That is just good and ethical coding. Having your host's sysop
check the server load just when things go slow will help you to pin
down the offending functions. Good luck, Sean - happy hunting.

Nicholas Savalas - http://savalas.tv
 
Back
Top