U4-8182 - Frontend and backoffice is slow when ModelsBuilder is enabled

Created by Bjarne Fyrstenborg 17 Mar 2016, 09:18:35 Updated by seanhak 24 Oct 2017, 08:04:35

We have experienced after upgrading a site from Umbraco 7.2.4 -> 7.4.1 that the site - both frontend and backoffice became slow, and it used more memory than the live site (both on same server).

I then thought about what was new in Umbraco 7.4.x and ModelsBuilder came to my mind. Futhermore I had noticed a lot of log entries from ModelsBuilder.

Here is just a small part of it:

 2016-03-16 16:02:28,415 [P9724/D11/T54] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:28,415 [P9724/D11/T61] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:28,493 [P9724/D11/T61] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:28,532 [P9724/D11/T54] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:28,572 [P9724/D11/T61] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:28,572 [P9724/D11/T54] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:28,649 [P9724/D11/T54] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:28,688 [P9724/D11/T61] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:28,727 [P9724/D11/T54] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:28,727 [P9724/D11/T61] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:28,805 [P9724/D11/T61] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:28,844 [P9724/D11/T54] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:28,883 [P9724/D11/T61] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:28,883 [P9724/D11/T54] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:28,994 [P9724/D11/T54] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:29,123 [P9724/D11/T61] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:29,190 [P9724/D11/T54] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:29,190 [P9724/D11/T61] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:29,358 [P9724/D11/T61] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:29,412 [P9724/D11/T54] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:29,466 [P9724/D11/T61] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:29,466 [P9724/D11/T54] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:29,579 [P9724/D11/T54] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:29,627 [P9724/D11/T61] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:29,676 [P9724/D11/T54] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:29,676 [P9724/D11/T61] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:29,764 [P9724/D11/T61] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:29,805 [P9724/D11/T54] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:29,845 [P9724/D11/T54] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:29,845 [P9724/D11/T61] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:29,925 [P9724/D11/T61] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:29,965 [P9724/D11/T54] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:30,005 [P9724/D11/T54] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:30,005 [P9724/D11/T61] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:30,084 [P9724/D11/T61] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.
 2016-03-16 16:02:30,125 [P9724/D11/T54] WARN  Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory - No models.

Especially listview with a lot of review nodes was really slow to load (totalItems:10507), but then after disabled ModelsBuilder i web.config the site was running normal again.

<add key="Umbraco.ModelsBuilder.Enable" value="false" />
<add key="Umbraco.ModelsBuilder.ModelsMode" value="PureLive" />

The upgrade was done manually by following the upgrade guide (not via NuGet), but in the default download (.zip) ModelsBuilder is enabled.

Comments

Arjan Woldring 11 Jan 2017, 10:18:51

I did encounter this too on a 7.4.3 site. Disabling the modelsbuilder decreased the Time To First Byte on the frontend with almost a half(!!!). Not sure if this is already fixed in more recent versions. Will check out.


seanhak 24 Oct 2017, 08:04:35

When we did a upgrade from 7.4.3 to 7.7.3 we noticed a huge performance bump (40s+ BFB), turns out we had modelsbuilder enabled (without using it). When we switched to false and "Nothing" in ModelsMode, performance went back to same as before the upgrade.


Priority: Normal

Type: Bug

State: Submitted

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.4.1, 7.4.3

Due in version:

Sprint:

Story Points:

Cycle: