473,401 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

big performance problem

Hi guys,

I have quite big troublesome performance problem.

then i did a very simpkle page with a dropdownlist, when u click on it it
makes a simple sql select on the SQL server and then display a very little
bit of data on the page.

When SQL server runs on my local machine it is pretty fast, but when SQL
server runs on our production server it is so slow.

I put a Trace=true directive in my simple ASPX page and i noticed :

1.when I request the page for the first time
aspx.page End Init 0.000163 0.000163
aspx.page Begin PreRender 1.513427 1.513264
aspx.page End PreRender 1.513587 0.000160
As you see the Begin PreREnder takes 1.5 seconds. Also what does that mean?
Does it meand that the time between calling the PAge.Init() method and the
Page.PreRender() method takes 1.5 seconds? or does it mean something else?
When the SQL Server is on my local machine this number is 0.00xx instead.

2. When i select a value on the ddl, then it postaback the page, display
some info from the DB fecthed by the event handler for the
DropDownList.OnSelectedIndexChanged event handler.

aspx.page Begin ProcessPostData 0.001000 0.000073
aspx.page End ProcessPostData 0.001200 0.000201
aspx.page Begin ProcessPostData Second Try 1.518187 1.516987
aspx.page End ProcessPostData Second Try 1.518327 0.000140
aspx.page Begin Raise ChangedEvents 1.518388 0.000061
aspx.page End Raise ChangedEvents 3.057865 1.539477
aspx.page Begin Raise PostBackEvent 3.057999 0.000134
as you see between End ProcessPostData and Begin ProcessPostData Second Try
and Begin Raise ChangedEvents and End Raise ChangedEvents each time 1.5 half
second is spent. which makes 3 seconds... which is a little bit unacceptable
as the page is very small.

I do not know why in the case the SQL server is on the production server
then those numbers get so big. for me at least the Begin PreRender and the
Begin ProcessPostData Second Try should be fast anyway as i do not access
the DB at that stage. I access the DB at page_Load time (to initialize the
dropdownlist) and at when the DropDownList.OnSelectedIndexChanged event is
raised to fetch info from the DB.

Is there someone would could help me on this matter, it would be VERY
appraciated. Maybe explain me what means those numbers? what is the
processing executed during those intervals that make it so slow?

Thanks in advance

Francois
Nov 18 '05 #1
3 2750
How large is the drop down list and how do you access it (i.e. datareader,
dataset).

Also, check what kind of authentication you are using. Passthrough or SQL;
passthrough can be a hinder if machines are not in the same domain.Get
request - > get denied, search for the toke, request again, discover that it
is expired etc...)

In my experience; the best performance was:

Local SQL authentication
Stored Procedures
DataReader
WebService
Depending on the type of data (most of data for drop downs doesnt really
change much) can be cached on the web service side (just set the paramter &
number of seconds) also make sure that you have EnableSession set to false
(unless you actually use it)

If all that fails, try to do manual query to the sql server and turn sql
tracing on you might see the latency on the network, though this would be
the last place I'd look.
-Arthur


"francois" <fr******@bettinghouses.com_NOSPAM> wrote in message
news:uL*************@tk2msftngp13.phx.gbl...
Hi guys,

I have quite big troublesome performance problem.

then i did a very simpkle page with a dropdownlist, when u click on it it
makes a simple sql select on the SQL server and then display a very little
bit of data on the page.

When SQL server runs on my local machine it is pretty fast, but when SQL
server runs on our production server it is so slow.

I put a Trace=true directive in my simple ASPX page and i noticed :

1.when I request the page for the first time
aspx.page End Init 0.000163 0.000163
aspx.page Begin PreRender 1.513427 1.513264
aspx.page End PreRender 1.513587 0.000160
As you see the Begin PreREnder takes 1.5 seconds. Also what does that mean? Does it meand that the time between calling the PAge.Init() method and the Page.PreRender() method takes 1.5 seconds? or does it mean something else?
When the SQL Server is on my local machine this number is 0.00xx instead.

2. When i select a value on the ddl, then it postaback the page, display
some info from the DB fecthed by the event handler for the
DropDownList.OnSelectedIndexChanged event handler.

aspx.page Begin ProcessPostData 0.001000 0.000073
aspx.page End ProcessPostData 0.001200 0.000201
aspx.page Begin ProcessPostData Second Try 1.518187 1.516987
aspx.page End ProcessPostData Second Try 1.518327 0.000140
aspx.page Begin Raise ChangedEvents 1.518388 0.000061
aspx.page End Raise ChangedEvents 3.057865 1.539477
aspx.page Begin Raise PostBackEvent 3.057999 0.000134
as you see between End ProcessPostData and Begin ProcessPostData Second Try and Begin Raise ChangedEvents and End Raise ChangedEvents each time 1.5 half second is spent. which makes 3 seconds... which is a little bit unacceptable as the page is very small.

