problem with the speed of the page
i see that my site is a little slow
in my localhost it is fast but in the server not
but i see that videos are displayed without problems so i dont think that is from bandwith
but i am not sure
which are the main things that make a page go slow??
sessions can be one of that??
or connections with database??or something else?
Re: problem with the speed of the page
It could be off most things like ViewState for the controls,Session , Server performance and Network Traffic.
Have a look at this tutorial from MSDN
Re: problem with the speed of the page
Hey,
I would enable Trace on your pages, and see where the bottle neck is:
http://msdn.microsoft.com/en-us/libr...we(VS.71).aspx
Gary
Re: problem with the speed of the page
the stuff of my host says that the problem is because of the distance between my country(greece) and the host that is in usa
i did trace route and ping to my site and they told me that..
is that logic??
and if it is logic why i dont have this problem when i visit other sites that are hosted in america?
Re: problem with the speed of the page
are these websites hosted in the same host as your web application?
Re: problem with the speed of the page
A simple test to tell if it's the host/network or your code would be to put a html page on the server and see how fast the request is returned. If a static html page comes back fast then you could request a aspx page that does not call the database and then one that does.
On shared hosting your allocated a portion of resources so it I'd try and figure out if running code, database connection (dynamic stuff) are causing the problem - your hosts limitation.
Extra
I also notice that complied sites respond quicker - although they are compiled into the aspTemp directory after first request I still find better response times with pre compilation, also the temp folder on the server can get periodically cleaned out.
Re: problem with the speed of the page
Hey,
How slow are we talking about here? Have you timed it?
Did you enable trace on your page? It should tell you exactly how long it took, and where the bottleneck is.
You might also want to open up Fiddler and look at the requests that were being made, it should give you an indication of what is going on.
Gary
Re: problem with the speed of the page
i made tracert in command prompt and the whole delay was 2 seconds
Re: problem with the speed of the page
I am not talking about tracert, I am talking about ASP.Net Trace, as per the link that I sent you.
Gary