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.
-
The Tomcat server process is started via hybrisserver.sh.
-
Tomcat begins to load the deployed web applications.
-
HybrisContextLoaderListeners of the web applications are invoked.
-
The first web application starts Registry while others are blocked until this process is finished.
-
Registry:
-
Reads all required configurations files.
-
Loads the type system metadata from the database.
-
Creates the Spring application context.
-
-
The web applications can proceed to initialize the Spring web context.
-
SAP Commerce is up and running.
Platform Startup Tuning
-
changing the strategy for loading the type system information; for more information, see Type System Information Loading Strategies
-
adjusting the Tomcat configuration; for more information, see Configuring TLD and Pluggability Scans and Enabling Multithreaded WebApp Loading
-
configuring the rules to reduce the classpath traversal by class loaders; for more information, see Ignoring Nonexistent Classes on Classloader and Classpath Analysis Tool