Sebastian Lundh
Nov 19, 2009
  8719
(1 votes)

Hints on how to speed up initialization

Here’s some hints on how you can speed up initialization of your EPiServer sites.

In the “lang” directory you have all the system languages. These are parsed and loaded into the memory. It might be the case that you don’t really need all of these. If you have a load balanced or mirroring setup with front servers and servers for editors maybe you just need one system language on front servers.

With the site setting stringDelayedLoadThreshold in web.config it’s possible to set a string length limit for what’s being loaded during initialization. So a value of 50 means that all strings shorter than 50 will be loaded directly and all strings longer than 50 will be loaded on demand.

In R2 SP1 this was standard that all requests goes to a page showing “Application is initializing. Please retry shortly.” in R2 SP2 this was changed to that you could choose yourself what behavior you want with having or removing ApplicationInitializing.txt. Basically if you have this text file all requests will not be queued up. So the application will start up faster.
See Magnus blog for more information: http://labs.episerver.com/en/Blogs/Magnus-Strale/Dates/2009/4/EPiServer-Initialization-and-quotApplication-is-busy-under-initialization-phasequot/

EPiServer goes through dll’s in bin folder to check for different attributes like plugins:

[GuiPlugIn(DisplayName = "MyPlugIn",
Description = "Just a sample",
Url = "~/myplugin/Sample.ascx",
Area = PlugInArea.EditPanel)]

If you have assemblies that doesn’t use any of these attributes, like referenced assemblies for instance it might be a good idea to setup probing of assemblies to another folder then bin. Something like:
  <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <probing privatePath="bin\subbin" />

For more information see Scotts blog: http://www.hanselman.com/blog/PermaLink.aspx?guid=4d0ef4fb-f8ae-4355-a658-3c0432c98dbe

Please post any other ideas.

Nov 19, 2009

Comments

Please login to comment.
Latest blogs
Opti ID overview

Opti ID allows you to log in once and switch between Optimizely products using Okta, Entra ID, or a local account. You can also manage all your use...

K Khan | Jul 26, 2024

Getting Started with Optimizely SaaS using Next.js Starter App - Extend a component - Part 3

This is the final part of our Optimizely SaaS CMS proof-of-concept (POC) blog series. In this post, we'll dive into extending a component within th...

Raghavendra Murthy | Jul 23, 2024 | Syndicated blog

Optimizely Graph – Faceting with Geta Categories

Overview As Optimizely Graph (and Content Cloud SaaS) makes its global debut, it is known that there are going to be some bugs and quirks. One of t...

Eric Markson | Jul 22, 2024 | Syndicated blog

Integration Bynder (DAM) with Optimizely

Bynder is a comprehensive digital asset management (DAM) platform that enables businesses to efficiently manage, store, organize, and share their...

Sanjay Kumar | Jul 22, 2024

Frontend Hosting for SaaS CMS Solutions

Introduction Now that CMS SaaS Core has gone into general availability, it is a good time to start discussing where to host the head. SaaS Core is...

Minesh Shah (Netcel) | Jul 20, 2024

Optimizely London Dev Meetup 11th July 2024

On 11th July 2024 in London Niteco and Netcel along with Optimizely ran the London Developer meetup. There was an great agenda of talks that we put...

Scott Reed | Jul 19, 2024