Views: 8091
Number of votes: 6
Average rating:

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

alexander
(By alexander, 9/12/2012 2:21:25 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 :-)

steve
(By steve, 9/12/2012 2:58:20 PM)

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

Stefan Forsberg
(By Stefan Forsberg, 9/12/2012 3:18:57 PM)

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

daniel.b.berg
(By daniel.b.berg, 9/12/2012 3:30:29 PM)

That is wicked cool! Great work!

Jeff.Wallace
(By Jeff.Wallace, 9/12/2012 4:53:40 PM)

Very nice!

Arild Henrichsen
(By Arild Henrichsen, 9/13/2012 11:14:22 AM)

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

frederik
(By frederik, 9/13/2012 12:43:17 PM)

Great stuff!

Janne Kuusela
(By Janne Kuusela, 9/16/2013 3:35:45 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
(By Shoma Gujjar, 12/17/2013 7:02:14 PM)

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

Arve Systad
(By Arve Systad, 7/1/2014 4:28:41 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
(By Michal Grzegorzak, 8/7/2015 12:29:33 PM)

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
(By Janne Kuusela, 11/16/2015 3:48:23 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

mgrzegorzak
(By mgrzegorzak, 6/27/2016 5:52:11 PM)

Thanks Janne, it`s working now!

Please login to comment.