I do not know why in the case the SQL server is on the production server
then those numbers get so big. for me at least the Begin PreRender and the
Begin ProcessPostData Second Try should be fast anyway as i do not access
the DB at that stage. I access the DB at page_Load time (to initialize the
dropdownlist) and at when the DropDownList.OnSelectedIndexChanged event is raised to fetch info from the DB.

Is there someone would could help me on this matter, it would be VERY
appraciated. Maybe explain me what means those numbers? what is the
processing executed during those intervals that make it so slow?

Thanks in advance

Francois

Nov 18 '05 #2
I am using a form authentication turned off right now as I am just testing
the application.
in the web.config i have:

<authorization>
<allow users="*" />
</authorization>

is it what u mean by passtrough authentication?

I am using stored procedure and datareader and also the DB size is very
little just a few records.

My main problem is actually to know what means those numbers i spoke abotu
in my first message to be able to understand what piece of code i have to
look at.

Thank you anyway I will try to look on the SQL server side too.

Francois

"Arthur Mnev" <ar********@yahoo-no-spam.com> wrote in message
news:uT****************@TK2MSFTNGP11.phx.gbl...
How large is the drop down list and how do you access it (i.e. datareader,
dataset).

Also, check what kind of authentication you are using. Passthrough or SQL;
passthrough can be a hinder if machines are not in the same domain.Get
request - > get denied, search for the toke, request again, discover that it is expired etc...)

In my experience; the best performance was:

Local SQL authentication
Stored Procedures
DataReader
WebService
Depending on the type of data (most of data for drop downs doesnt really
change much) can be cached on the web service side (just set the paramter & number of seconds) also make sure that you have EnableSession set to false
(unless you actually use it)

If all that fails, try to do manual query to the sql server and turn sql
tracing on you might see the latency on the network, though this would be
the last place I'd look.
-Arthur


"francois" <fr******@bettinghouses.com_NOSPAM> wrote in message
news:uL*************@tk2msftngp13.phx.gbl...
Hi guys,

I have quite big troublesome performance problem.

then i did a very simpkle page with a dropdownlist, when u click on it it makes a simple sql select on the SQL server and then display a very little bit of data on the page.

When SQL server runs on my local machine it is pretty fast, but when SQL
server runs on our production server it is so slow.

I put a Trace=true directive in my simple ASPX page and i noticed :

1.when I request the page for the first time
aspx.page End Init 0.000163 0.000163
aspx.page Begin PreRender 1.513427 1.513264
aspx.page End PreRender 1.513587 0.000160
As you see the Begin PreREnder takes 1.5 seconds. Also what does that

mean?
Does it meand that the time between calling the PAge.Init() method and

the
Page.PreRender() method takes 1.5 seconds? or does it mean something else? When the SQL Server is on my local machine this number is 0.00xx instead.
2. When i select a value on the ddl, then it postaback the page, display
some info from the DB fecthed by the event handler for the
DropDownList.OnSelectedIndexChanged event handler.

aspx.page Begin ProcessPostData 0.001000 0.000073
aspx.page End ProcessPostData 0.001200 0.000201
aspx.page Begin ProcessPostData Second Try 1.518187 1.516987
aspx.page End ProcessPostData Second Try 1.518327 0.000140
aspx.page Begin Raise ChangedEvents 1.518388 0.000061
aspx.page End Raise ChangedEvents 3.057865 1.539477
aspx.page Begin Raise PostBackEvent 3.057999 0.000134
as you see between End ProcessPostData and Begin ProcessPostData Second

Try
and Begin Raise ChangedEvents and End Raise ChangedEvents each time 1.5

half
second is spent. which makes 3 seconds... which is a little bit

unacceptable
as the page is very small.

I do not know why in the case the SQL server is on the production server
then those numbers get so big. for me at least the Begin PreRender and the Begin ProcessPostData Second Try should be fast anyway as i do not access the DB at that stage. I access the DB at page_Load time (to initialize the dropdownlist) and at when the DropDownList.OnSelectedIndexChanged event

is
raised to fetch info from the DB.

Is there someone would could help me on this matter, it would be VERY
appraciated. Maybe explain me what means those numbers? what is the
processing executed during those intervals that make it so slow?

Thanks in advance

Francois


Nov 18 '05 #3
When your system authenticates to SQL server (i.e. connection string
parameter)
You could ether have something like: user="sa" password="123456" or you
could have "Trusted" (dont remember what the exact string is)
The latter one is what I refered to.


"francois" <fr******@bettinghouses.com_NOSPAM> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I am using a form authentication turned off right now as I am just testing
the application.
in the web.config i have:

<authorization>
<allow users="*" />
</authorization>

is it what u mean by passtrough authentication?

I am using stored procedure and datareader and also the DB size is very
little just a few records.

My main problem is actually to know what means those numbers i spoke abotu
in my first message to be able to understand what piece of code i have to
look at.

Thank you anyway I will try to look on the SQL server side too.

Francois

