Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a site that works fine in local environment and in production. But when I enable ModelsBuilder:
<add key="Umbraco.ModelsBuilder.Enable" value="true"/> <add key="Umbraco.ModelsBuilder.ModelsMode" value="Dll"/>
...on production, then CPU goes from 5% to 60% and memory goes from 700Mb to 3Gb. And the site slows down a lot because of that.
As soon as I disable ModelsBuilder (by remove the above settings) the site acts normal again.
I'm using Umbraco 7.4 and Modelsbuilder (by nuget 3.0.10)
Please help!
Hi Oscar,
Are you using the models generated by Models builder ? Because you say when you disable it your site still works.
So why you want to enable it when appararently you are not using it.
Dave
When Models builder is disabled the following code:
var result = Content.Parent.Parent.FirstChild<MyGeneratedClass>();
sets "result" to null.
But when Modelsbuilder is enabled "result" is set to a new instance of MyGeneratedClass.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Modelsbuilder - performance issues - CPU raises and Memory leaks
I have a site that works fine in local environment and in production. But when I enable ModelsBuilder:
...on production, then CPU goes from 5% to 60% and memory goes from 700Mb to 3Gb. And the site slows down a lot because of that.
As soon as I disable ModelsBuilder (by remove the above settings) the site acts normal again.
I'm using Umbraco 7.4 and Modelsbuilder (by nuget 3.0.10)
Please help!
Hi Oscar,
Are you using the models generated by Models builder ? Because you say when you disable it your site still works.
So why you want to enable it when appararently you are not using it.
Dave
When Models builder is disabled the following code:
var result = Content.Parent.Parent.FirstChild<MyGeneratedClass>();
sets "result" to null.
But when Modelsbuilder is enabled "result" is set to a new instance of MyGeneratedClass.
is working on a reply...