[Building Sakai] Slow startup on Sakai 10

Robert Long rlong at unicon.net
Tue Mar 4 06:03:39 PST 2014


+1

On my SSD, I just started trunk on Tomcat 7.0.52 in 75 seconds! A new personal best!

—Bob

----
Robert Long
Software Engineer
Unicon, Inc.

----
M.A., Instructional Technology
Saginaw Valley State University

On Mar 4, 2014, at 9:01 AM, Matthew Jones <matthew at longsight.com> wrote:

> Yeah, this property appears to be safe to set everywhere. On an SSD with the full Sakai install I usually have startups at around a 2 minutes with this option (on an existing database), 5 without.
> 
> 
> On Tue, Mar 4, 2014 at 7:03 AM, Steve Swinsburg <steve.swinsburg at gmail.com> wrote:
> Of course this should only be done on a development machine, your mileage may vary, may need to be adjusted, not to be included in the release notes yet, etc etc.
> 
> 
> 
> On 4 Mar 2014, at 10:43 pm, Steve Swinsburg <steve.swinsburg at gmail.com> wrote:
> 
>> 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"
>> 
> 
> 
> _______________________________________________
> 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"
> 
> _______________________________________________
> 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/1310203b/attachment.html 


More information about the sakai-dev mailing list