Analysis of hybris server startup log

Time:2020-10-25

Build file detection, using B2C_ ACC recipe start server / home / jerrywang / hybris / installer / recipes / B2C_ acc/ build.gradle

The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.

at build_24qda9aair3teyrqc9izdrv89.run(/home/jerrywang/Hybris/installer/recipes/b2c_acc/build.gradle:79)

:recipes/b2c_acc:start
Executing: createConfig…
Buildfile: /home/jerrywang/Hybris/hybris/bin/platform/build.xml

Analysis of hybris server startup log

Simple startup environment detection, such as operating system, JDK type, java compiler type, etc

Analysis of hybris server startup log

List the location of the corresponding file directory:
[echo] Extension file used: /home/jerrywang/Hybris/hybris/config/localextensions.xml

 [echo] Platform home: /home/jerrywang/Hybris/hybris/bin/platform
 [echo] Lg folder: /home/jerrywang/Hybris/hybris/log
 [echo] Data folder: /home/jerrywang/Hybris/hybris/data
 [echo] Config folder: /home/jerrywang/Hybris/hybris/config
 [echo] Bin folder: /home/jerrywang/Hybris/hybris/bin
 [echo] Temp folder: /home/jerrywang/Hybris/hybris/temp/hybriso
 [echo] Boostrap bin folder: /home/jerrywang/Hybris/hybris/bin/platform/bootstrap/bin

List the loaded extension and module names:

Analysis of hybris server startup log
Analysis of hybris server startup log

Tenant name, startup mode, operating system type, database type and storage file, java version, cache and web server type are all printed out

Analysis of hybris server startup log

Start the Solr server at port 8983:

Analysis of hybris server startup log

Wait for 3 minutes until Solr starts successfully. You can see happy searching, which means that you can use full text query later.

Analysis of hybris server startup log

Next, spring developers are familiar with the context refresh operation:

Analysis of hybris server startup log

[localhost-startStop-2] [HybrisContextFactory] – Refreshing SpringContext (Global context) took: (7.980 s)
[m[32mINFO [localhost-startStop-2] [HybrisContextFactory] Initializing <<global>> Spring ApplicationContext took: (8.708 s)
[m[32mINFO [localhost-startStop-2] [HybrisContextFactory] Loading <<application>> spring config <master> from extension (core) located in (core-spring.xml,persistence-spring.xml,core-media-spring.xml,core-profiling-spring.xml,core-jmx-spring.xml,core-filter-spring.xml,servicelayer-spring.xml,user-spring.xml,security-spring.xml,media-spring.xml,i18n-spring.xml,interceptor-spring.xml,event-spring.xml) took: (163.4 ms)
Loading of various beans:

Analysis of hybris server startup log

Start the indexer cronjob:

Analysis of hybris server startup log

Various spring post processing operations:

Analysis of hybris server startup log

[32mINFO [localhost-startStop-3] (junit) [MapMergeDirectiveBeanPostProcessor] Post Processing MapMergeDirective [defaultPromotionProductRaoProvidersMapping] on Bean [raoProviders]
[m[32mINFO [localhost-startStop-3] (junit) [MapMergeDirectiveBeanPostProcessor] Post Processing MapMergeDirective [defaultCouponRuleActionMetadataHandlersMergeDirective] on Bean [ruleActionMetadataHandlers]
[m[32mINFO [localhost-startStop-3] (junit) [MapMergeDirectiveBeanPostProcessor] Post Processing MapMergeDirective [givenCouponActionStrategiesMappingMergeDirective] on Bean [promotionActionStrategiesMapping]
[m[32mINFO [localhost-startStop-3] (junit) [ListMergeDirectiveBeanPostProcessor] Post Processing ListMergeDirective [commerceQuoteCartCalculationMethodHookMergeDirective] on Bean [commerceCartCalculationMethodHooks]
[m[32mINFO [localhost-startStop-3] (junit) [ListMergeDirectiveBeanPostProcessor] Post Processing ListMergeDirective [commerceAddToCartProductConfigMergeDirective] on Bean [commerceAddToCartMethodHooks]
[m[32mINFO [localhost-startStop-3] (junit) [MapMergeDirectiveBeanPostProcessor] Post Processing MapMergeDirective [textFieldConfigurationHandlerRegistrar] on Bean [productConfigurationHandlers]
[m[32mINFO [localhost-startStop-7] [RemoveDefaultSessionFixationStrategyBeanPostProcessor] Spring default SessionFixationProtectionStrategy was not defined. Added HybrisSessionFixationProtectionStrategy

For more original articles on Jerry, please pay attention to the official account of “Wang Zixi”:
Analysis of hybris server startup log