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
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?
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
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
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
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
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
is working on a reply...