Copied to clipboard

Flag this post as spam?

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


  • Thomas Dolberg 74 posts 95 karma points
    Jan 27, 2012 @ 12:06
    Thomas Dolberg
    0

    Memory leak?

    Hi,

     

    I am developing a site which seems to have some memory leak. Using RedGate Memory Profiler, I can see that the unused memory allocated to .net is quite large. From what I have read so far, it might have something to do with objects on the large object heap. Looking at the objects in the large object heap I can see that there is an array of an  Linq to Umbraco entity which has a live size of 131,088 bytes but a size with children of 14,675,390 bytes (see http://screencast.com/t/BDIWdnSvbi5). Looking further into this it seems to be the Linq 2 Umbraco datacontext, which is causing this: http://screencast.com/t/XDnjJeWkAJmW. Is there someway I can prevent this behavior? 

    I am running 4.7.1 and caching the Linq to umbraco context as shown here http://vimeo.com/9790069 

    Thanks

    Thomas

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Jan 27, 2012 @ 16:50
    Jeroen Breuer
    0

    Hmm I haven't used Linq to Umbraco for a while, but I heard it has some performance problems. Might be better to use something else. You can find some alternatives in this topic: http://our.umbraco.org/forum/developers/api-questions/18933-Query-multiple-websites

    Jeroen

  • Thomas Dolberg 74 posts 95 karma points
    Jan 27, 2012 @ 17:09
    Thomas Dolberg
    0

    Hi Jeroen

     

    thanks for the reply. As far as I can see it is only Linq2Umbraco that offers strongly-typed objects of the alternatives mentioned?

     

    -Thomas

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Jan 27, 2012 @ 17:15
    Jeroen Breuer
    0

    Well with Razor you can also use Strongly Typed objects if you want. Have a look at this: http://razordatatypemodels.codeplex.com/

    This might also be interesting: http://our.umbraco.org/projects/developer-tools/usitebuilder/usitebuilder-support/25697-uSiteBuilder-and-strongly-typed-views-with-razor

    Jeroen

  • Thomas Dolberg 74 posts 95 karma points
    Jan 28, 2012 @ 07:11
    Thomas Dolberg
    0

    Hi Jeroen,

     

    It turned out that my iis was set to not allow 32 bit applications. Allowing 32 bit applications solved the problem. Shouldn't it be possible to run umbraco on a 64-bit box?

     

    best regards

    Thomas

  • 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