| Author |
Topic Search Topic Options
|
sfguy
Newbie
Joined: 28 January 2005
Status: Offline
Points: 5
|
Post Options
Thanks(0)
Quote Reply
Topic: Why is my first ASP Site is so SLOW? Posted: 16 August 2005 at 2:06pm |
|
Hi there. I've just created and hosted my first ASP site. When I run it on my home local box, running Windows XP pro, it runs fine. It's fast, with no problems. When I host it with my host provider, the pages seem very slow - about 30 seconds or more to load. I'm not getting any traffic right now because I haven't submitted to search engines. The pages seem a little faster after I visit them a couple of times.
My pages: - ASP classic - running a directory script (I purchased, not developed) - running a banner ad script (I purchased, not developed) - Access database - pages are small files, not much images, etc.
My Host: - shared environment host
My questions are: - is there anything I can do to help speed up the site (i.e., look at the code and fix something). - is there a way I can test to see if the host is actually the problem? - is there a way in the future to find a good host that might not have problems like this?
|
 |
dj air
Senior Member
Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
|
Post Options
Thanks(0)
Quote Reply
Posted: 16 August 2005 at 6:01pm |
|
have you got a url.
it maybe something else, whos the host also. they may over load servers
|
 |
sfguy
Newbie
Joined: 28 January 2005
Status: Offline
Points: 5
|
Post Options
Thanks(0)
Quote Reply
Posted: 16 August 2005 at 6:11pm |
I'd rather not post my website yet until I get these problems fixed.
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
Posted: 16 August 2005 at 7:24pm |
Kind of hard without a url but try disabling things - e.g. purchased scripts, etc. - and then turn them on one by one.
A lot of javascript is just bad and slows things down a lot.
coaxservices seems to be pretty new to web hosting. Ping times were
terrible but it appeared that they may have been down when I tried it.
Took forever to load their home page and then a lot of the links on it
resulted in service errors.
webhostingtalk.com is a pretty good source for info about particular hosts.
|
Lead me not into temptation... I know the short cut, follow me.
|
 |
sfguy
Newbie
Joined: 28 January 2005
Status: Offline
Points: 5
|
Post Options
Thanks(0)
Quote Reply
Posted: 16 August 2005 at 7:32pm |
|
Thanks. I'll try disabling things tonight and see how it goes. I'm also going to place a timer on my pages and see if my page/database are the culprits.
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
Posted: 16 August 2005 at 7:50pm |
do an asp timer, not a javascript one - it'll slow down your pages more
and it'll be very inaccurate as it's based upon clock speed of your cpu.
For an asp page timer, put this asp code ahead of your html
<%
Dim dblStartTime
Function StartPageTimer
dblStartTime = Timer
End Function
Function EndPageTimer
Response.Write "<div align=""center"">This
Page Was Generated In " & FormatNumber(Timer - dblStartTime, 4)
& "
Seconds</div>" End Function
StartPageTimer
%> |
and put this code just before the </body> tag
<% EndPageTimer %> |
The page would need to be a .asp page of course
Edited by dpyers - 16 August 2005 at 8:00pm
|
Lead me not into temptation... I know the short cut, follow me.
|
 |
sfguy
Newbie
Joined: 28 January 2005
Status: Offline
Points: 5
|
Post Options
Thanks(0)
Quote Reply
Posted: 18 August 2005 at 5:45pm |
Update...
I've been working with my host (coaxservices.com) and they made some adjustments to the server, I'm not sure what they did, but now the site seems to be acting normal.
Thanks for the help.
|
 |