Copied to clipboard

Flag this post as spam?

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


  • Tito 284 posts 496 karma points
    Dec 01, 2015 @ 09:16
    Tito
    0

    Is this memory consume normal?

    I am using Umbraco 7.3.0 with Merchello 1.13.1. My database is sql express 2012. I have over 25.000 products installed as umbracon content and stored as Merchello products (i am not using detached content). umbraco.config xml data is about 14mb.

    Issues: First load of the home page is about 5-10 min. Memory peaks above 1000MB If i refresh application (change a class or config file) it takes long to load again. Thre are a lot of products, but debugging i can see my queries are fast so i dont know whay it takes so long to load.... i dont know how to profile it, and where this memory goes..

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Dec 01, 2015 @ 19:26
    Rusty Swayne
    0

    My guess it is the product Examine index. Did you delete or try rebuilding that ... that process may be intensive and slow ...

  • Tito 284 posts 496 karma points
    Dec 03, 2015 @ 10:20
    Tito
    0

    Yes, i have tried deleting temp folder on app data. It takes a lot first load, i can understand, since it has to build examine indexes and Umbraco cachés. But once it is done, it should load fine. The problem is, if i refresh de application (ie changing a c# class file or a config file) it takes a lot again to load, even a blank template (about 5 min).

    My project is the following:

    • Umbraco 7.3.0
    • Merchello 1.13.1

    Bazaar is not installed, but I have added Bazaar source code to my app code into a Bazaar folder. I have a folder in app_code for my clases that inherits from Bazaar ones.

    My it be a process on Bazaar that is checking something and as bazaar is not installed? I dont want to install Bazaar but use their viewmodels and other utility classes.

  • Tito 284 posts 496 karma points
    Dec 03, 2015 @ 10:41
    Tito
    0

    I have made a test, removing the app_code folder and setting a blank template. After an app refresh (i havent deleted examine index) it takes almost 4 minutes to load, so i guess it is not about bazaar code. I have checked that in app data the only file that is changed is umbraco.config. May be Umbraco is rebuilding umbraco.config file after an app refresh and it makes the process so slow?

  • Tito 284 posts 496 karma points
    Dec 03, 2015 @ 17:00
    Tito
    0

    @Rusty from my tests i guess it is an Umbraco bug. If you install a clean Umbraco version >= 7.3.0 (included latest 7.3.3), each time you make an app refresh the "App_data/umbraco.config" is recreated. I dont know if recreated completely, but the modifed datetime of the file. For small websites its hard to notice it, but for a big site like mine, each time you change a config file or, as more frequently, a c# file or dll, it recreates the umbraco.config and takes a long long time. I have tested against a 7.2.4 site and this file is not modifed under the same tests.

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Dec 03, 2015 @ 17:05
    Rusty Swayne
    0

    @Tito

    Thanks for the info. In your build, are your products also listed in content or are you using the newer virtual content IProductContent?

  • Tito 284 posts 496 karma points
    Dec 03, 2015 @ 18:29
    Tito
    0

    I am using products in content in Umbraco. And i am attaching manually to Merchello items in a way i think it is easier for the admin.

    The admin manages product info in Umbraco (name, description, base price, pictures, and mappings (categories, manufacturers, etc). And when configuring variants (different variant pricing, shipping options, etc) he needs to go to Merchello.

    So I have set up an event handler each time you save a product, it looks if it is attached to a variant in Merchello. If it is attached, it updates the price. If not, it creates a new variant. I have made a custom property, that renders a link to manage the Merchello product info from the product in Umbraco.

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Dec 03, 2015 @ 21:40
    Rusty Swayne
    0

    I think you are right then - It's the umbraco.config file. With that many content nodes the file is sure to be pretty big.

    I'd love to see your event handler - sounds interesting.

  • Tito 284 posts 496 karma points
    Dec 04, 2015 @ 09:37
    Tito
    0

    Hi @Rusty, i have already post an issue for this:

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

    I hope this issue to be solved soon as it is a nightmare for big projects like mine...

    For my aproach on using Merchello, i have made a separate post:

    https://our.umbraco.org/projects/collaboration/merchello/merchello//73451-my-aproach-to-product-linking-in-merchello

    I am new to Merchello so i dont know if i will be in trouble on a future with this approach :)

  • Tito 284 posts 496 karma points
    Jan 11, 2016 @ 18:32
    Tito
    0

    @Rusty it seemed to be the Examine index:

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

    Do you know why Examine would rebuild each time in app start? even when the index is already created? i dont know if it is an Umbraco or Merchello issue... may it be a Merchello/Bazaar init event that force the index to rebuild?

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jan 11, 2016 @ 19:11
    Rusty Swayne
    0

    I think this is an Umbraco issue - which I believe Shannon has already fixed and will be released in 7.4.0 but you should double check me. I read a pull request last week (to the Umbraco Core) that looked like it resolved it ...

  • Tito 284 posts 496 karma points
    Jan 12, 2016 @ 09:47
    Tito
    0

    Thanks Rusty. Finally i set RebuildOnAppStart="false" on ExamineSettings.config to avoid continous rebuilding. Do you know if i will have any issue setting this option fo "false"?

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jan 12, 2016 @ 15:54
    Rusty Swayne
    0

    From Merchello's perspective you will be fine as things just get reindexed if they are missing. I would not delete your Umbraco indexes though =)

  • Tito 284 posts 496 karma points
    Jan 13, 2016 @ 09:38
    Tito
    0

    its weird, i think is a memory problem. This problem only happens when i open the project local with my iis express or remote in the iis7 of my virtual server. When i open the project local in iis7 in my computer, i can kill the process and reload the page and it does not rebuild indexes (it loads after 20-30 seconds). May be rebuilding is never finished in remote because of memory limits on app pool or iis express or anything else and whenever i make an app start it tries to rebuild again?

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jan 13, 2016 @ 16:42
    Rusty Swayne
    0

    @Tito - is this the site you were working on with loads of products?

    Maybe I should add a configuration section for Merchello.Examine that allows you to specify how many should be indexed. By default, Invoices, Orders and Customers initially indexes 100 records, while Products was changed to index all.

  • Tito 284 posts 496 karma points
    Jan 13, 2016 @ 17:59
    Tito
    0

    Yes that is the site. It has over 40.000 products in Merchello. Why by default index only 100 records?

    As i was telling, in my local IIS7 it does not rebuild indexes on app start. Only in my production site. The only different config is debug=true in my local machine and the memory available.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies