Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How could I reduce the Hybris server startup time?

Tags:

hybris

I am working on a Hybris project and it is very time consuming to wait 350 - 550 sec for a single Hybris server startup, for even just a little modification/misstype in the code. Is it possible to reduce this time by running only those extensions I have modified or any other way? That would be a great thing.

like image 495
sz3nt Avatar asked Feb 09 '16 10:02

sz3nt


People also ask

How do I start SAP Hybris?

Go to your path hybris->bin->platform>hybrisserver. bat and enter. Here we are going to start the hybris server. After some time we will get the server start message.


2 Answers

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

  1. disabling Cronjobs
  2. Removing unused tenants
  3. Modifing tomcat startStopThreads
  4. Excluding Some Jars From Scanning

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

like image 93
Monsif EL AISSOUSSI Avatar answered Oct 03 '22 19:10

Monsif EL AISSOUSSI


+1 on JRebel. It works well with hybris. Sure, it's expensive, but you'll rapidly get the ROI savings. The initial load is slower, but once it's up it'll save a lot of time.

The other thing to do is to take a look at your localextensions.xml and ensure only the extensions you need for your project are in there. It makes a big difference to the start up time.

I've also seen reasonable start up time improvements through using a DB other than HSQL when running the platform. I use MySQL locally.

The other thing is to ensure you've got enough grunt in the machine you're using. I've just started the platform here and even with JRebel running it's 'only' taken 200 seconds. I'd suggest looking at a quad core CPU and an SSD to improve times for local development.

like image 29
Mike Palfrey Avatar answered Oct 03 '22 19:10

Mike Palfrey