Copied to clipboard

Flag this post as spam?

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


  • Saied 349 posts 674 karma points
    Sep 26, 2016 @ 17:02
    Saied
    0

    Slow peformance on azure web apps?

    This is my current setup:

    1 umbraco instance with 3 websites.

    Each website is hosted in an azure web app. I noticed every time I deploy, it takes more than a minute to render each page.

    I did run a trace and saw that Rendering the views is what is taking most of the time. I haven't tried CachedPartial or any outputcache yet, but I did not have this problem or it did not take this long when I was not on azure web apps.

    Will doing umbracoContentXMLUseLocalTemp="true" have an effect on speed?

    When I check the logs after deploying I see these 2 messages:

    1. No last synced Id found, this generally means this is a new server/install. The server will build its caches and indexes, and then adjust its last synced Id to the latest found in the database and maintain cache updates based on that Id.

    2. Failed to load Xml, file does not exist.

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Sep 27, 2016 @ 20:08
    Dennis Aaen
    0

    Hi Saied,

    Have you seen the documentation about best practices with running Umbraco on Azure Web App

    https://our.umbraco.org/documentation/Getting-Started/Setup/Server-Setup/azure-web-apps

    Hope this helps,

    /Dennis

  • Saied 349 posts 674 karma points
    Sep 27, 2016 @ 20:13
    Saied
    0

    Hi Dennis,

    Yes...I don't understand all of it, but here is what I have so far. I know the files are replicated across 3 sites on the same server. The last sync id always has a value greater than 0 and the table umbracoInstructions does have data, but it always gives me that message on a cold boot.

    I tried doing the tempStorage="Sync", but that didn't do anything.

    I haven't tried the umbracoContentXMLUseLocalTemp, do you recommend that?

    One annoying thing I noticed is that when I update a template when I am logged into one site, it does not show up for the others because of the file replication, do you know a way around this?

    Also, I will point out that the database for one of the environments is dropped and the umbraco db is scripted out. Not sure if this could have bad effects...

    Thanks, Saied

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Sep 27, 2016 @ 20:23
    Dennis Aaen
    0

    Hi Saied,

    Here is an issue from the tracker about the same issue that you have

    http://issues.umbraco.org/issue/U4-8249

    and also see

    http://issues.umbraco.org/issue/U4-7614

    Hope this helps,

    /Dennis

  • Saied 349 posts 674 karma points
    Sep 27, 2016 @ 20:36
    Saied
    0

    Does rebuilding the examine indexes have an effect on loading the front end website or is it just the backoffice?

    I added the following, but it still takes 2 minutes to render a page:

    useTempStorage="Sync"
    tempStorageDirectory="UmbracoExamine.LocalStorage.AzureLocalStorageDirectory, UmbracoExamine"
    
  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Sep 27, 2016 @ 21:04
    Dennis Aaen
    0

    Hi Saied,

    Out of the box Umbraco comes configured to index content and members in the back office for the back office or internal search engine that appears in the header. As Examine is configuration driven you can quickly modify or set up indexes and searchers.

    You can read more about Examine herehttps://our.umbraco.org/documentation/Reference/Searching/Examine/

    You can also read more about in this blogpost https://umbraco.com/follow-us/blog-archive/2011/9/16/examining-examine/ or http://24days.in/umbraco/2013/getting-started-with-examine/

    But you can also use it for a search functionally on the front-end of you site.

    Hope this helps,

    /Dennis

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Sep 27, 2016 @ 21:19
    Dennis Aaen
    0

    Hi Saied,

    Have you tried to look at the mini profiler to see if you can get some hints about why your page is taking 2 minutes to load.

    The first thing that you need to do to enable the mini profiler is to change false to true in the debug="true" in the web.config.

    <compilation defaultLanguage="c#" debug="true" batch="false" targetFramework="4.5">
    

    After this you can get the mini profiler by adding ?umbDebug=true to the URL like this.

    http://www.yourdomain.com/?umbDebug=true

    Hope this helps you to get more information about why your page is take 2 minutes to load.

    /Dennis

  • Saied 349 posts 674 karma points
    Sep 27, 2016 @ 23:16
    Saied
    0

    Hi Dennis,

    I did ?umbDebugShowTrace=true before but not what you mentioned. What is the difference?

    I ran one on my contact page and I noticed this:

    RazorView.Render: ~/Views/ContactBD.cshtml  7048.0
    

    This initially was slow whenever I deployed, but not as slow as this. This started happening when I moved to azure.

    I also noticed this [DatabaseServerMessenger] Syncing from database.... Does it do this no matter if you have the umbraco.config or not? I thought it pulls from the config first?

    I have looked at CachedPartials and OutputCache, but what if my sites share the same partial? Will someone else get a cached result if data going into the partial is dynamic?

    Are there any other things I can do to speed up rendering of partials?

    If this helps, I know the files are replicated in azure.

    Thanks, Saied

  • Lars Nederberg 29 posts 84 karma points
    Sep 27, 2016 @ 21:19
    Lars Nederberg
    1

    And don't forget to set debug to false in the compilation element in web.config.

Please Sign in or register to post replies

Write your reply to:

Draft