How can I shorten the startup time of a Hybris server?

I am working on a Hybris project , and to wait 350-550 sec , only one Hybris server single is required , even for a small modification / incorrect code setting. Is it possible to reduce this time by running only those extensions that I changed or in some other way? It would be great.

+7
source share
11 answers

+1 on JRebel. It works well with a hybrid. Of course, it is expensive, but you will quickly get a cost savings. The initial load is slower, but after that it will save a lot of time.

Another thing is to take a look at your localextensions.xml and provide only those extensions that are necessary for your project. This is of great importance for startup time.

I also saw reasonable start-up improvements using DBs other than HSQL when starting the platform. I use MySQL locally.

It's another matter that you have enough grunts in the car you are using. I just started the platform and even launched it with JRebel “in just 200 seconds”. I would suggest looking at the quad-core processor and SSD to improve the time for local development.

+11
source

You will find all the instructions in this article to speed up your server startup time by up to 50% by

  • Disabling Cronjobs
  • Removing unused tenants
  • Modification tomcat startStopThreads

https://hybrismart.com/2016/12/27/speed-up-server-start-time/

+6

Jrebel - Hybris . , Spring , .

, , : DCEVM fakereplace

+2

, , , . , , , , , , 100%.

+1

Linux (Ubuntu) Windows. . 1/4 1/2 . , !

+1

, Jrebels .

Hybris , Windows, 20 30 ( , ).

JRebels, JRebel , . JRebel DCEVM + HotSwap. HotSwap.

JRebel HotSwap? . .

, , - .

+1

, !:) :

  • context.xml platform/tomcat/conf WEB-INF
  • IntelliJ , , , java //. WEB-INF/ .

, hybris, ( ) , , Tomcat .

: Hybris "webapp" , , - . " webapp".

0

local.properties

#Performance mode
build.development.mode=false
tomcat.development.mode=false
storefront.granule.enabled=true
addonfilter.active=false
0

localextension.xml.
Solr , local.properties.
hybris intel-i3/AMD, Intel-i5 8 .

0

, JRebel Hybris .

IDE ( , ), .

java spring , , , , , ant build. ( , / ).

, myJRebel https://my.jrebel.com/, .

-

  • JRebel ( )
  • . Mine - C:\Monil\Tools\jrebel
  • local.properties( )

    tomcat.debugjavaoptions=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n -Xverify:none -agentpath:c:/Monil/Tools/jrebel/lib/jrebel64.dll -Xbootclasspath/p:${HYBRIS_TEMP_DIR}/hybris/rebelboot.jar

Please note that the banner is ${HYBRIS_TEMP_DIR}/hybris/rebelboot.jarautomatically added to the hybris temperature directly when you run ant everything and start your server.

0
source

Source: https://habr.com/ru/post/1627934/


All Articles