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.
相关问题
- How to invoke Ant in a Jenkins Groovy Pipeline
- Correct locale for Indonesia( “id_ID” Vs “in_ID” )
- What is recipe in SAP Hybris?
- HYBRIS - How components and slots work in JSP file
- How to get config data from local.properties to im
相关文章
- HYBRIS - How components and slots work in JSP file
- How to get config data from local.properties to im
- hybris - Which Spring Controller is serving my req
- How could I reduce the Hybris server startup time?
- Hybris MediaModel how to get Bytes
- Change date format in DTO JSON on returning throug
- Hybris: how to schedule cornjob to work from 7am t
- Hybris addons install / uninstall / concept [close
I'd suggest to disable a few heavy extensions, which you are using during the development process and enable only this extension on which you are working on along with necessary extensions. I don't know, which hybris version you're using, but as far as I know, there gonna be functionality, which should solve your problem in the further releases of the platform, but I'm not 100% sure about that.
Thanks to all of you, who wrote an answer! :) Actually I found a really great solution for my own question:
Now if I start a hybris server and I modify (or create) a file in my project, I just run a compile on the modified package or just on the single current file and after a few seconds Tomcat reloads the modified stuff in the current extension.
UPDATE: Since a Hybris extension could not use the "webapp" part of other extensions, it seems like it is not possible to reload any dependency. So my solution is working only on "webapp only" extensions.
Try Linux (Ubuntu) instead of Windows. The performance difference is amazing. It's like 1/4 of time for a build and 1/2 of time for a server start. I wish I had figured it out earlier!
Try to put only required extension in localextension.xml.
You can stop Solr server from autostarting by disabling it through local.properties file.
And if you are running hybris server on intel-i3/AMD processor,please upgrade to intel-i5 with minimum of 8 GB RAM.
+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.