Reduce your Sakai CLE startup time

There is a current discussion on the sakai-dev list about the recent switch to Tomcat 7 and some new features in Tomcat that meant startup times took a bit longer than they used to.

http://collab.sakaiproject.org/pipermail/sakai-dev/2012-November/thread.html#19508

As it turns out there is a new feature in Tomcat 7 that scans jar files for various Servlet 3 features. However the CLE code doesn’t use any Servlet 3 features yet.

So we can just disable the scanning and cut our startup times by a fair amount.  On my local full trunk deployment I was able to reduce my startup from 175 seconds down to 89 seconds.

To do this, in catalina.properties, set:

org.apache.catalina.startup.ContextConfig.jarsToSkip=*.jar

So far, all CLE tools in 2.10 appear fully functional. If you try this and experience issues, please let me know in the comments, or post on list.

Advertisements

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