September 25, 2018

Speed up Sitecore 9 start

Sitecore 9 can be slow to start, which is especially annoying during development. Below are some configuration tweaks to speed it up.


Put some agents on low rotation:

    <!-- Update this agent so it doesn't run every 10 seconds. Appears to be related to email contact management. -->
    <agent type="Sitecore.ListManagement.Operations.UpdateListOperationsAgent, Sitecore.ListManagement">
        <patch:attribute name="interval">00:30:00</patch:attribute>

    <agent type="Sitecore.ContentSearch.SolrProvider.Agents.IndexingStateSwitcher, Sitecore.ContentSearch.SolrProvider">
        <patch:attribute name="interval">08:00:00</patch:attribute>

    <!-- Never automatically build core or master index -->
    <agent name="Core_Database_Agent">
        <patch:attribute name="interval">00:00:00</patch:attribute>
    <agent name="Master_Database_Agent">
        <patch:attribute name="interval">00:00:00</patch:attribute>


Remove some processors that are not needed during development:

        <processor type="Sitecore.Pipelines.Loader.ShowVersion, Sitecore.Kernel">
        <patch:delete />
        <processor type="Sitecore.Pipelines.Loader.ShowHistory, Sitecore.Kernel">
        <patch:delete />
        <processor type="Sitecore.Analytics.Pipelines.Initialize.ShowXdbInfo, Sitecore.Analytics">
        <patch:delete />
        <processor type="Sitecore.Pipelines.Loader.DumpConfigurationFiles, Sitecore.Kernel">
        <patch:delete />

Application settings

Disable EXM in Web.config (see here for details):

    <!-- Disable EXM for faster start-up times -->
    <add key="exmEnabled:define" value="no"/>

Switch optimize compilations on in Web.config (see here for details):

<compilation ... optimizeCompilations="true">


Many optimizations were taken from articles I found. Special thanks go out to the following persons:

© Joost Meijles 2018

Powered by Hugo & Kiss.