Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Subject : Why Database linked ASP page is faster than without proxy? Pls help.
Old 06-04-2004, 06:00 AM Subject : Why Database linked ASP page is faster than without proxy? Pls help.
Junior Talker

Posts: 2
Trades: 0
Hi,

I have an ASP based application which is using SQLServer 7.0 database. The problem i am facing now is:

When i access the ASP pages from the browser, WITH PROXY, it is very fast.
When i access the ASP pages from the browser, WITHOUT PROXY, it is unreasonably slow.

And about my environment:
-------------------------
The database i am using is a clustered SQLServer 7.0 and it is high end infra.
The web server i am using is win 2003 server based. More importantly, the webserver was recently upgraded from its earlier Win NT 4.0 Server to Windows 2003 server.
Database does not contain huge data since we have just deployed the application.
The page i am accessing does not contain too much graphics.
I am using the pragma, no-cache directive to force the browser to fetch the page directly from the server(instead of proxy).

With the above things, i do not know why the pages are very slow. And why the pages are very fast thru proxy? My pages are basically database linked pages and regardless of the proxy, performance must be the same for both cases - with and without proxy. Even if it is slow, i would expect it to be slow under both circumstances as proxy can not cache the database content. In my case, with proxy, the page access is fast.

I suspect there is some problem with the network settings(how it is routed, gateways, etc...). But i have no proof to say that.

I am still fighting to resolve this. Pls help.

Thanks,
Peria.
periakaruppan is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-09-2004, 11:18 PM Tough Question
The Dorian's Avatar
Skilled Talker

Posts: 74
Location: Orange County, California
Trades: 0
This is a tricky one. I think you'll need to narrow down the possible problems via the process of eliminiation

The problem is one of two things:
1. Slow network
2. Slow server

My guess is that that there are network issues and that your page is running fine. What you can do is put code in your page to measure how long it takes the page to process, and output this to the screen. This can be done with a simple script...

At the top of your asp page put

<%
dim elapse
dim start
start = timer
%>

at the bottom of the page put

<%
elap = timer - start
response.write(elapse)
%>

*i didn't actually test this code

if the elapse time is nearly the same with and without the proxy, you'll at least know that it's a network problem, and not a problem with your server. If the elapse times are vastly different you probably have an issue with the servers.

Good luck and please let me know what happens
__________________
Dorian Collier

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
The Dorian is offline
Reply With Quote
View Public Profile Visit The Dorian's homepage!
 
Old 06-23-2004, 02:27 AM
Junior Talker

Posts: 2
Trades: 0
Hi Doarian,

As i was on leave, i could not respond immediately and am extremely sorry for that.

I will try your suggestion and will get back to you :-)

Thanks a lot.

Regards,
Peria
periakaruppan is offline
Reply With Quote
View Public Profile
 
Old 11-11-2005, 02:56 PM
Junior Talker

Posts: 2
Trades: 0
I am having a very similar issue.

My ASP page loads fast on the Win2k Dev. server, but very slow on Win 2003 Live server.

Live Server (Win 2003): 10.031 seconds to load
http://www.specialopspaintball.com/b...ew.asp?id=1088

Dev. Server (Win2k): 2.14 seconds to load
http://paintball.netcentrixllc.com/b...ew.asp?id=1088


I am going to add that code to help determine if it's the server or network.
tlcable7 is offline
Reply With Quote
View Public Profile
 
Old 11-11-2005, 04:19 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Where does the proxy come into this ?

more importantly;
where is each server in relation to the viewing point in the network topography?
Did the upgrade replace the server hardware or just the OS?

<added> Just a quick check on grabbing source (not a browser), and the loading times are not that different.There is a noticeable pause in the data stream. So I would suggest that you look at how the queries are being done and improve the efficiency of those. Also a lot of the speed issues are in the mass of nested tables and rendering. Tables are not rendered to the browser until the last closing </table> tag is streamed out, so the small pause in the data stream will cause a longer delay in display.
</added>
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?

Last edited by chrishirst; 11-11-2005 at 04:34 PM..
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Subject : Why Database linked ASP page is faster than without proxy? Pls help.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29170 seconds with 12 queries