RE: Liferay 7.1.1-GA2 - WAR deploy takes 10 minutes

Christoph Spanknebel, modified 6 Years ago. New Member Posts: 3 Join Date: 4/9/19 Recent Posts
Hello dear Liferay community,

by migrating a big application (~60MB .war) from Liferay 6.2 to 7.1 my team noticed a very long deploy/later server startup time of 8-12 minutes on Liferay 7.
After deploy, everything works. Log output shows no error. Other migrated applications of similar size just take 1-2 minutes.
I tried so set logging to be more verbose:
  • Application: 'TRACE' for all loggers.
  • Liferay Loglevel: 'TRACE' to all loggers of search tokens 'osgi', 'deploy', 'spring' and 'wab'.
Log output you find in attachments (reduced for customer privacy).
I found a similar problem here. But from log entries you see a silent 8 minutes pause after bundle start and before spring initialization.

What happens at bundle start? Does Liferay/OSGi scan bundle contents and is very slow by specific occasions?
thumbnail
Andrew Jardine, modified 6 Years ago. Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Hi Christoph,

I had a similar issue the other day with a 7.1 GA3 where deployment of my modules (the new format) was taking forever as well. It seemed to be linked to the system startup check for circular references. I dug through the portal source a bit and in the end added this setting to my portal-ext.properties file
    module.framework.properties.initial.system.check.enabled=false

... which I beleive will skip the check. You can always run it manually in the gogo shell if you suspect and issue. My startup times seem to be muchfaster now.

​​​​​​​Not sure if you are maybe suffering the same fate but worth a shot.