Per Bjurström
Sep 12, 2012
  10799
(6 votes)

EPiServer 7: Startup Performance

One of the areas we have improved is the startup time of EPiServer 7, there is a lot of new functionality  that requires initialization but it actually starts faster that previous versions.

Some of the changes we have done is using parallelization where a single initialization module runs multiple independent tasks in parallel or run some tasks asynchronously. Another change to speed up typed pages is that we precompile the Castle proxies that is backing your custom models , that processes starts in the background before the the first page is accessed. We also enabled the optimizeCompilations by default which I blogged about a few years back, that does a big difference. We also rewrote assembly scanning and implemented a disk based cache and centralized discovery of types to avoid doing reflection over and over again.

To make it easier to debug startup performance there is a hidden gem that displays the last startup and how long time each initialization module needed at http://[site]/[UI]/Shell/Debug/ShowTimeMeters.

 

image

 

There is a web.config setting in appSettings that enables this debug view, you get the name of the key that goes into web.config when you access the url the first time.

Update: If you are running one of the EPiServer 7 preview versions then the URL will be http://[site]/[UI]/modules/Shell/Debug/ShowTimeMeters instead.  Thanks Steve for noticing.

Sep 12, 2012

Comments

Sep 12, 2012 12:21 PM

Fantastic work Per! This will make developing with EPiServer 7 a dream. All tough it offers less "I am just going to grab a coffee while it warms up" breaks :-)

Sep 12, 2012 12:58 PM

Utterly cool! Startup time is amazing in my vm test bench.

Stefan Forsberg
Stefan Forsberg Sep 12, 2012 01:18 PM

This built-in type of diagnostics are great, thanks a lot for adding that!

Sep 12, 2012 01:30 PM

That is wicked cool! Great work!

Sep 12, 2012 02:53 PM

Very nice!

Arild Henrichsen
Arild Henrichsen Sep 13, 2012 09:14 AM

Great to see you are targeting startup performance. +1 for the diagnostics view.

Frederik Vig
Frederik Vig Sep 13, 2012 10:43 AM

Great stuff!

Janne Kuusela Kuusela
Janne Kuusela Kuusela Sep 16, 2013 01:35 PM

Hi, for some reason when I try to access this "showTimeMeters" I get login screen and even though logging in with webAdmins member account I still can't get in. Any idea why?

UPDATE: when testing with local admin account I was able to access, so what special group is used to secure this "ShowTimeMeters"?

Shoma Gujjar
Shoma Gujjar Dec 17, 2013 06:02 PM

For new bees, add the below settings in the web.config app settings file
to be able to view the ShowTimeMeters

Arve Systad
Arve Systad Jul 1, 2014 02:28 PM

@Janne Kuusela You probably have some (or possibly deeper down also) that might give you an idea of what groups are used to secure it (since it resides beneath /Shell/....

Michal Grzegorzak
Michal Grzegorzak Aug 7, 2015 10:29 AM

Have the same problem as @Janne Kuusela. And I don`t have anything to fancy in the access restriction to Epi locations. Any other ideas?

Janne Kuusela Kuusela
Janne Kuusela Kuusela Nov 16, 2015 02:48 PM

@Michal Grzegorzak, you need to be member of group named "Administrators" to be able to see EPiServer debug pages, this is from the controller in question:

    [Authorize(Roles="Administrators")]
    public class EPiDebugController : Controller

Jun 27, 2016 03:52 PM

Thanks Janne, it`s working now!

Please login to comment.
Latest blogs
Recraft's image generation with AI-Assistant for Optimizely

Recraft V3 model is outperforming all other models in the image generation space and we are happy to share: Recraft's new model is now available fo...

Luc Gosso (MVP) | Nov 8, 2024 | Syndicated blog

ExcludeDeleted(): Prevent Trashed Content from Appearing in Search Results

Introduction In Optimizely CMS, content that is moved to the trash can still appear in search results if it’s not explicitly excluded using the...

Ashish Rasal | Nov 7, 2024

CMS + CMP + Graph integration

We have just released a new package https://nuget.optimizely.com/package/?id=EPiServer.Cms.WelcomeIntegration.Graph which changes the way CMS fetch...

Bartosz Sekula | Nov 5, 2024

Block type selection doesn't work

Imagine you're trying to create a new block in a specific content area. You click the "Create" link, expecting to see a CMS modal with a list of...

Damian Smutek | Nov 4, 2024 | Syndicated blog

.NET 8 FAQ

I have previously written about .NET compatibility in general and .NET 8 in particular, see blog posts here , here and here . With the end of suppo...

Magnus Rahl | Nov 4, 2024

Dynamic packages in Commerce Connect

In Optimizely Commerce Connect, you can group different items using packages and bundles. Package: A package has one or more versions of a product...

K Khan | Nov 1, 2024