Avoka Blog: Adobe LiveCycle

March 17, 2009

Speedup JBoss LiveCycle Startup

JBoss Start-up Performance

Starting JBoss with a fully configured LiveCycle installation can take an awfully long time! We’ve done some digging and found that a large portion of this time is spent unpacking the LiveCycle EAR file – and copying these files into the jboss/server/all/tmp directory. In fact a fully configured LiveCycle EAR can amount to over 800 MB of data being written – which adds a considerable amount of time to the start-up.

JBoss supports unpacked EAR and WAR files in the deploy directory, which will save these files from being unpacked at start-up time. To simplify this we’ve created a small utility that unpacks the LiveCycle EAR file and all of its contents into the deploy directory.  

We’ve found that its halved the JBoss start-up time – on my laptop this saved nearly 8 minutes – which is lots when you have to restart Jboss often.

Instructions:

Download Link
 

 

 

  1. Download the utility and unzip the file. You should have a file called “AdobeJBossEarUnpacker.jar
  2. Run the Jar – it will prompt you for the location of the JBoss deploy directory (typically its under your LiveCycle install directory in /jboss/server/all/deploy).
  3. That’s it. It will create a copy of your LiveCycle.ear file then proceed to unpack LiveCyle inside your deploy directory. Whenever you need to redeploy LiveCycle make sure you delete the exploded directory first. 

Startup Sequence

While we are on the topic of starting JBoss another really handy trick is to make use of the “deploy.last” sub-directoy. Any files placed in this directory won’t be deployed until all the files in the main deploy directrry have started. This can be very handy when you have an application that is dependant on a LiveCycle service – which means that you don’t want it to start until LiveCycle its-self has fully started.

PS – Thanks to Malcolm Edgar for some great investigative work and creating the unpacker util.

Advertisements

3 Comments »

  1. Nice! Kind of obvious in hindsight but a definite timesaver. Your util saves some time too unpacking over 200 .war files.

    It just shaved about 3 minutes off my boot time.

    It’s worth keeping in mind that if this is applied to a turnkey installation of LiveCycle, that you may run into trouble when applying the service packs automatically… so beware 🙂

    Comment by Mark Szulc — March 18, 2009 @ 10:54 am

  2. Thanks Mark.

    You are right about the service packs. In that case you’d need to delete the exploded LiveCycle.ear and then restore the backed up version so you can apply the patch.

    Phil

    Comment by pcopeland — March 18, 2009 @ 8:17 pm

  3. […] post on Avoka blog – they created a script to unpack the EAR and WAR archives from Livecycle ES distribution – that […]

    Pingback by Cornel Creanga » Blog Archive » Improve Livecycle ES startup — March 20, 2009 @ 5:39 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: