Hybris伺服器啟動日誌分析

i042416發表於2019-11-23

build檔案檢測,使用b2c_acc recipit啟動伺服器:/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

Hybris伺服器啟動日誌分析

簡單的啟動環境檢測,比如作業系統,jdk型別,Java編譯器型別等等:

Hybris伺服器啟動日誌分析

列出對應檔案目錄的位置:
[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
列出載入的extension和module名稱:

Hybris伺服器啟動日誌分析 Hybris伺服器啟動日誌分析

Tenant名稱,啟動模式,作業系統型別,資料庫型別和儲存檔案,Java版本,Cache,web server型別都列印出來了:

Hybris伺服器啟動日誌分析

啟動Solr伺服器,埠8983:

Hybris伺服器啟動日誌分析

等待3分鐘,直到Solr成功啟動為止,看到Happy searching, 意味著稍後可以使用full text query了。

Hybris伺服器啟動日誌分析

接下來是Spring開發程式設計師熟悉的context refresh操作了:

Hybris伺服器啟動日誌分析

[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)
各種Bean的載入:

Hybris伺服器啟動日誌分析

啟動indexer cronjob:

Hybris伺服器啟動日誌分析

各種Spring post processing操作:

Hybris伺服器啟動日誌分析

[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

要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":

Hybris伺服器啟動日誌分析


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2665437/,如需轉載,請註明出處,否則將追究法律責任。

相關文章