[Building Sakai] Slow startup on Sakai 10

Steve Swinsburg steve.swinsburg at gmail.com
Tue Mar 4 03:43:48 PST 2014


I’ve been doing this for a while and blogged about it a while back:
http://steveswinsburg.wordpress.com/2012/11/06/reduce-your-sakai-cle-startup-time/

My startup time cuts in half. To do this, in catalina.properties, set:

org.apache.catalina.startup.ContextConfig.jarsToSkip=*.jar
cheers,
Steve


On 4 Mar 2014, at 8:03 pm, Matthew Buckett <matthew.buckett at it.ox.ac.uk> wrote:

> We've been working on moving to Sakai 10 and I've been noticing that compared to our 2.8.x installation the Sakai 10 codebase takes much longer to startup. My tomcat startup can regularly take 5 minutes when everything is getting loaded. I hooked up YourKit and watched the startup (attached is the CSV trace).
> 
> org.apache.catalina.startup.ContextConfig.processAnnotations(Set, boolean) is taking 60% of the startup time!!
> 
> Processing annotations is know to be slow and the recommendation from Apache is that to improve startup speed some JARs/webapps are not scanned:
> 
> http://wiki.apache.org/tomcat/HowTo/FasterStartUp
> 
> As most of the webapps were developed for servlet 2.4 I imagine that we aren't using annotations very much so could probably disable scanning of almost all webapps without any issue and get back to Sakai 2.8.x startup times.
> 
> Has anyone else looked into this any more?
> 
> -- 
>   Matthew Buckett, VLE Developer, IT Services, University of Oxford
> <sakai-startup.csv>_______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140304/7ef6b9f0/attachment.html 


More information about the sakai-dev mailing list