"Arthur Mnev" <ar********@yahoo-no-spam.com> wrote in message
news:uT****************@TK2MSFTNGP11.phx.gbl...
How large is the drop down list and how do you access it (i.e. datareader,
dataset).

Also, check what kind of authentication you are using. Passthrough or SQL; passthrough can be a hinder if machines are not in the same domain.Get
request - > get denied, search for the toke, request again, discover that
it
is expired etc...)

In my experience; the best performance was:

Local SQL authentication
Stored Procedures
DataReader
WebService
Depending on the type of data (most of data for drop downs doesnt really
change much) can be cached on the web service side (just set the
paramter &
number of seconds) also make sure that you have EnableSession set to

false (unless you actually use it)

If all that fails, try to do manual query to the sql server and turn sql
tracing on you might see the latency on the network, though this would be the last place I'd look.
-Arthur


"francois" <fr******@bettinghouses.com_NOSPAM> wrote in message
news:uL*************@tk2msftngp13.phx.gbl...
Hi guys,

I have quite big troublesome performance problem.

then i did a very simpkle page with a dropdownlist, when u click on it it makes a simple sql select on the SQL server and then display a very little bit of data on the page.

When SQL server runs on my local machine it is pretty fast, but when SQL server runs on our production server it is so slow.

I put a Trace=true directive in my simple ASPX page and i noticed :

1.when I request the page for the first time
aspx.page End Init 0.000163 0.000163
aspx.page Begin PreRender 1.513427 1.513264
aspx.page End PreRender 1.513587 0.000160
As you see the Begin PreREnder takes 1.5 seconds. Also what does that

mean?
Does it meand that the time between calling the PAge.Init() method and the
Page.PreRender() method takes 1.5 seconds? or does it mean something else? When the SQL Server is on my local machine this number is 0.00xx instead.
2. When i select a value on the ddl, then it postaback the page,
display some info from the DB fecthed by the event handler for the
DropDownList.OnSelectedIndexChanged event handler.

aspx.page Begin ProcessPostData 0.001000 0.000073
aspx.page End ProcessPostData 0.001200 0.000201
aspx.page Begin ProcessPostData Second Try 1.518187 1.516987
aspx.page End ProcessPostData Second Try 1.518327 0.000140
aspx.page Begin Raise ChangedEvents 1.518388 0.000061
aspx.page End Raise ChangedEvents 3.057865 1.539477
aspx.page Begin Raise PostBackEvent 3.057999 0.000134
as you see between End ProcessPostData and Begin ProcessPostData Second
Try
and Begin Raise ChangedEvents and End Raise ChangedEvents each time
1.5 half
second is spent. which makes 3 seconds... which is a little bit

unacceptable
as the page is very small.

I do not know why in the case the SQL server is on the production
server then those numbers get so big. for me at least the Begin PreRender and

the Begin ProcessPostData Second Try should be fast anyway as i do not access the DB at that stage. I access the DB at page_Load time (to initialize the dropdownlist) and at when the DropDownList.OnSelectedIndexChanged

event is
raised to fetch info from the DB.

Is there someone would could help me on this matter, it would be VERY
appraciated. Maybe explain me what means those numbers? what is the
processing executed during those intervals that make it so slow?

Thanks in advance

Francois



Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Steve_CA | last post by:
Hello all, I've been recruited to assist in diagnosing and fixing a performance problem on an application we have running on SQL Server 7. The application itself is third party software, so we...
0
by: Andrew Mayo | last post by:
This problem was discovered with MSDE2000 SP2 and under WinXP SP2. We are unsure whether it is more widespread as it has only been seen on one machine to date. The problem is related to name...
6
by: teedilo | last post by:
We have an application with a SQL Server 2000 back end that is fairly database intensive -- lots of fairly frequent queries, inserts, updates -- the gamut. The application does not make use of...
4
by: Martin | last post by:
I am using graphics as backgrounds for forms,buttons,labels etc. The question is: is it faster to load all graphics from files on app start or to use it embeded (places in editor during design)....
13
by: bjarne | last post by:
Willy Denoyette wrote; > ... it > was not the intention of StrousTrup to the achieve the level of efficiency > of C when he invented C++, ... Ahmmm. It was my aim to match the performance...
13
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make...
17
by: 57R4N63R | last post by:
I'm currently building a website for one of the client. There has been few errors here and there, but just recently the problem is getting worse. Basically the symptoms is that when the user try...
8
by: NAdir | last post by:
Hi, thank you for your help. My VB.Net application contains a document that the user can refresh at any time. The refresh works fine and needs to loop through few datatables (hundreds of rows)....
1
by: jvn | last post by:
I am experiencing a particular problem with performance counters. I have created a set of classes, that uses System.Diagnostics.PerformanceCounter to increment custom performance counters (using...
30
by: galiorenye | last post by:
Hi, Given this code: A** ppA = new A*; A *pA = NULL; for(int i = 0; i < 10; ++i) { pA = ppA; //do something with pA
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.