Serious rendering performance issue with ASP.NET 2.0

Discussion in 'ASP .Net' started by Spotnick, Mar 3, 2006.

  1. Spotnick

    Spotnick Guest

    I have no idea why, but since I'm trying to recreate my website using
    ASP.NET 2.0 I've encountered so many performance issues that I'm about to
    give up and continue using v1.1

    Seriously, how can a page that is not that complicated be so long to render
    locally, it's amazing.

    This is the trace info:

    aspx.page Begin PreInit
    aspx.page End PreInit 0.0463518812157079 0.046352
    aspx.page Begin Init 0.0464098005002422 0.000058
    aspx.page End Init 0.0507724654507819 0.004363
    aspx.page Begin InitComplete 0.0508315524093228 0.000059
    aspx.page End InitComplete 0.0508603382273912 0.000029
    aspx.page Begin PreLoad 0.050883245868358 0.000023
    aspx.page End PreLoad 0.053195331957778 0.002312
    aspx.page Begin Load 0.0532569148195081 0.000062
    Level 1 0.055238133844633 0.001981
    Level 2 1.24767331400479 1.192435
    Level 3 4.70909003164662 3.461417
    Level 4 5.42230239107791 0.713212
    Level 5 5.42237001134501 0.000068
    aspx.page End Load 5.42393065409648 0.001561
    aspx.page Begin LoadComplete 5.42399207374923 0.000061
    aspx.page End LoadComplete 5.42403435150968 0.000042
    aspx.page Begin PreRender 5.42406120270423 0.000027
    aspx.page End PreRender 5.57577572830349 0.151715
    aspx.page Begin PreRenderComplete 5.57584063770924 0.000065
    aspx.page End PreRenderComplete 5.57587055670185 0.000030
    aspx.page Begin SaveState 5.62490234928049 0.049032
    aspx.page End SaveState 5.63038270780948 0.005480
    aspx.page Begin SaveStateComplete 5.63045540480471 0.000073
    aspx.page End SaveStateComplete 5.63049471959238 0.000039
    aspx.page Begin Render 5.63051852952689 0.000024
    aspx.page End Render 21.8912725576705 16.260754


    22 seconds to load a page showing up a profile & some comments, very small
    pages, it's seriously unacceptable, and that is while running in debug on my
    local machine (a p4 3 GHz very well equiped), it's even slower on the
    website.

    It seems every time I use a GridView or a Repeater, I have the same
    partner.. I just recoded by forum interface using VS.NET 2005 and it's so
    slow that I can't even use it.. loading a thread page takes up to 1 minute
    while in ASP.NET 1.1 it can take up to 5 seconds.

    Anybody knows why rendering is so slow? I was starting to believe it was
    because of my VS.NET' but since the code is also executed on a remote
    server, it can't be my VS.NET...

    I'm running out of options here... serious problem as it's taking up all the
    resources of my Windows 2003 Server.

    Thank you.

    P/S: Level 1 to 5 is the queries to the database and databinding, which
    isn't even why it's slow.
    Spotnick, Mar 3, 2006
    #1
    1. Advertising

  2. Spotnick,
    Sorry your new page is running slow. Easier than porting try to use your
    1.1 dll and just reference it on your 2.0 web application untill the
    overseers can fix the performance issues.

    Good Luck
    DWS


    "Spotnick" wrote:

    > I have no idea why, but since I'm trying to recreate my website using
    > ASP.NET 2.0 I've encountered so many performance issues that I'm about to
    > give up and continue using v1.1
    >
    > Seriously, how can a page that is not that complicated be so long to render
    > locally, it's amazing.
    >
    > This is the trace info:
    >
    > aspx.page Begin PreInit
    > aspx.page End PreInit 0.0463518812157079 0.046352
    > aspx.page Begin Init 0.0464098005002422 0.000058
    > aspx.page End Init 0.0507724654507819 0.004363
    > aspx.page Begin InitComplete 0.0508315524093228 0.000059
    > aspx.page End InitComplete 0.0508603382273912 0.000029
    > aspx.page Begin PreLoad 0.050883245868358 0.000023
    > aspx.page End PreLoad 0.053195331957778 0.002312
    > aspx.page Begin Load 0.0532569148195081 0.000062
    > Level 1 0.055238133844633 0.001981
    > Level 2 1.24767331400479 1.192435
    > Level 3 4.70909003164662 3.461417
    > Level 4 5.42230239107791 0.713212
    > Level 5 5.42237001134501 0.000068
    > aspx.page End Load 5.42393065409648 0.001561
    > aspx.page Begin LoadComplete 5.42399207374923 0.000061
    > aspx.page End LoadComplete 5.42403435150968 0.000042
    > aspx.page Begin PreRender 5.42406120270423 0.000027
    > aspx.page End PreRender 5.57577572830349 0.151715
    > aspx.page Begin PreRenderComplete 5.57584063770924 0.000065
    > aspx.page End PreRenderComplete 5.57587055670185 0.000030
    > aspx.page Begin SaveState 5.62490234928049 0.049032
    > aspx.page End SaveState 5.63038270780948 0.005480
    > aspx.page Begin SaveStateComplete 5.63045540480471 0.000073
    > aspx.page End SaveStateComplete 5.63049471959238 0.000039
    > aspx.page Begin Render 5.63051852952689 0.000024
    > aspx.page End Render 21.8912725576705 16.260754
    >
    >
    > 22 seconds to load a page showing up a profile & some comments, very small
    > pages, it's seriously unacceptable, and that is while running in debug on my
    > local machine (a p4 3 GHz very well equiped), it's even slower on the
    > website.
    >
    > It seems every time I use a GridView or a Repeater, I have the same
    > partner.. I just recoded by forum interface using VS.NET 2005 and it's so
    > slow that I can't even use it.. loading a thread page takes up to 1 minute
    > while in ASP.NET 1.1 it can take up to 5 seconds.
    >
    > Anybody knows why rendering is so slow? I was starting to believe it was
    > because of my VS.NET' but since the code is also executed on a remote
    > server, it can't be my VS.NET...
    >
    > I'm running out of options here... serious problem as it's taking up all the
    > resources of my Windows 2003 Server.
    >
    > Thank you.
    >
    > P/S: Level 1 to 5 is the queries to the database and databinding, which
    > isn't even why it's slow.
    >
    >
    >
    =?Utf-8?B?RFdT?=, Mar 3, 2006
    #2
    1. Advertising

  3. I wasn't aware you could actually reference v1.1 DLL into an ASP.NET 2.0
    application... good thing to know, it might help since I'm running the 2.0
    Application as a subdomain of the 1.1 application right now.

    Seems to affect only the rendering of databind controls such as the gridview
    and the repeater.. some pages simply time out because there is a repeater
    with hum, 20 data items in it?

    Something that makes me think about going back, but I like the developping
    tools and new controls + master pages too much of a benefit to keep on v1.1

    I'll try to use the old DLL to make the site fully 2.0 to see if it will
    have an impact.. but I see my web server and sql server maxing at 100% too
    often these days for a single application.. but all tracing shows it's not
    data related but due to rendering.. when I execute my stored procedures, they
    run fast.

    And I use Enterprise Library latest version, binding the controls with
    datatables from strongly-typed datasets.

    "DWS" wrote:

    > Spotnick,
    > Sorry your new page is running slow. Easier than porting try to use your
    > 1.1 dll and just reference it on your 2.0 web application untill the
    > overseers can fix the performance issues.
    >
    > Good Luck
    > DWS
    >
    >
    > "Spotnick" wrote:
    >
    > > I have no idea why, but since I'm trying to recreate my website using
    > > ASP.NET 2.0 I've encountered so many performance issues that I'm about to
    > > give up and continue using v1.1
    > >
    > > Seriously, how can a page that is not that complicated be so long to render
    > > locally, it's amazing.
    > >
    > > This is the trace info:
    > >
    > > aspx.page Begin PreInit
    > > aspx.page End PreInit 0.0463518812157079 0.046352
    > > aspx.page Begin Init 0.0464098005002422 0.000058
    > > aspx.page End Init 0.0507724654507819 0.004363
    > > aspx.page Begin InitComplete 0.0508315524093228 0.000059
    > > aspx.page End InitComplete 0.0508603382273912 0.000029
    > > aspx.page Begin PreLoad 0.050883245868358 0.000023
    > > aspx.page End PreLoad 0.053195331957778 0.002312
    > > aspx.page Begin Load 0.0532569148195081 0.000062
    > > Level 1 0.055238133844633 0.001981
    > > Level 2 1.24767331400479 1.192435
    > > Level 3 4.70909003164662 3.461417
    > > Level 4 5.42230239107791 0.713212
    > > Level 5 5.42237001134501 0.000068
    > > aspx.page End Load 5.42393065409648 0.001561
    > > aspx.page Begin LoadComplete 5.42399207374923 0.000061
    > > aspx.page End LoadComplete 5.42403435150968 0.000042
    > > aspx.page Begin PreRender 5.42406120270423 0.000027
    > > aspx.page End PreRender 5.57577572830349 0.151715
    > > aspx.page Begin PreRenderComplete 5.57584063770924 0.000065
    > > aspx.page End PreRenderComplete 5.57587055670185 0.000030
    > > aspx.page Begin SaveState 5.62490234928049 0.049032
    > > aspx.page End SaveState 5.63038270780948 0.005480
    > > aspx.page Begin SaveStateComplete 5.63045540480471 0.000073
    > > aspx.page End SaveStateComplete 5.63049471959238 0.000039
    > > aspx.page Begin Render 5.63051852952689 0.000024
    > > aspx.page End Render 21.8912725576705 16.260754
    > >
    > >
    > > 22 seconds to load a page showing up a profile & some comments, very small
    > > pages, it's seriously unacceptable, and that is while running in debug on my
    > > local machine (a p4 3 GHz very well equiped), it's even slower on the
    > > website.
    > >
    > > It seems every time I use a GridView or a Repeater, I have the same
    > > partner.. I just recoded by forum interface using VS.NET 2005 and it's so
    > > slow that I can't even use it.. loading a thread page takes up to 1 minute
    > > while in ASP.NET 1.1 it can take up to 5 seconds.
    > >
    > > Anybody knows why rendering is so slow? I was starting to believe it was
    > > because of my VS.NET' but since the code is also executed on a remote
    > > server, it can't be my VS.NET...
    > >
    > > I'm running out of options here... serious problem as it's taking up all the
    > > resources of my Windows 2003 Server.
    > >
    > > Thank you.
    > >
    > > P/S: Level 1 to 5 is the queries to the database and databinding, which
    > > isn't even why it's slow.
    > >
    > >
    > >
    =?Utf-8?B?Tmljb2xhcyBMZUJsYW5j?=, Mar 3, 2006
    #3
  4. Spotnick

    JeremyReid

    Joined:
    Oct 8, 2008
    Messages:
    1
    I know this is a old thread, but my team and I are experiencing this same issue. We have very slow performance periodically throughout the day, the one time we can always count on the slowness is the first hit of the day. After that it seems to speed up dramatically.

    We are using Dundas chart and gauge controls along with SQL server, these Dundas items are inside ascx usercontrols which are called dynamicly by the page. Once we created a detailed trace, it appears the slowness if more of a rendering issue than a data/control issue, or at least that’s what it appears.

    Did the original poster of this thread ever find a solution?

    Here is a sample detailed trace of ours...


    aspx.page Begin PreInit
    aspx.page End PreInit 0.000114456633849039 0.000114
    aspx.page Begin Init 0.000135966244725738 0.000022
    aspx.page End Init 0.00028402062822316 0.000148
    aspx.page Begin InitComplete 0.000301190811064229 0.000017
    aspx.page End InitComplete 0.000315079231129864 0.000014
    aspx.page Begin PreLoad 0.000328045007032349 0.000013
    aspx.page End PreLoad 0.000344693858415377 0.000017
    aspx.page Begin Load 0.000360585091420534 0.000016
    Dashboard page load top 0.000374841068917018 0.000014
    Dashboard in if not ispostback 0.000387904360056259 0.000013
    Dashboard above breadcrumb 0.000404834505391467 0.000017
    Dashboard above findcontrol 0.000418576652601969 0.000014
    Dashboard above if null 0.000866197843413033 0.000448
    Dashboard above master.populatereporttypes 0.000889894045944679 0.000024
    Dashboard above master.populatelevels 0.0249653108298172 0.024075
    Dashboard above master.populatelevelselectclient 0.0699551504922644 0.044990
    Dashboard above master.populatereportperiods 0.0911205288326301 0.021165
    Dashboard below master.populatereportperiods 0.33609568870136 0.244975
    Dashboard above if doloadreport 0.336124568213783 0.000029
    Dashboard in if doloadreport 0.33613831411158 0.000014
    Dashboard above loadreport 0.33615504172527 0.000017
    Dashboard.aspx.cs in loadreport above spTransport_GetReportInfo try 0.51637209939053 0.180217
    Dashboard.aspx.cs in loadreport above spTransport_GetReportPanel try 0.520700178152836 0.004328
    Dashboard.aspx.cs in loadreport above loadcontrol 0.542560405063291 0.021860
    Dashboard.aspx.cs in loadreport below loadcontrol 0.824827915611814 0.282268
    Dashboard.aspx.cs in loadreport above controls.add 0.826658917955931 0.001831
    Dashboard.aspx.cs in loadreport below controls.add 2.71693337083919 1.890274
    Dashboard.aspx.cs in loadreport above loadcontrol 2.71701509985935 0.000082
    Dashboard.aspx.cs in loadreport below loadcontrol 2.71715106235349 0.000136
    Dashboard.aspx.cs in loadreport above controls.add 2.71719294889827 0.000042
    Dashboard.aspx.cs in loadreport below controls.add 2.78445627004219 0.067263
    Dashboard.aspx.cs in loadreport above loadcontrol 2.78456234411627 0.000106
    Dashboard.aspx.cs in loadreport below loadcontrol 2.78467739334271 0.000115
    Dashboard.aspx.cs in loadreport above controls.add 2.7847100121894 0.000033
    Dashboard.aspx.cs in loadreport below controls.add 3.28541850164088 0.500708
    Dashboard below loadreport 3.28551140740741 0.000093
    Dashboard above labelfreshnessdate 3.28552873511486 0.000017
    Dashboard above fillbreadcrumb 5.41535731082982 2.129829
    User1Master FillBreadCrumb: top 5.41992371683075 0.004566
    User1Master FillBreadCrumb before if 5.41999026347867 0.000067
    User1Master FillBreadCrumb before try 5.42000436943272 0.000014
    User1Master FillBreadCrumb before clear 5.42001760525082 0.000013
    User1Master FillBreadCrumb before connection 5.42003156493202 0.000014
    User1Master FillBreadCrumb before execute reader 5.42008749367089 0.000056
    User1Master FillBreadCrumb before read loop 5.43769320581341 0.017606
    User1Master FillBreadCrumb before in read loop before if 5.43771958743554 0.000026
    User1Master FillBreadCrumb before if ismulticlient 5.43773763525551 0.000018
    User1Master FillBreadCrumb after if ismulticlient 5.43877435724332 0.001037
    User1Master FillBreadCrumb in read loop before controls.add() 5.43882683544304 0.000052
    User1Master FillBreadCrumb after read loop before breadcrumb.close() 5.43885277074543 0.000026
    User1Master FillBreadCrumb before conn.close() 5.43888094889827 0.000028
    User1Master FillBreadCrumb before after using 5.43890941209564 0.000028
    User1Master FillBreadCrumb bottom 5.4389249657759 0.000016
    Dashboard above setpagetitle 5.43893870042194 0.000014
    Dashboard page_load bottom 5.43957846038444 0.000640
    KMT Page_Load top 5.52980845382091 0.090230
    KMT Page_Load bottom 5.53050058696671 0.000692
    aspx.page End Load 5.53224777496484 0.001747
    aspx.page Begin LoadComplete 5.53227077355837 0.000023
    aspx.page End LoadComplete 5.53228607594937 0.000015
    aspx.page Begin PreRender 5.5323079456165 0.000022
    KMT Page_Prerender top 14.2412371345523 8.708929
    KMT LoadData top 14.2511750923582 0.009938
    KMT LoadData before if dropdowns 14.2513557843413 0.000181
    KMT LoadData before try 1 14.2514020253165 0.000046
    KMT LoadData before try 2 14.2516899953118 0.000288
    KMT LoadData before using sqlconnection 14.2517084744491 0.000018
    KMT LoadData before adapter.fill 14.2517564819503 0.000048
    KMT LoadData after adapter.fill 16.0042419353024 1.752485
    KMT LoadData before table count check 16.0042695733708 0.000028
    KMT LoadData before dataview assignment 16.0042841293952 0.000015
    KMT LoadData before foreach survey 16.0043033548992 0.000019
    KMT LoadData before series.points.databind 16.004493625879 0.000190
    ChartDataBinding Populating "MoveIn" series data points from the data source. 16.0161428110642 0.011649
    ChartDataBinding "MoveIn" series populated with 57 data points. 16.0657981434599 0.049655
    KMT LoadData before foreach tooltip assignment 16.0658400075012 0.000042
    KMT LoadData try minimum value 16.0672441706517 0.001404
    KMT LoadData before series.points.databind 16.0734459746835 0.006202
    ChartDataBinding Populating "MidYear" series data points from the data source. 16.0734893914674 0.000043
    ChartDataBinding "MidYear" series populated with 57 data points. 16.0756186479137 0.002129
    KMT LoadData before foreach tooltip assignment 16.0756395499297 0.000021
    KMT LoadData try minimum value 16.075798451008 0.000159
    KMT LoadData before series.points.databind 16.0760799287389 0.000281
    ChartDataBinding Populating "YearEnd" series data points from the data source. 16.0761042325363 0.000024
    ChartDataBinding "YearEnd" series populated with 57 data points. 16.0776908504454 0.001587
    KMT LoadData before foreach tooltip assignment 16.0777080581341 0.000017
    KMT LoadData try minimum value 16.0778707097984 0.000163
    KMT LoadData before emptypointvalue 16.0779649995312 0.000094
    KMT LoadData before aligndatapointsbyaxislabel 16.0782536408814 0.000289
    ChartData Begin sorting data points in series "MoveIn". 16.0959405157056 0.017687
    ChartData End sorting data points in series "MoveIn". 16.1008249526489 0.004884
    ChartData Begin sorting data points in series "MidYear". 16.1009300328176 0.000105
    ChartData End sorting data points in series "MidYear". 16.1009643956868 0.000034
    ChartData Begin sorting data points in series "YearEnd". 16.1010490351617 0.000085
    ChartData End sorting data points in series "YearEnd". 16.1010801912799 0.000031
    KMT LoadData before minimum/maximum 16.1016075686826 0.000527
    KMT LoadData before setlableinterval 16.1057325457103 0.004125
    KMT LoadData before showhideseries 16.1078128682607 0.002080
    KMT LoadData after showhideseries 16.1116394336615 0.003827
    KMT LoadData bottom 16.1116662916081 0.000027
    KMT Page_Prerender bottom 16.1116807688701 0.000014
    aspx.page End PreRender 16.2084379034224 0.096757
    aspx.page Begin PreRenderComplete 16.2085012433193 0.000063
    aspx.page End PreRenderComplete 16.2667121162682 0.058211
    aspx.page Begin SaveState 16.2935192986404 0.026807
    aspx.page End SaveState 16.2968498715424 0.003331
    aspx.page Begin SaveStateComplete 16.2968789160806 0.000029
    aspx.page End SaveStateComplete 16.2968989779653 0.000020
    aspx.page Begin Render 16.2969145503985 0.000016
    Chart Start chart control rendering as interactive image tag. 17.0338619821847 0.736947
    ChartData Begin preparing chart data in series "MoveIn". 17.502574387248 0.468712
    ChartData End preparing chart data in series "MoveIn". 17.5713583347398 0.068784
    ChartData Begin preparing chart data in series "MidYear". 17.5718890276606 0.000531
    ChartData End preparing chart data in series "MidYear". 17.5719425522738 0.000054
    ChartData Begin preparing chart data in series "YearEnd". 17.5720961912799 0.000154
    ChartData End preparing chart data in series "YearEnd". 17.5721302503516 0.000034
    ChartPainting Begin drawing the chart's legend. 18.5825204538209 1.010390
    ChartData Begin preparing chart data in series "MoveIn". 18.7398681143929 0.157348
    ChartData End preparing chart data in series "MoveIn". 18.7399376727614 0.000070
    ChartData Begin preparing chart data in series "MidYear". 18.7399706479137 0.000033
    ChartData End preparing chart data in series "MidYear". 18.7399972770745 0.000027
    ChartData Begin preparing chart data in series "YearEnd". 18.7400255714955 0.000028
    ChartData End preparing chart data in series "YearEnd". 18.7400510867323 0.000026
    Chart End chart control rendering. 19.1488832742616 0.408832
    aspx.page End Render 19.1501980834505 0.001315
    JeremyReid, Oct 8, 2008
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    10
    Views:
    3,473
    Kiran_S_Rao
    Dec 8, 2004
  2. Tinnu
    Replies:
    2
    Views:
    790
    Tinnu
    Jan 16, 2006
  3. Peter Mount
    Replies:
    4
    Views:
    943
    Peter Mount
    Jan 31, 2006
  4. Replies:
    1
    Views:
    948
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Apr 12, 2007
  5. Replies:
    3
    Views:
    2,983
    vijayexist
    Jun 7, 2010
Loading...

Share This Page