Startup Tuning

SAP Commerce comes with strategies that you can use to optimize the Platform startup time.

SAP Commerce is a complex enterprise application designed to handle multiple use-cases. Due to this complexity, the Platform startup time may become a considerable factor in project development. Long startup times negatively impact developer productivity. They are also problematic in the cloud environment where nodes are expected to become operational quickly.

Platform Startup Overview

SAP Commerce consists of many web applications (for example Administration Console, Backoffice, and storefront) that are deployed to a pre-packaged Tomcat server (SAP Commerce Server). These web applications have a common application context that contains the Platform business logic.

Registry is the central class of this shared context and has to be started before web applications begin to operate. In a typical startup sequence:
  1. The Tomcat server process is started via hybrisserver.sh.

  2. Tomcat begins to load the deployed web applications.

  3. HybrisContextLoaderListeners of the web applications are invoked.

  4. The first web application starts Registry while others are blocked until this process is finished.

  5. Registry:

    1. Reads all required configurations files.

    2. Loads the type system metadata from the database.

    3. Creates the Spring application context.

  6. The web applications can proceed to initialize the Spring web context.

  7. SAP Commerce is up and running.

Some of these operations can become time consuming.

Platform Startup Tuning

There are three main areas where it is possible to reduce the time needed for execution: