Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Martin 278 posts 662 karma points
    Dec 13, 2011 @ 14:05
    Martin
    0

    Performance Issues

    Hi, im getting some preformace issues with my Umbraco site. I thought it may have been the twiiter package, but i remove that and i get some infrequent page load times.

    Ive tried the show bug trace it it seems that the following 2 line take the most time. Specifically the current URL.

    umbracoInit handling request 1.93945748155822E-05 0.000019

    request handler current url '' 9.78450472427131E-05 0.000078

    the slow page load times are not specfic to one page and can come and go. I cache my macro, but ot doesnt seem to affect the slow load time.

    Can anyone help with what could taje the page so long to load

     

    Thanks

    Martin

     

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Dec 13, 2011 @ 18:55
    Sebastiaan Janssen
    0

    That's not slow, that's 0.000058 seconds.. have a look at the rest of the trace though, might be some interesting results there.

  • Martin 278 posts 662 karma points
    Dec 14, 2011 @ 19:23
    Martin
    0

    Sorry, I haven't really used the debug feature and dont really understand all the information it provides. Im not from a developement background.

    All of my pages load slow the first time i view them. Can anyone see where there would be performance issues and where i show generally be looking.

    Any help would be great. Thanks

    aspx.page Begin PreInit    
    umbracoInit handling request 2.01389294993358E-05 0.000020
    request handler current url '/news.aspx' 7.90858054652843E-05 0.000059
    umbracoRequestHandler Just before xPath query (True, '1063') 0.000101217199522143 0.000022
    umbracoRequestHandler After xPath query 0.00011550655382996 0.000014
    umbracoRequestHandler Access checking started 0.000142036407381726 0.000027
    umbracoRequestHandler Page not protected 0.000163231719033258 0.000021
    umbracoRequestHandler Access checking ended 0.000174840644606144 0.000012
    umbracoInit Done handling request 0.000185558600178779 0.000011
    umbracoPage Element loaded: pageHeading 0.000376887828840193 0.000191
    umbracoPage Element loaded: introduction 0.000402395134543571 0.000026
    umbracoPage Element loaded: slideshow 0.000424940058980293 0.000023
    umbracoPage Element loaded: metaDescription 0.000447804529619636 0.000023
    umbracoPage Element loaded: umbracoNaviHide 0.000471315611398401 0.000024
    umbracoPage Element loaded: ShowInFooter 0.000496379311785198 0.000025
    umbracoPage Element loaded: showInCopyrightNav 0.000517676126348151 0.000021
    umbracoPage Pagedata loaded for News (ID: 1063) 0.000531424131795056 0.000014
    umbracoPage Looking up skin information 0.000552205913066725 0.000021
    aspx.page End PreInit 0.170151274007736 0.169599
    aspx.page Begin Init 0.170187931596227 0.000037
    item Start parsing 'pageTitle' 0.170258972356121 0.000071
    item Done parsing 'pageTitle' 0.170285919499419 0.000027
    item.recursive Item loaded from 1048 0.170355437715641 0.000070
    item Start parsing 'metaDescription' 0.170369884963367 0.000014
    item Done parsing 'metaDescription' 0.170393343414007 0.000023
    renderMacro Rendering started (macro: Navi, type: 1, cacheRate: 1800) 0.173856337039791 0.003463
    umbracoMacro Before adding extensions 0.173928704856267 0.000072
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 0.173981783360206 0.000053
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 0.173997426086666 0.000016
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 0.174010613946416 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 0.174025617580471 0.000015
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 0.174038591156298 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 0.174052809082631 0.000014
    umbracoXsltExtension Extension added: urn:CWS.Twitter, XSLTExtensions 0.174066124760862 0.000013
    umbracoXsltExtension Extension added: urn:uTube.XSLT, Library 0.174078962999474 0.000013
    umbracoMacro After adding extensions 0.174090617037452 0.000012
    umbracoMacro Before performing transformation 0.174114011578851 0.000023
    Resolve Urls 0 0.174918497339204 0.000804
    umbracoMacro After performing transformation 0.174944662534148 0.000026
    renderMacro Rendering started (macro: Slideshow, type: 1, cacheRate: 0) 0.175566683653436 0.000622
    umbracoMacro Before adding extensions 0.175608672024461 0.000042
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 0.175648250641181 0.000040
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 0.175663889608274 0.000016
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 0.175677024836885 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 0.175692457038788 0.000015
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 0.175705208811956 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 0.175718099681707 0.000013
    umbracoXsltExtension Extension added: urn:CWS.Twitter, XSLTExtensions 0.175730374015255 0.000012
    umbracoXsltExtension Extension added: urn:uTube.XSLT, Library 0.175742802482853 0.000012
    umbracoMacro After adding extensions 0.175753937728173 0.000011
    umbracoMacro Before performing transformation 0.175772114268051 0.000018
    Resolve Urls 0 0.175867402945673 0.000095
    umbracoMacro After performing transformation 0.175882267483146 0.000015
    renderMacro Rendering started (macro: Side  Bar -  Sub  Navi ( Date) , type: 1, cacheRate: 1800) 0.176412308167852 0.000530
    umbracoMacro Before adding extensions 0.17645050709685 0.000038
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 0.176487202279012 0.000037
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 0.176502108169522 0.000015
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 0.176514935130032 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 0.176529446286998 0.000015
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 0.176541998813711 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 0.176554728030676 0.000013
    umbracoXsltExtension Extension added: urn:CWS.Twitter, XSLTExtensions 0.176566836952072 0.000012
    umbracoXsltExtension Extension added: urn:uTube.XSLT, Library 0.176579141360557 0.000012
    umbracoMacro After adding extensions 0.176590374349421 0.000011
    umbracoMacro Before performing transformation 0.176608392995881 0.000018
    Resolve Urls 0 0.176714888346797 0.000106
    umbracoMacro After performing transformation 0.176732309253891 0.000017
    item Start parsing 'pageHeading' 0.1767723803477 0.000040
    item Done parsing 'pageHeading' 0.176805143231886 0.000033
    item Start parsing 'introduction' 0.176825718247968 0.000021
    item Done parsing 'introduction' 0.176849830828481 0.000024
    renderMacro Rendering started (macro: News  Area, type: 1, cacheRate: 0) 0.177390491725215 0.000541
    umbracoMacro Before adding extensions 0.17742270198244 0.000032
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 0.177460393396881 0.000038
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 0.177475573721189 0.000015
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 0.177488641281192 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 0.177500972005246 0.000012
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 0.177513347841706 0.000012
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 0.177526404123608 0.000013
    umbracoXsltExtension Extension added: urn:CWS.Twitter, XSLTExtensions 0.177538550638675 0.000012
    umbracoXsltExtension Extension added: urn:uTube.XSLT, Library 0.177550693394374 0.000012
    umbracoMacro After adding extensions 0.177564948914378 0.000014
    umbracoMacro Before performing transformation 0.177581369829826 0.000016
    Resolve Urls 0 0.177736297106958 0.000155
    umbracoMacro After performing transformation 0.177753924779242 0.000018
    renderMacro Rendering started (macro: Widget- Footer- Events, type: 1, cacheRate: 1800) 0.178268176122171 0.000514
    umbracoMacro Before adding extensions 0.178308510371676 0.000040
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 0.178351961136498 0.000043
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 0.178367284316756 0.000015
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 0.178380381951696 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 0.178393043500054 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 0.178405893016767 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 0.178418723736644 0.000013
    umbracoXsltExtension Extension added: urn:CWS.Twitter, XSLTExtensions 0.178430919123483 0.000012
    umbracoXsltExtension Extension added: urn:uTube.XSLT, Library 0.178446396437791 0.000015
    umbracoMacro After adding extensions 0.178458524156022 0.000012
    umbracoMacro Before performing transformation 0.178479151803243 0.000021
    Resolve Urls 0 0.17862991370164 0.000151
    umbracoMacro After performing transformation 0.178648635349746 0.000019
    renderMacro Rendering started (macro: Widget- Footer- News, type: 1, cacheRate: 1800) 0.179200401416864 0.000552
    umbracoMacro Before adding extensions 0.179247746885991 0.000047
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 0.179290017209547 0.000042
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 0.17930579903259 0.000016
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 0.179319039523479 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 0.179331708590572 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 0.179344234801714 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 0.179360324892858 0.000016
    umbracoXsltExtension Extension added: urn:CWS.Twitter, XSLTExtensions 0.179373283431216 0.000013
    umbracoXsltExtension Extension added: urn:uTube.XSLT, Library 0.179385760770587 0.000012
    umbracoMacro After adding extensions 0.179397332102489 0.000012
    umbracoMacro Before performing transformation 0.179416700361735 0.000019
    Resolve Urls 0 0.179550936082405 0.000134
    umbracoMacro After performing transformation 0.179570864487348 0.000020
    renderMacro Rendering started (macro: [XSLT] CWS - Twitter, type: 1, cacheRate: 300) 0.180357218820227 0.000786
    umbracoMacro Xslt node adding search start (twitterUsername,'@talon') 0.180408684555685 0.000051
    umbracoMacro Xslt node adding search start (noStatus,'1') 0.180430823468476 0.000022
    umbracoMacro Xslt node adding search start (displayMaps,'0') 0.180448890986709 0.000018
    umbracoMacro Xslt node adding search start (displayNativeRTs,'0') 0.180468522401651 0.000020
    umbracoMacro Xslt node adding search start (displayReplies,'0') 0.180486710219631 0.000018
    umbracoMacro Before adding extensions 0.180509657396346 0.000023
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 0.180551243515092 0.000042
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 0.1805661268494 0.000015
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 0.18057943124953 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 0.18059489352637 0.000015
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 0.180607352068905 0.000012
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 0.180620096323339 0.000013
    umbracoXsltExtension Extension added: urn:CWS.Twitter, XSLTExtensions 0.180632660128153 0.000013
    umbracoXsltExtension Extension added: urn:uTube.XSLT, Library 0.180652565976892 0.000020
    umbracoMacro After adding extensions 0.180668652308669 0.000016
    umbracoMacro Before performing transformation 0.180698223490196 0.000030
    Resolve Urls 0 4.16421316613896 3.983515
    umbracoMacro After performing transformation 4.16425908680796 0.000046
    item Start parsing 'pageName' 4.16432558625241 0.000066
    item Done parsing 'pageName' 4.16436302202989 0.000037
    renderMacro Rendering started (macro: Copyright  Nav, type: 1, cacheRate: 0) 4.1649647764012 0.000602
    umbracoMacro Before adding extensions 4.16500879107109 0.000044
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 4.16506021921287 0.000051
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 4.16507535818414 0.000015
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 4.16508891822123 0.000014
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 4.16510141811681 0.000012
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 4.16511417364934 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 4.16512998178796 0.000016
    umbracoXsltExtension Extension added: urn:CWS.Twitter, XSLTExtensions 4.16514328618809 0.000013
    umbracoXsltExtension Extension added: urn:uTube.XSLT, Library 4.16515569961822 0.000012
    umbracoMacro After adding extensions 4.16516718824404 0.000011
    umbracoMacro Before performing transformation 4.16518823694038 0.000021
    Resolve Urls 0 4.16574158570104 0.000553
    umbracoMacro After performing transformation 4.16575937126674 0.000018
    aspx.page End Init 4.16580504381751 0.000046
    aspx.page Begin InitComplete 4.1658191414441 0.000014
    aspx.page End InitComplete 4.16583108495334 0.000012
    aspx.page Begin PreLoad 4.16584216004879 0.000011
    aspx.page End PreLoad 4.16585319003183 0.000011
    aspx.page Begin Load 4.16586387039373 0.000011
    aspx.page End Load 4.16589246413982 0.000029
    aspx.page Begin LoadComplete 4.16590517455995 0.000013
    aspx.page End LoadComplete 4.1659163511583 0.000011
    aspx.page Begin PreRender 4.1659269976859 0.000011
    aspx.page End PreRender 4.16594458400515 0.000018
    aspx.page Begin PreRenderComplete 4.16595980192313 0.000015
    aspx.page End PreRenderComplete 4.16597129430832 0.000011
    aspx.page Begin SaveState 4.16687144092363 0.000900
    aspx.page End SaveState 4.16688439570263 0.000013
    aspx.page Begin SaveStateComplete 4.16689521516111 0.000011
    aspx.page End SaveStateComplete 4.1669061022882 0.000011
    aspx.page Begin Render 4.16691681648441 0.000011
    Resolve Urls 0 4.16698175579151 0.000065
    Resolve Urls 0 4.16705491683445 0.000073
    Resolve Urls 0 4.16731263648591 0.000258
    Resolve Urls 0 4.16739576737036 0.000083
    umbracoMacro Before adding extensions 4.1685458141536 0.001150
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 4.16858953935222 0.000044
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 4.16860541140007 0.000016
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 4.1686186481316 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 4.16863166306046 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 4.1686441667154 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 4.16865701999148 0.000013
    umbracoXsltExtension Extension added: urn:CWS.Twitter, XSLTExtensions 4.16866945973718 0.000012
    umbracoXsltExtension Extension added: urn:uTube.XSLT, Library 4.16868221526971 0.000013
    umbracoMacro After adding extensions 4.16869351968655 0.000011
    umbracoMacro Before performing transformation 4.16871538792491 0.000022
    Resolve Urls 0 4.17091259513287 0.002197
    Resolve Urls 0 4.17094115504465 0.000029
    aspx.page End Render 4.17124817503613 0.000307

    Control Tree

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Dec 14, 2011 @ 19:36
    Sebastiaan Janssen
    0

    Ah it looks like there's a 4 second performance over here:

    umbracoMacro Before performing transformation 0.180698223490196 0.000030
    Resolve Urls 0 4.16421316613896 3.983515
    umbracoMacro After performing transformation 4.16425908680796 0.000046

    Now that is something to worry about, but I can't seem to see what that is. I think the easiest way to debug this now is to temporarily remove all of your macros from the masterpage and start adding them in again one by one. A 4 second slowdown you will notice immediately, so it shouldn't be hard to spot which one of your macro's is giving you this hit. 

    I think it might be the Twitter feed that you're using there, I would look at that one first.

  • Martin 278 posts 662 karma points
    Dec 14, 2011 @ 19:46
    Martin
    0

    Thanks Sebastiaan, 

    Ive cache the twitter feed, which sometime works and sometimes doesnt.

    But thanks again, i take your advice and remove the macros starting with the twitter feed.

  • Martin 278 posts 662 karma points
    Dec 14, 2011 @ 21:01
    Martin
    0

    Sorry, 

    If I just comment out the macro insert code inside the template, will that stop the macro being loaded or is it still loaded?

    Is there a way to turn the macro off?

     

    Thanks

  • Karl Kopp 121 posts 227 karma points
    Dec 14, 2011 @ 22:17
    Karl Kopp
    0

    To fix this, edit CWS_twitterStatus.xslt around line 80 and change from:

        <!-- Twitter XML URL -->
        <xsl:variable name="twitterXMLUrl" select="concat(' http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=', $twitterUsername ,'&amp;include_rts=', $displayNativeRTs ,'&amp;count=200')"/>

    To this:

        <!-- Twitter XML URL -->

        <xsl:variable name="twitterXMLUrl" select="concat(' http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=', $twitterUsername ,'&amp;include_rts=', $displayNativeRTs ,'&amp;count=', $noStatus)"/>

  • Martin 278 posts 662 karma points
    Dec 20, 2011 @ 14:31
    Martin
    0

    Thanks Karl, 

    Changing to this line, disables Twitter and makes the site work faster.

    Is there something within this twitter feed that is making it so slow.

    Or is there an alternative twiiter feed package feed?

  • Karl Kopp 121 posts 227 karma points
    Jan 16, 2012 @ 22:49
    Karl Kopp
    0

    The change above won't break the feed, just return far fewer results. There is an issue if you have a lot of rewteets tho, which in my case I don't. There are newer APIs that I think Warren was going to check out...

  • Martin 278 posts 662 karma points
    Jan 20, 2012 @ 10:51
    Martin
    0

    Thanks Karl, 

    I ended up changing the twitter macro to a fixed jquery twitter feed. It was just causeig too many problems and really slowing the site down.

    Thanks again though.

     

Please Sign in or register to post replies

Write your reply to:

Draft